In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to use the Cat interface for status query in ElasticSearch. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Status query Cat interface node information
The interface GET _ cat/nodes?v lists all node and displays the running status information of the machine where node resides.
Ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
127.0.0.1 13 41 10 mdi-node-2
127.0.0.1 15 41 9 mdi * node-1
Percentage of heap.percent heap memory consumption
Percentage of ram.percent memory footprint
Percentage of cpu CPU occupied
Master * indicates that the node is the master node in the cluster
Name node name
Note: in this paper, the author runs two Elasticsearch nodes on his own machine, so the ip is the same. But the port and node names of the two nodes are different.
Each node machine stores information
The interface GET _ cat/allocation?v lists all node and displays the configuration information of the machine to which it belongs.
Shards disk.indices disk.used disk.avail disk.total disk.percent host ip node
6 24.7kb 36.2gb 33.9gb 70.2gb 51 127.0.0.1 127.0.0.1 node-2
6 24.7kb 36.2gb 33.9gb 70.2gb 51 127.0.0.1 127.0.0.1 node-1
The number of fragments carried by the shards node
The amount of space occupied by the disk.indices index
The machine where the disk.used node resides has used disk space
IP address of the machine to which the ip node belongs
Node node name
Index information
The interface GET _ cat/indices?v lists all indexes and shows the basic information of the index
Health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
Green open .kibana FHyzVY-nRXi9bFQZuPhbsg 1 1 2 0 16.8kb 8.4kb
Green open xenoblade 118dhMMHToGq-bh6p_MpVg 5 1 3 0 32.5kb 16.2kb
Health status of the health index
Index index name
Number of main shards in pri index
Number of rep index replication shards
Total storage space occupied by store.size index master shard replication shard
Pri.store.size index occupies total space, and does not calculate the space occupied by replication fragments.
Fragment information
The interface GET _ cat/shards?v lists all the shards in the cluster and shows the basic information
Index shard prirep state docs store ip node
Xenoblade 3 r STARTED 1 5.4kb 127.0.0.1 node-1
Xenoblade 3 p STARTED 1 5.4kb 127.0.0.1 node-2
Xenoblade 4 p STARTED 1 5.5kb 127.0.0.1 node-1
Xenoblade 4 r STARTED 1 5.5kb 127.0.0.1 node-2
Xenoblade 2 p STARTED 1 4.9kb 127.0.0.1 node-1
Xenoblade 2 r STARTED 1 4.9kb 127.0.0.1 node-2
Xenoblade 1 r STARTED 0 162b 127.0.0.1 node-1
Xenoblade 1 p STARTED 0 162b 127.0.0.1 node-2
Xenoblade 0 p STARTED 0 162b 127.0.0.1 node-1
Xenoblade 0 r STARTED 0 162b 127.0.0.1 node-2
.kibana 0 p STARTED 2 8.4kb 127.0.0.1 node-1
.kibana 0 r STARTED 2 8.4kb 127.0.0.1 node-2
Index Index name
Shard fragment serial number
Prirep p indicates that the shard is the main shard, and r indicates that the shard is a replication shard.
Store the shard takes up storage space
Node name of the node to which the node belongs
Number of documents stored in docs fragments
Thank you for reading! This is the end of the article on "how to use the Cat interface for status query in ElasticSearch". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.