cat allocation

原文链接 : https://www.elastic.co/guide/en/elasticsearch/reference/5.0/cat-allocation.html

译文链接 : http://www.apache.wiki/display/Elasticsearch/cat+allocation

贡献者 : 那伊抹微笑

allocation 提供了每个节点分片的分配数量以及它们所使用的硬盘空间大小的一份快照。

  1. curl -XGET 'localhost:9200/_cat/allocation?v&pretty'

响应可能如下 :

  1. shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
  2. 5 260b 47.3gb 43.4gb 100.7gb 46 127.0.0.1 127.0.0.1 CSUXak2

在这里我们我可看到,每一个节点已经被分配了一个分片,并且它们所使用的硬盘空间大小差不多。