Shard allocation status
It is recommended to disable shard allocation during a rolling reboot of an Elasticsearch cluster. See here: Rolling Restart of Elasticsearch
If you want to check shard allocation status in your Elasticsearch cluster during such times, you can use the following procedure.
Check shard allocation
Install jq for ease of parsing json output.
Collect the IP address of an Elasticsearch node. Importantly, this must be an interface that is listening for port 9200 requests. Not all interfaces on an Elasticsearch node may be listening on that port.
Run this command:
curl -s "<ES IP>:9200/_cluster/settings?pretty" | jq '.persistent.cluster.routing.allocation.enable'
If the response is
primaries
then allocation is disabled, if it'snull
then it's enabled.
Related articles
© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.