Created
December 29, 2018 13:42
-
-
Save nightmareze1/5a445c4513e54b9a928bfdc7eb465687 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ip-10-91-41-215 elk]# curl -XGET 'http://localhost:9200/_cluster/allocation/explain' | jq | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 728 100 728 0 0 728 0 0:00:01 --:--:-- 0:00:01 118k | |
{ | |
"index": "fluentd-20181229", | |
"shard": 4, | |
"primary": false, | |
"current_state": "unassigned", | |
"unassigned_info": { | |
"reason": "CLUSTER_RECOVERED", | |
"at": "2018-12-29T12:06:12.981Z", | |
"last_allocation_status": "no_attempt" | |
}, | |
"can_allocate": "no", | |
"allocate_explanation": "cannot allocate because allocation is not permitted to any of the nodes", | |
"node_allocation_decisions": [ | |
{ | |
"node_id": "tOWYtclcTCiUpAsHlOUHAA", | |
"node_name": "tOWYtcl", | |
"transport_address": "127.0.0.1:9300", | |
"node_decision": "no", | |
"deciders": [ | |
{ | |
"decider": "same_shard", | |
"decision": "NO", | |
"explanation": "the shard cannot be allocated to the same node on which a copy of the shard already exists [[fluentd-20181229][4], node[tOWYtclcTCiUpAsHlOUHAA], [P], s[STARTED], a[id=lsTXB0E0SqWi1AuB9ySH9A]]" | |
} | |
] | |
} | |
] | |
} | |
[root@ip-10-91-41-215 elk]# curl -XGET 'localhost:9200/_cluster/health?pretty' | |
{ | |
"cluster_name" : "elasticsearch", | |
"status" : "yellow", | |
"timed_out" : false, | |
"number_of_nodes" : 1, | |
"number_of_data_nodes" : 1, | |
"active_primary_shards" : 51, | |
"active_shards" : 51, | |
"relocating_shards" : 0, | |
"initializing_shards" : 0, | |
"unassigned_shards" : 5, | |
"delayed_unassigned_shards" : 0, | |
"number_of_pending_tasks" : 0, | |
"number_of_in_flight_fetch" : 0, | |
"task_max_waiting_in_queue_millis" : 0, | |
"active_shards_percent_as_number" : 91.07142857142857 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment