🗓️ 06112024 2344
📎
elasticsearch_cluster
Terminology
Term | Description |
---|---|
Node | Running instance of EES |
Cluster | >= 1 node |
Master node | Single elected node in the cluster responsible for cluster wide changes (+/- index, +/- node) |
Shard |
|
Primary Shard | Document store |
Replica Shard | Replica of primary shard |
Adding failover
- Avoid single point of failure by running multiple nodes
Horizontal scaling
- Adding one node
- Increasing number of replicas
Coping with failure
WARNING
Scenario: One node killed
- Actions:
- One node promoted to master (node 2)
- Replica shards promoted to primary shard
- Health check yellow (insufficient replicas)
References
- Chapter 2 of ElasticSearch Oreilly book