Recall & Review
beginner
What is shard allocation awareness in Elasticsearch?
Shard allocation awareness is a feature that helps Elasticsearch place shards on different nodes based on specific attributes, like rack or zone, to improve fault tolerance and availability.
Click to reveal answer
beginner
Why is shard allocation awareness important?
It ensures that copies of data (shards) are spread across different physical locations or failure domains, so if one location fails, data remains available from another.
Click to reveal answer
intermediate
How do you configure shard allocation awareness in Elasticsearch?
You set node attributes (like
zone or rack) and then configure cluster.routing.allocation.awareness.attributes with those attribute names to tell Elasticsearch to spread shards accordingly.Click to reveal answer
intermediate
What happens if Elasticsearch cannot satisfy shard allocation awareness rules?
Elasticsearch may delay shard allocation or allocate shards on the same attribute value, risking reduced fault tolerance until the cluster state changes.
Click to reveal answer
beginner
Example: If nodes have attribute
zone with values zone1 and zone2, how does shard allocation awareness use this?Elasticsearch tries to place primary and replica shards on nodes in different zones, so if
zone1 fails, data is still available in zone2.Click to reveal answer
What does shard allocation awareness help prevent?
✗ Incorrect
Shard allocation awareness prevents all copies of a shard from being placed on the same failure domain, like the same rack or zone.
Which Elasticsearch setting controls shard allocation awareness?
✗ Incorrect
The correct setting is cluster.routing.allocation.awareness.attributes, which lists node attributes to consider for shard placement.
If you want to spread shards across data centers, what should you do?
✗ Incorrect
You assign node attributes representing data centers and configure shard allocation awareness to spread shards accordingly.
What is a node attribute in Elasticsearch shard allocation awareness?
✗ Incorrect
Node attributes are labels like 'zone' or 'rack' used to group nodes for shard placement decisions.
What happens if all nodes share the same attribute value in shard allocation awareness?
✗ Incorrect
If all nodes have the same attribute value, Elasticsearch cannot spread shards across different values, so fault tolerance is reduced.
Explain shard allocation awareness and why it matters in Elasticsearch.
Think about how Elasticsearch keeps data safe across different physical locations.
You got /3 concepts.
Describe how to configure shard allocation awareness in an Elasticsearch cluster.
Consider what labels you give nodes and how Elasticsearch uses them.
You got /3 concepts.