Skip to content

Latest commit

 

History

History
83 lines (62 loc) · 1.05 KB

cluster.md

File metadata and controls

83 lines (62 loc) · 1.05 KB

cluster

Usage

$ ezmesure-admin cluster --help

Commands

Name Description
flush Flush all data streams and indices in the cluster
settings Show cluster settings
shard Manage shards

Commands details

flush

$ ezmesure-admin cluster flush

Example of result :

Total: 3
Successful: 3
Failed: 0

settings

$ ezmesure-admin cluster settings

Example of result :

{
  "persistent": {
    "xpack": {
      "monitoring": {
        "collection": {
          "enabled": "true"
        }
      }
    }
  },
  "transient": {}
}

shard

$ ezmesure-admin shard <command>
Command Description
allocation Enable or disable allocation for specific kinds of elasticsearch shards

allocation

Type :

  • all
  • primaries
  • new_primaries
  • none
  • null
$ ezmesure-admin shard allocation <type>

Example of result :

Cluster settings applied