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

Commit 0fdaebf

Browse files
authored
Merge pull request #271 from ashwinkumar12345/ism_priority_action
added index priority support for ISM
2 parents d149995 + ec3dc29 commit 0fdaebf

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docs/ism/policies.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ ISM supports the following operations:
101101
- [rollover](#rollover)
102102
- [notification](#notification)
103103
- [snapshot](#snapshot)
104+
- [priority](#priority)
104105

105106
### force_merge
106107

@@ -321,6 +322,26 @@ Parameter | Description | Type | Required | Default
321322
}
322323
```
323324

325+
### index_priority
326+
327+
Set the priority for the index in a specific state. Unallocated shards of indices are recovered in the order of their priority, whenever possible. The indices with higher priority values are recovered first followed by the indices with lower priority values.
328+
329+
The `index_priority` operation has the following parameter:
330+
331+
Parameter | Description | Type | Required | Default
332+
:--- | :--- |:--- |:--- |:---
333+
`priority` | The priority for the index as soon as it enters a state. | `number` | Yes | 1
334+
335+
```json
336+
"actions": [
337+
{
338+
"index_priority": {
339+
"priority": 50
340+
}
341+
}
342+
]
343+
```
344+
324345
---
325346

326347
## Transitions

0 commit comments

Comments
 (0)