Last active
December 29, 2015 01:59
-
-
Save xiocode/7596907 to your computer and use it in GitHub Desktop.
elasticsearch settings
This file contains 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/security/limits.conf: | |
* - nofile 65535 | |
* - memlock unlimited | |
/etc/elasticsearch/elasticsearch.yml: | |
index.number_of_shards: 5 | |
index.number_of_replicas: 0 | |
bootstrap.mlockall: true | |
vi ~/.bashrc | |
ES_HEAP_SIZE=1024m | |
MAX_OPEN_FILES=65535 | |
MAX_LOCKED_MEMORY=unlimited | |
bin/elasticsearch |
index.translog.flush_threshold_period: 60s
index.refresh_interval: 60s
indices.memory.index_buffer_size: 50%
indices.memory.min_index_buffer_size: 300m
index.translog.flush_threshold: 30000
index.store.type: mmapfs
index.merge.policy.use_compound_file: false
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/mrflip/766608