opensearch-project/OpenSearch

Rollover - min_docs condition

Open

#6780 aperta il 21 mar 2023

Vedi su GitHub
 (2 commenti) (0 reazioni) (1 assegnatario)Java (1505 fork)batch import
CCIdistributed frameworkenhancementgood first issue

Metriche repository

Star
 (8123 star)
Metriche merge PR
 (Merge medio 5g 9h) (266 PR mergiate in 30 g)

Descrizione

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.

Guida contributor