Created
November 9, 2021 02:42
-
-
Save akaron/8adb6cf7a008efd6d4772bf508965f2e to your computer and use it in GitHub Desktop.
elasticsearch 6.2.2 health status examples
This file contains hidden or 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
# use `kibana -> dev-tools -> console` or curl | |
# get cluster health | |
GET _cluster/health | |
# indices: the health should be green | |
GET _cat/indices?v | |
# shard: the state should be "STARTED" | |
GET _cat/shards?v | |
# shard allocations | |
GET _cat/allocation?v | |
# node: check heap percent and loading | |
GET _cat/nodes?v | |
# increse the delayed_timeout for nodes | |
GET _all/_settings | |
PUT _all/_settings | |
{ | |
"settings": { | |
"index.unassigned.node_left.delayed_timeout": "30m" | |
} | |
} | |
PUT _all/_settings | |
{ | |
"settings": { | |
"index.unassigned.node_left.delayed_timeout": null | |
} | |
} | |
# increse the delayed_timeout for a index | |
GET logger_k8s_containers-2021.11.05/_settings | |
PUT logger_k8s_components-2021.11.05/_settings | |
{ | |
"settings": { | |
"index.unassigned.node_left.delayed_timeout": "30m" | |
} | |
} | |
PUT logger_k8s_components-2021.11.05/_settings | |
{ | |
"settings": { | |
"index.unassigned.node_left.delayed_timeout": null | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment