opensearch-project/OpenSearch

Rollover - min_docs condition

开放

#6,780 创建于 2023年3月21日

 (2 条评论) (0 个反应) (1 位负责人)Java (1,505 个派生)batch import
CCIdistributed frameworkenhancementgood first issue

仓库指标

星标
 (8,123 个星标)
PR 合并指标
 (平均合并 5天 9小时) (30 天内合并 266 个 PR)

描述

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.

贡献者指南