File: option_post_allocation.md

package info (click to toggle)
elasticsearch-curator 8.0.21-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,716 kB
  • sloc: python: 17,838; makefile: 159; sh: 156
file content (33 lines) | stat: -rw-r--r-- 992 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
mapped_pages:
  - https://www.elastic.co/guide/en/elasticsearch/client/curator/current/option_post_allocation.html
---

# post_allocation [option_post_allocation]

::::{note}
This setting is only used by the [shrink](/reference/shrink.md) action.
::::


```yaml
action: shrink
description: >-
  Shrink selected indices on the node with the most available space.
  Apply shard routing allocation to target indices.
options:
  shrink_node: DETERMINISTIC
  post_allocation:
    allocation_type: include
    key: node_tag
    value: cold
filters:
  - filtertype: ...
```

The only permitted subkeys for `post_allocation` are the same options used by the [allocation](/reference/allocation.md) action: [allocation_type](/reference/option_allocation_type.md), [key](/reference/option_key.md), and [value](/reference/option_value.md).

If present, these values will be use to apply shard routing allocation to the target index after shrinking.

There is no default value for `post_allocation`.