Freeze

Phases allowed: cold.

Freezes an index to minimize its memory footprint.

Freezing an index closes the index and reopens it within the same API call. This means that for a short time no primaries are allocated. The cluster will go red until the primaries are allocated. This limitation might be removed in the future.

Options

None.

Example

  1. PUT _ilm/policy/my_policy
  2. {
  3. "policy": {
  4. "phases": {
  5. "cold": {
  6. "actions": {
  7. "freeze" : { }
  8. }
  9. }
  10. }
  11. }
  12. }