cluster health
来源:互联网 发布:d3.js demo显示 编辑:程序博客网 时间:2024/03/28 19:10
cluster health API能够得到一个非常简单的集群健康状态。
$ curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'{ "cluster_name" : "testcluster", "status" : "green", "timed_out" : false, "number_of_nodes" : 2, "number_of_data_nodes" : 2, "active_primary_shards" : 5, "active_shards" : 10, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 0}
这个API也能在一个或多个索引上执行,得到指定索引的健康状态:
$ curl -XGET 'http://localhost:9200/_cluster/health/test1,test2'
集群健康状态是:green,yellow和red。在分片层次上,一个red状态表明这个指定的分片没有分配,yellow表示主分片分配但副本没有分配,green表示所有的分片都已经分配。索引级别的状态由分片的最差状态决定。集群状态由最差的索引状态控制。
这个API的主要好处之一是能够等到集群达到一定高的级别。例如,下面的指令在集群达到yellow状态前会等待50s(在50s前,如果达到green或yellow状态,则返回):
$ curl -XGET 'http://localhost:9200/_cluster/health?wait_for_status=yellow&timeout=50s'
0 0
- cluster health
- Elasticsearch2.x Cluster Health
- Oracle Cluster Health Monitor(CHM)
- Oracle 12c Cluster Health Monitor 详解
- Oracle Cluster Health Monitor(CHM)简单介绍
- 11gR2 新特性:Oracle Cluster Health Monitor(CHM)简介
- Cluster Health Monitor (CHM) FAQ (文档 ID 1328466.1)
- CEPH HEALTH错误(一):Error connecting to cluster: InterruptedOrTimeoutError
- CEPH HEALTH错误(二):HEALTH_WARN mds cluster is degraded
- 11gR2 新特性:Oracle Cluster Health Monitor(CHM)简介
- 11g 新特性 CHM(Cluster Health Monitor)
- Health
- Health
- Health
- health
- HEALTH
- Monitoring the Cluster in Real Time with CHM (Cluster Health Monitor)
- 如何安装独立版的CHM(Oracle Cluster Health Monitor)
- About surface shader
- Maximum Depth of Binary Tree
- 读《H.264_mpeg-4_part_10_white_paper》后感
- umask
- 浅谈代码分层:构建模块化程序
- cluster health
- Photoshop智能对象
- unlink
- Ubuntu 14.04 安装搜狗拼音或谷歌拼音输入法
- 邻接表
- utime
- 再谈casperjs截图, 使用代理
- 仿射变换和仿射线性群
- linux建立网桥