elasticsearch
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| elasticsearch [2020/08/10 02:35] – external edit 127.0.0.1 | 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 123: | Line 146: | ||
| } | } | ||
| }' | }' | ||
| + | </ | ||
| + | |||
| + | ==== Rolling Upgrade ==== | ||
| + | :!: This should work on elastic.co but my steps are mainly taken from the Opendistro. | ||
| + | |||
| + | === Set the cluster in upgrade mode === | ||
| + | <code bash> | ||
| + | curl -k -XPOST https:// | ||
| + | </ | ||
| + | |||
| + | === Disable sharding === | ||
| + | <code bash> | ||
| + | curl -k -H ' | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | }' 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.1597026938.txt.gz · Last modified: 2020/08/10 02:35 by 127.0.0.1
