Shard allocation status

It is recommended to disable shard allocation during a rolling reboot of an Elasticsearch cluster. See here:

If you want to check shard allocation status in your Elasticsearch cluster during such times, you can use the following procedure.

 Check shard allocation

  1. Install jq for ease of parsing json output.

  2. 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.

  3. Run this command:

    curl -s "<ES IP>:9200/_cluster/settings?pretty" | jq '.persistent.cluster.routing.allocation.enable'
  4. If the response is primaries then allocation is disabled, if it's null then it's enabled.

© DataCore Software Corporation. · · All rights reserved.