使用elasticsearch的健康检查命令来监控其集群状态:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
curl -s -XGET 192.168.1.22:9200
/_cluster/health
?pretty
{
"cluster_name"
:
"elastic"
,
"status"
:
"green"
,
"timed_out"
:
false
,
"number_of_nodes"
: 3,
"number_of_data_nodes"
: 3,
"active_primary_shards"
: 5,
"active_shards"
: 10,
"relocating_shards"
: 0,
"initializing_shards"
: 0,
"unassigned_shards"
|