Cluster decommission

    For more information about allocation awareness, see Shard allocation awareness.

    You can use the following example requests to decommission and recommission a zone:

    1. PUT /_cluster/decommission/awareness/<zone>/<zone-a>

    copy

    If you want to recommission a decommissioned zone, you can use the DELETE method:

    1. {
    2. }

    The following example requests returns the decommission status of all zones.

    copy

    1. {
    2. "zone-1": "INIT | DRAINING | IN_PROGRESS | SUCCESSFUL | FAILED"