Skip to content

Instantly share code, notes, and snippets.

@xiocode
Last active December 29, 2015 01:59
Show Gist options
  • Save xiocode/7596907 to your computer and use it in GitHub Desktop.
Save xiocode/7596907 to your computer and use it in GitHub Desktop.
elasticsearch settings
/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
@xiocode
Copy link
Author

xiocode commented Nov 22, 2013

@xiocode
Copy link
Author

xiocode commented Dec 6, 2013

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