pretty' { "cluster_name" : "elasticsearch", "status" : "yellow", "timed_out" : false, "number_of_nodes" : 1, "number_of_data_nodes" : 1, "active_primary_shards" : 931, "active_shards" : 931, "relocating_shards" : 0, "initializing_shards" : 0, "unassigned_shards" : 930, ...
"status": "yellow", <1> "timed_out": false, "number_of_nodes": 1, "number_of_data_nodes": 1, "active_primary_shards": 3, "active_shards": 3, "relocating_shards": 0, "initializing_shards": 0, "unassigned_shards": 3 <2> } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. ...
{“cluster_name” : “***”, “status” : “yellow”, “timed_out” : false, “number_of_nodes” : ***, “number_of_data_nodes” : ***, “active_primary_shards” : ***, “active_shards” : ***, “relocating_shards” : ***, “initializing_shards” : ***, “unassigned_s...
- 主分片(primary shard)在索引创建时指定,后续不可修改 - 副本分片(replica shard),冗余作用,副本无法分片,集群为Yellow - health API ''' Green健康,所有主分片和副本分片都可用 Yellow亚健康,部分副分片不可用 Red不健康,部分主分片不可用 ''' - 故障转换 ''' 1.master节点出故障,集群重新选举master 2....
[2015-06-10 10:09:39,272][DEBUG][action.index ] [Impossible Man] observer: timeout notification from cluster service. timeout setting [1m], time since start [1m] [2015-06-10 10:09:39,274][TRACE][action.index ] [Impossible Man] primary shard [[foo][0]] is not yet active or we...
es集群多个节点,会自动选举一个节点为master节点,这个master节点其实就是干一些管理的工作的,比如维护索引元数据,负责切换primary shard和replica shard身份之类的。 要是master节点宕机了,那么会重新选举一个节点为master节点。 如果是非master节点宕机了,那么会由master节点,让那个宕机节点上的primary shard的身份转移到其...
[5] primary shard is not active Timeout: [1m], request: [BulkShardRequest to [xxx-20170925] containing [19] requests]"})[2017-11-21T11:04:26,780][INFO][logstash.outputs.elasticsearch]retrying failed actionwithresponse code:503({"type"=>"unavailable_shards_exception","reason"=>"[xxx-...
("mess", "_doc", "4") .source(XContentType.JSON,"field", "baz")); */ // 2、可选的设置 /* request.timeout("2m"); request.setRefreshPolicy("wait_for"); request.waitForActiveShards(2); */ //3、发送请求 // 同步请求 BulkResponse bulkResponse = client.bulk(request); //4、处理...
[5] primary shard is not active Timeout: [1m], request: [BulkShardRequest to [xxx-20170925] containing [19] requests]"})[2017-11-21T11:04:26,780][INFO][logstash.outputs.elasticsearch]retrying failed actionwithresponse code:503({"type"=>"unavailable_shards_exception","reason"=>"[xxx-...
"timed_out" : false, "number_of_nodes" : 1, "number_of_data_nodes" : 1, "active_primary_shards" : 2018, "active_shards" : 2018, "relocating_shards" : 0, "initializing_shards" : 4, "unassigned_shards" : 625, "delayed_unassigned_shards" : 0, "number_of_pending_tasks" : 11,...