Skip to content

Commit

Permalink
[DOCS] Added info about refresh interval & max_docs and step execution.
Browse files Browse the repository at this point in the history
Closes #49151. (#56315)
  • Loading branch information
debadair authored May 11, 2020
1 parent 30e7a51 commit 410b079
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/reference/ilm/actions/ilm-rollover.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ Triggers roll over after the specified maximum primary shard index storage size

`max_docs`::
(Optional, integer)
Triggers roll over after the specified maximum number of documents in the index is reached.
Triggers roll over after the specified maximum number of documents is reached.
Documents added since the last refresh are not included in the document count.
The document count does *not* include documents in replica shards.

`max_age`::
(Optional, <<time-units, time units>>)
Expand Down
11 changes: 11 additions & 0 deletions docs/reference/ilm/ilm-index-lifecycle.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ This ensures that policy updates don't put the index into a state where it can n
If changes can be safely applied, {ilm-init} updates the cached phase definition.
If they cannot, phase execution continues using the cached definition.

{ilm-init} runs periodically, checks to see if an index meets policy criteria,
and executes whatever steps are needed.
To avoid race conditions, {ilm-init} might need to run more than once to execute all of the steps
required to complete an action.
For example, if {ilm-init} determines that an index has met the rollover criteria,
it begins executing the steps required to complete the rollover action.
If it reaches a point where it is not safe to advance to the next step, execution stops.
The next time {ilm-init} runs, {ilm-init} picks up execution where it left off.
This means that even if `indices.lifecycle.poll_interval` is set to 10 minutes and an index meets
the rollover criteria, it could be 20 minutes before the rollover is complete.

[discrete]
[[ilm-phase-actions]]
=== Phase actions
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/indices/rollover-index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ Maximum age of the index.
`max_docs`::
(Optional, integer)
Maximum number of documents in the index.
This number does *not* include documents in replica shards.
Documents added since the last refresh are not included in the document count.
The document count does *not* include documents in replica shards.

`max_size`::
(Optional, <<byte-units, byte units>>)
Expand Down

0 comments on commit 410b079

Please sign in to comment.