Module backlog

Module backlog 

Source
Expand description

Observe, from outside the consumer processes, how far each consumer trails the newest data in a log directory.

Structs§

ConsumerBacklog
How far one consumer’s checkpoint trails the newest data in the log directory.

Functions§

scan_backlog
Scan directory and report the backlog of each consumer relative to the newest segment matching pattern. Consumers are discovered by their .<checkpoint_name> files. Segment contents are never decompressed. Only their directory listing and file metadata are read. A nonexistent directory yields an empty report.