Skip to content

Rollover - min_docs condition #6780

Open
@petardz

Description

Is your feature request related to a problem? Please describe.
Currently Rollover API supports maxAge, maxSize and maxDocs conditions. When maxAge condition is used we could easily get in situation where index is rolled over, even tho it had 0 or very few documents.

Describe the solution you'd like
Add minDocs condition, which would prevent rollover until specified number of documents is present in index.

Describe alternatives you've considered
call Search API to count documents in index, before calling Rollover API.

Additional context
Alerting, SA and ISM plugins are using rollover API in its "index management job" logic for some plugin indices.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

CCICollege Contributor Initiative related issues and PRsdistributed frameworkenhancementEnhancement or improvement to existing feature or requestgood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions