Last active
August 29, 2015 14:19
-
-
Save cooniur/4cd7082fce8b34ae56de to your computer and use it in GitHub Desktop.
ES Optimization
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
| # Optimization for re-indexing | |
| These settings can be turned on/off to increase performance when doing re-indexing of existing large dataset | |
| ### Disable refresh while re-indexing `page 161` | |
| You can turn off automatic refreshes while you are building a big new index, and then turn them back on when you start using the index in production: | |
| Before re-indexing: | |
| POST /my_logs/_settings | |
| { "refresh_interval": -1 } | |
| After re-indexing: | |
| POST /my_logs/_settings | |
| { "refresh_interval": "1s" } | |
| ### Merge `page 652` | |
| - Disable merge | |
| PUT /_cluster/settings | |
| { | |
| "transient" : { | |
| "indices.store.throttle.type" : "none" | |
| } | |
| } | |
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
| # Optimization for search | |
| ### Merge `page 652` | |
| - Increase merge throttle to 100MB for SSD | |
| PUT /_cluster/settings | |
| { | |
| "persistent" : { | |
| "indices.store.throttle.max_bytes_per_sec" : "100mb" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment