opensearch-project/OpenSearch

Rollover - min_docs condition

Open

#6.780 geöffnet am 21. März 2023

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (1.505 Forks)batch import
CCIdistributed frameworkenhancementgood first issue

Repository-Metriken

Stars
 (8.123 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 9h) (266 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide