Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 37ba511

Browse files
author
Chris Wiechmann
committed
[skip ci] Some notes if ILM-Shrink fails added.
1 parent b581f58 commit 37ba511

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

DEVELOPMENT.MD

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,42 @@ Run elasticsearch-certutil:
6161
Copy the ZIP-File:
6262
`docker cp elasticsearch1:/usr/share/elasticsearch/sample-certificates.zip .`
6363

64-
Store the certificates in the config/certificates folder
64+
Store the certificates in the config/certificates folder
65+
66+
## Elastic commands
67+
68+
Run if Shards are not assigned to see the reason:
69+
`GET /_cluster/allocation/explain`
70+
71+
Assign the entire index to a specific Node as it is needed to shrink:
72+
```
73+
PUT /apigw-traffic-details-eu-000001/_settings
74+
{
75+
"settings": {
76+
"index.routing.allocation.require._name": "Elasticsearch1",
77+
"index.blocks.write": true
78+
}
79+
}
80+
```
81+
82+
Go to a specific ILM-Step:
83+
```
84+
POST _ilm/move/apigw-traffic-details-eu-000001
85+
{
86+
"current_step": {
87+
"phase": "warm",
88+
"action": "shrink",
89+
"name": "shrunk-shards-allocated"
90+
},
91+
"next_step": {
92+
"phase": "warm",
93+
"action": "shrink",
94+
"name": "shrink"
95+
}
96+
}
97+
```
98+
99+
Retry an ILM-Step:
100+
```
101+
POST /apigw-traffic-details-eu-000001/_ilm/retry
102+
```

0 commit comments

Comments
 (0)