Created
November 4, 2016 18:08
-
-
Save fdv/98773d23e144830032d1068ed05e227f to your computer and use it in GitHub Desktop.
Elasticsearch restart config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# normal | |
curl -XPUT 'http://esmaster01.:9200/_cluster/settings' -d '{ | |
"transient" : { | |
"cluster.routing.allocation.cluster_concurrent_rebalance": 50, | |
"indices.recovery.concurrent_streams": 50, | |
"cluster.routing.allocation.node_initial_primaries_recoveries": 50, | |
"cluster.routing.allocation.node_concurrent_recoveries": 50, | |
"indices.recovery.max_bytes_per_sec": "2048mb", | |
"cluster.routing.allocation.disk.threshold_enabled" : true, | |
"cluster.routing.allocation.disk.watermark.low" : "70%", | |
"cluster.routing.allocation.disk.watermark.high" : "78%" | |
} | |
}' | |
# When the shit hits the fan / rolling restart | |
curl -XPUT 'http://esmaster01.:9200/_cluster/settings' -d '{ | |
"transient" : { | |
"cluster.routing.allocation.cluster_concurrent_rebalance": 100, | |
"indices.recovery.concurrent_streams": 50, | |
"cluster.routing.allocation.node_initial_primaries_recoveries": 100, | |
"cluster.routing.allocation.node_concurrent_recoveries": 100, | |
"indices.recovery.max_bytes_per_sec": "2048mb", | |
"cluster.routing.allocation.disk.threshold_enabled" : true, | |
"cluster.routing.allocation.disk.watermark.low" : "90%", | |
"cluster.routing.allocation.disk.watermark.high" : "95%" | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment