anchor.diff:  deployment.extensions/elasticsearch-cdm-0-1 paused
   ----
   +
  -.. Check that the Elasticsearch cluster is in `green` state:
  +.. Check that the Elasticsearch cluster is in a `green` or `yellow` state:
   +
   [source,terminal]
   ----
  
positive.code:   "active_shards_percent_as_number" : 100.0
  }
  ----
  <1> Make sure this parameter is `green` before proceeding.
  
  . If you changed the Elasticsearch configuration map, repeat these steps for each Elasticsearch pod.
  
  . Once all the deployments for the cluster have been rolled out, re-enable shard balancing:
  +
  [source,terminal]
  ----
  $ oc exec <any_es_pod_in_the_cluster> -c elasticsearch -- es_util --query=_cluster/settings -XPUT 'https://localhost:9200/_cluster/settings' -d '{ "transient": { "cluster.routing.allocation.enable" : "none" } }'
  ----
  +
  For example:
  +
  [source,terminal]
  ----
  $ oc exec elasticsearch-cdm-5ceex6ts-1-dcd6c4c7c-jpw6 -c elasticsearch -- es_util --query=_cluster/settings?pretty=true -XPUT 'https://localhost:9200/_cluster/settings' -d '{ "transient": { "cluster.routing.allocation.enable" : "all" } }'
  ----
  +
  .Example output
  
negative.code: $ oc project openshift-logging
  ----
  
  . Get the names of the Elasticsearch pods:
  +
  ----
  $ oc get pods | grep elasticsearch-
  ----
  
  . Perform a shard synced flush using the {product-title} link:https://github.com/openshift/origin-aggregated-logging/tree/master/elasticsearch#es_util[*es_util*] tool to ensure there are no pending operations waiting to be written to disk prior to shutting down:
  +
  [source,terminal]
  ----
  $ oc exec <any_es_pod_in_the_cluster> -c elasticsearch -- es_util --query="_flush/synced" -XPOST
  ----
  +
  For example:
  +
  [source,terminal]
  ----
  $ oc exec -c elasticsearch-cdm-5ceex6ts-1-dcd6c4c7c-jpw6  -c elasticsearch -- es_util es_util --query="_flush/synced" -XPOST
  ----
  +
  .Example output
  [source,terminal]
  ----
  {"_shards":{"total":4,"successful":4,"failed":0},".security":{"total":2,"successful":2,"failed":0},".kibana_1":{"total":2,"successful":2,"failed":0}}
  ----
  
  . Prevent shard balancing when purposely bringing down nodes using the {product-title}
  