[Failure store] Remove unused write indices from failure store #126611
Labels
:Data Management/Data streams
Data streams and their lifecycles
>enhancement
Team:Data Management
Meta label for data/management team
Description
Data stream failure store is using the lazy rollover to reduce its footprint. Let's see how:
rollover_on_write
set totrue
for the failure store.rollover_on_write
, and it will write the failed document.rollover_on_write
set tofalse
.rollover_on_write
set tofalse
So far so good. However, if we encountered no more failure the last failure index created cannot be removed because DLM does not remove a write index, the only option is to roll them over.
Enhancement
We would like to be able to go back to 0 failure indices if we witness no failures for reasonable time period. This reduces the costs of having a failure store when we have no failures.
Draft idea
Introduce a lazy rollover with conditions, meaning that when this request is executed it will set the
rollover_on_write
only if the conditions are met.getWriteFailureIndex
should only return the write index if therollover_on_write
is set tofalse
.The text was updated successfully, but these errors were encountered: