Skip to main content

Module flush_trigger

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.

Functionsยง

filter_regions_below_topic_pruned_entry_id ๐Ÿ”’
Filters regions whose prunable entry id is behind the topic pruned entry id.
filter_regions_by_replay_size ๐Ÿ”’
Filter regions based on the estimated replay size.
filter_regions_for_periodic_checkpoint ๐Ÿ”’
Filters regions that need periodic checkpoint persistence.
group_regions_by_leader ๐Ÿ”’
Group regions by leader.
is_recent ๐Ÿ”’
Check if the timestamp is recent.
mark_checkpoint_persisted ๐Ÿ”’
Marks checkpoint persistence timestamps for regions.
merge_region_ids ๐Ÿ”’
Merges two region id lists and removes duplicates.
retain_checkpoint_persist_records ๐Ÿ”’
Retains checkpoint persistence records for active regions.
should_persist_region_checkpoint ๐Ÿ”’
Determines whether a region checkpoint should be persisted based on current and persisted state.

Type Aliasesยง

RegionFlushTickerRef ๐Ÿ”’