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.

貢獻者指南