Elasticsearch Cheat Sheet
Written
- Shard Allocation Issues
http 'localhost:9200/_cluster/allocation/explain?pretty'
will explain things with an easy-to-understand vocabulary
- Rolling Minor Version Upgrade
echo '{"persistent":{"cluster.routing.allocation.enable": "primaries"}}' | http PUT localhost:9200/_cluster/settings
http POST localhost:9200/_flush/synced
- First time only- Upgrade a node
echo '{"persistent":{"cluster.routing.allocation.enable": null}}' | http PUT localhost:9200/_cluster/settings
- Wait for the node to recover
- Repeat until all nodes are upgraded
Thanks for reading! If you have any questions or comments, please send me a note on Twitter. And if you enjoyed this, I also have a newsletter where I send out interesting things I read and the occasional nature photo.