Upgrade Elasticsearch from 6.x to latest 7.x
This commit is contained in:
@@ -12,11 +12,28 @@ elasticsearch_user 'elasticsearch'
|
||||
|
||||
elasticsearch_install 'elasticsearch' do
|
||||
type 'package'
|
||||
version '6.8.2'
|
||||
version '7.17.7'
|
||||
action :install
|
||||
end
|
||||
|
||||
elasticsearch_configure 'elasticsearch' do
|
||||
allocated_memory node["kosmos-mastodon"]["elasticsearch"]["allocated_memory"]
|
||||
|
||||
jvm_options %w(
|
||||
-Xms1536m
|
||||
-Xmx1536m
|
||||
-XX:+AlwaysPreTouch
|
||||
-server
|
||||
-Xss1m
|
||||
-Djava.awt.headless=true
|
||||
-Dfile.encoding=UTF-8
|
||||
-Djna.nosys=true
|
||||
-XX:-OmitStackTraceInFastThrow
|
||||
-Dio.netty.noUnsafe=true
|
||||
-Dio.netty.noKeySetOptimization=true
|
||||
-Dio.netty.recycler.maxCapacityPerThread=0
|
||||
-XX:+HeapDumpOnOutOfMemoryError
|
||||
)
|
||||
end
|
||||
|
||||
elasticsearch_service 'elasticsearch'
|
||||
|
||||
Reference in New Issue
Block a user