Skip to content

Instantly share code, notes, and snippets.

@midwire
Last active July 26, 2022 16:29
Show Gist options
  • Save midwire/9d36a8c16ce259e19ea04f9788985ba4 to your computer and use it in GitHub Desktop.
Save midwire/9d36a8c16ce259e19ea04f9788985ba4 to your computer and use it in GitHub Desktop.
[Elasticsearch tuning]
### TUNE for indexing vs. searching
# Increase index buffer size
indices.memory.index_buffer_size: 20%
# Index refresh interval
# Don't refresh/write so often
curl -XPUT 'http://il-prod-es01:9200/_all/_settings?preserve_existing=true' \
-H 'Content-Type: application/json; charset=utf-8' \
-d '{
"index.refresh_interval" : "30s"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment