Start and stop index lifecycle management
editStart and stop index lifecycle management
editBy default, the ILM service is in the RUNNING
state and manages
all indices that have lifecycle policies.
You can stop index lifecycle management to suspend management operations for all indices. For example, you might stop index lifecycle management when performing scheduled maintenance or making changes to the cluster that could impact the execution of ILM actions.
When you stop ILM, SLM operations are also suspended. No snapshots will be taken as scheduled until you restart ILM. In-progress snapshots are not affected.
Get ILM status
editTo see the current status of the ILM service, use the Get Status API:
resp = client.ilm.get_status() print(resp)
response = client.ilm.get_status puts response
const response = await client.ilm.getStatus(); console.log(response);
GET _ilm/status
Under normal operation, the response shows ILM is RUNNING
:
{ "operation_mode": "RUNNING" }
Stop ILM
editTo stop the ILM service and pause execution of all lifecycle policies, use the Stop API:
resp = client.ilm.stop() print(resp)
response = client.ilm.stop puts response
const response = await client.ilm.stop(); console.log(response);
POST _ilm/stop
ILM service runs all policies to a point where it is safe to stop.
While the ILM service is shutting down,
the status API shows ILM is in the STOPPING
mode:
{ "operation_mode": "STOPPING" }
Once all policies are at a safe stopping point, ILM moves into the STOPPED
mode:
{ "operation_mode": "STOPPED" }
Start ILM
editTo restart ILM and resume executing policies, use the Start API.
This puts the ILM service in the RUNNING
state and
ILM begins executing policies from where it left off.
resp = client.ilm.start() print(resp)
response = client.ilm.start puts response
const response = await client.ilm.start(); console.log(response);
POST _ilm/start