b8673301e1b5970a1b3ac63ccd1843fb5e984246
compute/elasticsearch.md
| ... | ... | @@ -0,0 +1,23 @@ |
| 1 | +# Elasticsearch Stuff |
|
| 2 | + |
|
| 3 | +### Cluster health |
|
| 4 | +``` |
|
| 5 | +GET _cat/health?v |
|
| 6 | +GET _cat/shards?v |
|
| 7 | +GET _cat/nodes?v |
|
| 8 | +GET _cat/recovery?v |
|
| 9 | +``` |
|
| 10 | +Search for 'index' in the recovery output to see re-index jobs e.g. after node replacements |
|
| 11 | + |
|
| 12 | +### Snapshots |
|
| 13 | +``` |
|
| 14 | +GET /_snapshot |
|
| 15 | +GET /_snapshot/<name>/* |
|
| 16 | +``` |
|
| 17 | + |
|
| 18 | +### Running tasks |
|
| 19 | +``` |
|
| 20 | +GET /_tasks |
|
| 21 | +GET /_tasks/<name>:<num> |
|
| 22 | +``` |
|
| 23 | +'reindex' tasks are maybe worth looking at before carrying out cluster work. |