Module flush_trigger

Source

Structsยง

RegionFlushTicker ๐Ÿ”’
RegionFlushTicker is used to trigger region flush trigger periodically.
RegionFlushTrigger
RegionFlushTrigger is used to ensure that the estimated WAL replay size stays below a certain threshold by triggering a region flush when the estimated WAL replay size exceeds that threshold. This helps improve datanode startup speed and reduce the overall startup time.

Enumsยง

Event ๐Ÿ”’
Event represents various types of events that can be processed by the region flush ticker.

Constantsยง

RECENT_DURATION ๐Ÿ”’
The duration of the recent period.
TICKER_INTERVAL ๐Ÿ”’
The interval of the region flush ticker.

Functionsยง

filter_regions_by_replay_size ๐Ÿ”’
Filter regions based on the estimated replay size.
group_regions_by_leader ๐Ÿ”’
Group regions by leader.
is_recent ๐Ÿ”’
Check if the timestamp is recent.
should_persist_region_checkpoint ๐Ÿ”’
Determines whether a region checkpoint should be persisted based on current and persisted state.

Type Aliasesยง

RegionFlushTickerRef ๐Ÿ”’