Skip to content

Instantly share code, notes, and snippets.

@mkurian
Last active August 29, 2015 14:08
Show Gist options
  • Save mkurian/824256ce1eab366cad6f to your computer and use it in GitHub Desktop.
Save mkurian/824256ce1eab366cad6f to your computer and use it in GitHub Desktop.
Tips and Tricks
- Avoid split brain problem by setting minimum master nodes:
http://blog.trifork.com/2013/10/24/how-to-avoid-the-split-brain-problem-in-elasticsearch/
discovery.zen.minimum_master_nodes: set it to N/2 +1
discovery.zen.ping.timeout: change default if required to handle slow nodes
- Use boolean filters instead of and, or not, since they use bitsets
- Use filter over query for repeat searches, since filters are cached
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment