Skip to content

Instantly share code, notes, and snippets.

@cooniur
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save cooniur/4cd7082fce8b34ae56de to your computer and use it in GitHub Desktop.

Select an option

Save cooniur/4cd7082fce8b34ae56de to your computer and use it in GitHub Desktop.
ES Optimization
# 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"
}
}
# 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