elasticsearch
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
elasticsearch [2021/01/25 18:32] – [Rolling Upgrade] k2patel | elasticsearch [2021/01/25 23:41] (current) – [Quick Commands] k2patel | ||
---|---|---|---|
Line 5: | Line 5: | ||
<code bash> | <code bash> | ||
curl -XGET ' | curl -XGET ' | ||
- | </ | ||
- | |||
- | == Node Information == | ||
- | <code bash> | ||
- | curl -XGET ' | ||
</ | </ | ||
Line 20: | Line 15: | ||
<code bash> | <code bash> | ||
curl -XGET ' | curl -XGET ' | ||
+ | </ | ||
+ | |||
+ | == Unassigned shard | timeout == | ||
+ | **Try restarting** | ||
+ | <code bash> | ||
+ | curl -XPOST -k https:// | ||
+ | </ | ||
+ | **List indexes not assigned** | ||
+ | <code bash> | ||
+ | curl -k --CApath / | ||
+ | </ | ||
+ | **Detailed information on issue** | ||
+ | <code bash> | ||
+ | curl -k --CApath / | ||
</ | </ | ||
Line 31: | Line 40: | ||
curl -XDELETE ' | curl -XDELETE ' | ||
</ | </ | ||
+ | |||
+ | == Disk usage issue == | ||
+ | When free disk space fall cluster fails. | ||
+ | <code bash> | ||
+ | curl -H ' | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }' http:// | ||
+ | </ | ||
+ | |||
+ | |||
==== Templates ==== | ==== Templates ==== | ||
Line 140: | Line 163: | ||
} | } | ||
}' https:// | }' https:// | ||
+ | </ | ||
+ | |||
+ | === Flush / Sync data on all host in cluster === | ||
+ | <code bash> | ||
+ | curl -k -XPOST https:// | ||
+ | </ | ||
+ | |||
+ | === Stop / Upgrade / start Services === | ||
+ | <code bash> | ||
+ | systemctl stop kibana.service | ||
+ | systemctl stop elasticsearch.service | ||
+ | dnf install opendistroforelasticsearch-1.12.0 -y | ||
+ | dnf install opendistroforelasticsearch-kibana-1.12.0 -y | ||
+ | systemctl start elasticsearch.service | ||
+ | systemctl start kibana.service | ||
+ | </ | ||
+ | |||
+ | === Enable Sharding === | ||
+ | <code bash> | ||
+ | curl -k -H ' | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }' https:// | ||
+ | </ | ||
+ | |||
+ | ==== Node Information ==== | ||
+ | === List all nodes and important information === | ||
+ | : | ||
+ | <code bash> | ||
+ | curl -XGET -k https:// | ||
</ | </ |
elasticsearch.1611599561.txt.gz · Last modified: 2021/01/25 18:32 by k2patel