Hi Team,
I have been using Kibana to visualize and the last few days it is throwing error :NoShardsAvailableException, please find the snap below.
Note : Ignore the index name
Please note that I ran few queries to understand the unassigned shards and below is the output
curl -XGET localhost:9200/_cat/shards?v | grep UNASSIGNED
0index_name-repolib-push-2020.10.22 0 r UNASSIGNED
index_name-repolib-push-2020.10.22 0 p UNASSIGNED
index_name-repoexec-team_add-2020.10.20 0 p UNASSIGNED
index_name-repoexec-team_add-2020.10.20 0 r UNASSIGNED
.kibana-event-log-7.9.1-000001 0 p UNASSIGNED
.kibana-event-log-7.9.1-000001 0 r UNASSIGNED
index_name-repo4-status-2020.10.22 0 p UNASSIGNED
index_name-repo4-status-2020.10.22 0 r UNASSIGNED
index_name-repo1-pull_request_review-2020.10.23 0 r UNASSIGNED
index_name-repo1-pull_request_review-2020.10.23 0 p UNASSIGNED
index_name-repo4-status-2020.10.30 0 r UNASSIGNED
index_name-repo4-status-2020.10.30 0 p UNASSIGNED
index_name-repo4-member-2020.10.21 0 r UNASSIGNED
index_name-repo4-member-2020.10.21 0 p UNASSIGNED
index_name-repo1-pull_request_review-2020.10.28 0 p UNASSIGNED
index_name-repo1-pull_request_review-2020.10.28 0 r UNASSIGNED
index_name-repo4-pull_request_review_comment-2020.10.25 0 r UNASSIGNED
index_name-pylibs-push 0 p UNASSIGNED
index_name-pylibs-push 0 r UNASSIGNED
index_name-repo2-push-2020.10.27 0 r UNASSIGNED
index_name-repo2-push-2020.10.27 0 p UNASSIGNED
index_name-repo4-status-2020.10.21 0 r UNASSIGNED
index_name-repo4-status-2020.10.21 0 p UNASSIGNED
index_name-repo4-pull_request_review-2020.10.20 0 r UNASSIGNED
index_name-repo4-pull_request_review-2020.10.20 0 p UNASSIGNED
index_name-repo4-status-2020.10.25 0 p UNASSIGNED
index_name-repo4-status-2020.10.25 0 r UNASSIGNED
index_name-repoexec-pull_request 0 r UNASSIGNED
index_name-repoexec-pull_request 0 p UNASSIGNED
index_name-repo4-pull_request_review_comment-2020.10.20 0 p UNASSIGNED
index_name-repo4-pull_request_review_comment-2020.10.20 0 r UNASSIGNED
index_name-repo1-push-2020.10.24 0 p UNASSIGNED
index_name-repo1-push-2020.10.24 0 r UNASSIGNED
index_name-repo1-pull_request_review_comment-2020.10.24 0 r UNASSIGNED
index_name-repo1-pull_request_review_comment-2020.10.24 0 p UNASSIGNED
index_name-repoexec-pull_request_review-2020.10.29 0 r UNASSIGNED
index_name-repoexec-pull_request_review-2020.10.29 0 p UNASSIGNED
index_name-repoexec-commit_comment 0 r UNASSIGNED
index_name-repoexec-commit_comment 0 p UNASSIGNED
index_name-repoexec-pull_request-2020.10.22 0 r UNASSIGNED
index_name-repoexec-pull_request-2020.10.22 0 p UNASSIGNED
index_name-repolib-pull_request_review-2020.10.28 0 r UNASSIGNED
index_name-repolib-pull_request_review-2020.10.28 0 p UNASSIGNED
index_name-repoexec-pull_request_review-2020.10.27 0 r UNASSIGNED
index_name-repoexec-pull_request_review-2020.10.27 0 p UNASSIGNED
index_name-repo1-issue_comment-2020.10.27 0 r UNASSIGNED
index_name-repo1-issue_comment-2020.10.27 0 p UNASSIGNED
testgithub-repo1-status 0 p UNASSIGNED
testgithub-repo1-status 0 r UNASSIGNED
index_name-repo1-issue_comment-2020.10.30 0 p UNASSIGNED
index_name-repo1-issue_comment-2020.10.30 0 r UNASSIGNED
index_name-%{[repository][name]}-%{[headers][x_github_event]}-2020.10.22 0 p UNASSIGNED
index_name-%{[repository][name]}-%{[headers][x_github_event]}-2020.10.22 0 r UNASSIGNED
index_name-repo1-pull_request-2020.10.26 0 p UNASSIGNED
index_name-repo1-pull_request-2020.10.26 0 r UNASSIGNED
index_name-repo1-pull_request 0 p UNASSIGNED
index_name-repo1-pull_request 0 r UNASSIGNED
index_name-repoexec-pull_request-2020.10.29 0 r UNASSIGNED
index_name-repoexec-pull_request-2020.10.29 0 p UNASSIGNED
.apm-custom-link 0 r UNASSIGNED
.apm-custom-link 0 p UNASSIGNED
index_name-repolib-status-2020.10.21 0 p UNASSIGNED
index_name-repolib-status-2020.10.21 0 r UNASSIGNED
index_name-repo2-pull_request 0 r UNASSIGNED
index_name-repo2-pull_request 0 p UNASSIGNED
index_name-repo4-issue_comment-2020.10.29 0 r UNASSIGNED
index_name-repo4-issue_comment-2020.10.29 0 p UNASSIGNED
index_name-repo2-team_add-2020.10.21 0 r UNASSIGNED
index_name-repo2-team_add-2020.10.21 0 p UNASSIGNED
index_name-repo4-push-2020.10.29 0 r UNASSIGNED
index_name-repo4-push-2020.10.29 0 p UNASSIGNED
index_name-repoexec-pull_request-2020.10.30 0 p UNASSIGNED
index_name-repoexec-pull_request-2020.10.30 0 r UNASSIGNED
index_name-repoexec-create-2020.10.30 0 p UNASSIGNED
index_name-repoexec-create-2020.10.30 0 r UNASSIGNED
index_name-repolib-pull_request_review-2020.10.22 0 r UNASSIGNED
index_name-repolib-pull_request_review-2020.10.22 0 p UNASSIGNED
index_name-testing_project_pipeline-%{[headers][x_github_event]}-2020.10.20 0 p UNASSIGNED
index_name-testing_project_pipeline-%{[headers][x_github_event]}-2020.10.20 0 r UNASSIGNED
index_name-repoexec-deploy_key-2020.10.20 0 r UNASSIGNED
index_name-repoexec-deploy_key-2020.10.20 0 p UNASSIGNED
index_name-repo4win-common-delete-2020.10.27 0 p UNASSIGNED
index_name-repo4win-common-delete-2020.10.27 0 r UNASSIGNED
Also there was another cluster/allocation/explain api which gave me the below error
root@node2:~# curl -XGET -u localhost:9200/_cluster/allocation/explain
{"index":"test","shard":0,"primary":false,"current_state":"unassigned","unassigned_info":{"reason":"NODE_LEFT","at":"2020-11-18T09:41:34.834Z","details":"node_left [is8UsIpNR9GWX6LKG6J67w]","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":"9nJaOObVRKuIxBzqi4ImCQ","node_name":"githublogging6","transport_address":"10.0.0.17:9300","node_attributes":{"ml.machine_memory":"4143378432","ml.max_open_jobs":"20","xpack.installed":"true","transform.node":"true"},"node_decision":"no","deciders":[{"decider":"replica_after_primary_active","decision":"NO","explanation":"primary shard for this replica is not yet active"},{"decider":"throttling","decision":"NO","explanation":"primary shard for this replica is not yet active"}]},{"node_id":"DbIXNuhlS7W1zbf9l-G_hw","node_name":"githublogging3","transport_address":"10.0.0.14:9300","node_attributes":{"ml.machine_memory":"4143378432","ml.max_open_jobs":"20","xpack.installed":"true","transform.node":"true"},"node_decision":"no","deciders":[{"decider":"replica_after_primary_active","decision":"NO","explanation":"primary shard for this replica is not yet active"},{"decider":"throttling","decision":"NO","explanation":"primary shard for this replica is not yet active"}]},{"node_id":"LOXyTVkIR5akOPRkh7fxVQ","node_name":"githublogging5","transport_address":"10.0.0.16:9300","node_attributes":{"ml.machine_memory":"4143378432","xpack.installed":"true","transform.node":"true","ml.max_open_jobs":"20"},"node_decision":"no","deciders":[{"decider":"replica_after_primary_active","decision":"NO","explanation":"primary shard for this replica is not yet active"},{"decider":"throttling","decision":"NO","explanation":"primary shard for this replica is not yet active"}]},{"node_id":"WBZYzxD4TtyIg1M9cu6P_Q","node_name":"githublogging2","transport_address":"10.0.0.20:9300","node_attributes":{"ml.machine_memory":"4143378432","ml.max_open_jobs":"20","xpack.installed":"true","transform.node":"true"},"node_decision":"no","deciders":[{"decider":"replica_after_primary_active","decision":"NO","explanation":"primary shard for this replica is not yet active"},{"decider":"throttling","decision":"NO","explanation":"primary shard for this replica is not yet active"}]},{"node_id":"beNfIHrHRqmsczDjMyPSDA","node_name":"githublogging4","transport_address":"10.0.0.15:9300","node_attributes":{"ml.machine_memory":"4143378432","ml.max_open_jobs":"20","xpack.installed":"true","transform.node":"true"},"node_decision":"no","deciders":[{"decider":"replica_after_primary_active","decision":"NO","explanation":"primary shard for this replica is not yet active"},{"decider":"throttling","decision":"NO","explanation":"primary shard for this replica is not yet active"}]}]}root@githubmaster2:~#
Also to be noted that this docker cluster comprises of 7 nodes. Is there any setting I should perform to fix this error? This is a production level environment.
Regards
TJ