Skip to content

Instantly share code, notes, and snippets.

@dcode
Created August 19, 2015 22:39
Show Gist options
  • Select an option

  • Save dcode/31b0350c8ad2ffd90fe9 to your computer and use it in GitHub Desktop.

Select an option

Save dcode/31b0350c8ad2ffd90fe9 to your computer and use it in GitHub Desktop.
Elasticsearch tuning tips
# /etc/sysconfig/elasticsearch
# Heap size defaults to 256m min, 1g max
# Set ES_HEAP_SIZE to 50% of available RAM, but no more than 31g
ES_HEAP_SIZE=2g
# /etc/elasticsearch/elasticsearch.yml
cluster.name: <something other than elasticsearch>
bootstrap.mlockall: true
zen.discovery.multicast.enabled: false
# /usr/lib/systemd/system/elasticsearch.service
LimitNOFILE=65535
LimitMEMLOCK=infinity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment