Created
August 19, 2015 22:39
-
-
Save dcode/31b0350c8ad2ffd90fe9 to your computer and use it in GitHub Desktop.
Elasticsearch tuning tips
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
| # /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