Skip to main content

DRAIN_MAX_LOG_WAIT

Constant DRAIN_MAX_LOG_WAIT 

Source
pub(crate) const DRAIN_MAX_LOG_WAIT: Duration;
Expand description

Upper bound for the time the exit files and the attach drains wait for the log drivers to take the output after the process exited, which does not count as a pause of the output, see SharedContainerAttach::logging and Drain::recv_attach, and for the read loops to end once stopped and the log to sync, see ReapableChild::finish_output. A log driver which is slow, like a journal which takes only part of every chunk in time, or which hangs, like a log file on a stuck disk, must not keep the exit from being reported for minutes.