pub struct Timings {Show 87 fields
pub tick_interval: Duration,
pub heartbeat_interval: Duration,
pub lease_timeout: Duration,
pub script_root_grace: Duration,
pub event_lookback: Duration,
pub lease_period: Duration,
pub read_back_window: Duration,
pub read_back_interval: Duration,
pub query_timeout: Duration,
pub loop_stall_timeout: Duration,
pub set_aside: Duration,
pub handed_call_min: Duration,
pub cleanup_move_wait: Duration,
pub listen_retry: Duration,
pub refresh_interval: Duration,
pub worker_connect_timeout: Duration,
pub drain_report_period: Duration,
pub memory_check_interval: Duration,
pub handshake_timeout: Duration,
pub output_drain_timeout: Duration,
pub fork_answer_timeout: Duration,
pub fork_backoff_first: Duration,
pub fork_backoff_max: Duration,
pub fork_backoff_reset_after: Duration,
pub log_sweep_interval: Duration,
pub orphan_poll: Duration,
pub orphan_kill_wait: Duration,
pub orphan_grace: Duration,
pub reconnect_backoff_first: Duration,
pub reconnect_backoff_max: Duration,
pub worker_alive_interval: Duration,
pub deregister_wait: Duration,
pub drain_tick: Duration,
pub drain_ack_wait: Duration,
pub stop_poll: Duration,
pub connection_job_cancel_grace: Duration,
pub vault_min_renew_wait: Duration,
pub master_sample_window: Duration,
pub clock_skew_warning: Duration,
pub vault_renew_check: Duration,
pub vault_renew_retry: Duration,
pub round_gap: Duration,
pub notification_retry: Duration,
pub master_alive_interval: Duration,
pub gauge_refresh: Duration,
pub outbox_poll: Duration,
pub outbox_retry_first: Duration,
pub outbox_retry_max: Duration,
pub retention_interval: Duration,
pub sample_interval: Duration,
pub samples_kept: Duration,
pub rollups_kept: Duration,
pub parse_retry_first: Duration,
pub parse_retry_max: Duration,
pub node_heartbeat: Duration,
pub changes_poll_interval: Duration,
pub events_recheck: Duration,
pub events_keep_alive: Duration,
pub events_retry: Duration,
pub auth_recheck: Duration,
pub auth_remembered: Duration,
pub requests_grace: Duration,
pub schema_retry: Duration,
pub ui_keep_alive: Duration,
pub ui_coalesce: Duration,
pub ui_tail_interval: Duration,
pub ui_tail_give_up: Duration,
pub ui_slow_read: Duration,
pub ui_slow_read_wait: Duration,
pub ui_relay_retry_first: Duration,
pub ui_relay_retry_max: Duration,
pub worker_stop_after_failure: Duration,
pub accept_retry: Duration,
pub trigger_restart_backoff: Duration,
pub trigger_restart_backoff_max: Duration,
pub metrics_final_after: Duration,
pub sample_rollup_grace: Duration,
pub memory_peaks_window: Duration,
pub event_future_tolerance: Duration,
pub for_future_tolerance: Duration,
pub code_retry_delay: Duration,
pub node_row_kept: Duration,
pub client_connect_timeout: Duration,
pub client_request_timeout: Duration,
pub client_command_wait: Duration,
pub dags_test_run_timeout: Duration,
pub overridden: Vec<String>,
}Expand description
The timings that aren’t a user’s to choose, each tuned, tied to others, or what the cluster’s
correctness depends on (a wrong value can run tasks twice, or lose a healthy worker): fixed,
not configuration. Only SCHEDR_HIDDEN__* changes them, which is what the tests do, to run
in seconds; anyone else does so at their own risk.
Fields§
§tick_interval: DurationHow often the master’s loop runs (scheduler, commands, dispatching).
heartbeat_interval: DurationHow often workers send Heartbeat (the master’s setting, sent to every worker).
lease_timeout: DurationA worker silent for this long is lost.
script_root_grace: DurationHow long no alive worker must report a script root before DAG roots using it are no longer withdrawn for it (decision 303).
event_lookback: DurationHow far before the newest event an EventNamed trigger acted on it looks again, for one
stored late (decision 354: a post’s time is taken before it commits, and webservers’
clocks differ); the keys its DAG has are skipped. Longer than a query_timeout and the
webservers’ clock skew.
lease_period: DurationHow long the master’s lease lasts (one master per database: a second one waits as a
standby, and takes over at most this long after the first dies); renewed every third
of it. At least three query_timeouts, shorter than loop_stall_timeout.
read_back_window: DurationAfter a commit cut off by the time limit or a lost connection, how long the master reads back whether it was stored (holding its lock: rounds and worker messages wait). Not seen by then: taken as not stored.
read_back_interval: DurationHow often it reads back within read_back_window.
query_timeout: DurationThe longest a query (or waiting for a connection) may take; a write’s transaction, a
few of these. Shorter than loop_stall_timeout, so one hung query doesn’t look
like a stuck loop, and at most a third of lease_period.
loop_stall_timeout: DurationThe master’s liveness fails when its scheduling loop hasn’t started an iteration for this long.
set_aside: DurationHow long a task whose assignment fails on its own (its data won’t read, the database refuses it) is left out of the rounds, so the others go on, before it is tried again.
handed_call_min: DurationThe least an @sensor(wait_for=...)’s call gets once it is handed its run, though its
max_wait is nearly or already out: the run ended within it (decision 353).
cleanup_move_wait: DurationHow long a lost worker’s cleanup waits, on top of the cancel grace, before it moves: a worker only cut off has stopped the task by then (decision 256).
listen_retry: DurationHow often a master whose listening for commands failed to start (the database too slow to check for a pooler, or unreachable) tries again; it polls meanwhile.
refresh_interval: DurationHow often the web UI’s live pages are told to read themselves again when the
database’s changes can’t be followed ([database] change_notifications = false, or no
listening connection).
worker_connect_timeout: DurationHow long connecting to a worker may take, to fetch a task’s log. Raise it on a slow network between the webserver and the workers.
drain_report_period: DurationFrom a drain’s SIGKILL of the tasks still running to the end of
termination_grace_period: time to report them interrupted and deregister before the
pod is killed (with 0s, their results may not reach the master, and they end lost).
memory_check_interval: DurationHow often the watchdog samples each task’s memory.
handshake_timeout: DurationHow long a peer has to complete the TLS handshake. Raise it for slow clients; lower it to drop stalled connections sooner.
output_drain_timeout: DurationHow long a stopped process’s output may take to reach its log (a process it started in a session of its own can hold the pipes open).
fork_answer_timeout: DurationHow long a fork server may take to answer a request; then it is restarted, and the task spawned.
fork_backoff_first: DurationThe first wait before a fork server is restarted; it doubles up to fork_backoff_max.
fork_backoff_max: DurationThe longest wait before a fork server is restarted.
fork_backoff_reset_after: DurationA fork server up for this long starts its restarts’ waits over.
log_sweep_interval: DurationHow often old task logs are swept.
orphan_poll: DurationHow often an orphan found at start is looked at while it stops.
orphan_kill_wait: DurationHow long an orphan may take to go after SIGKILL.
orphan_grace: DurationHow long an orphan found at start gets from SIGTERM to SIGKILL.
reconnect_backoff_first: DurationThe first wait after the master connection drops; it doubles up to
reconnect_backoff_max, with jitter.
reconnect_backoff_max: DurationThe longest wait between tries to reach the master.
worker_alive_interval: DurationHow often the agent’s loop turns at least, however quiet. Shorter than
loop_stall_timeout, or a quiet agent looks stuck.
deregister_wait: DurationHow long a stopping worker waits for the master to take its deregistering, at most (the drain’s end bounds it; by default that end alone, B242).
drain_tick: DurationHow often a drain looks at what is left.
drain_ack_wait: DurationHow long a drained worker waits for the master to acknowledge its last results; never past half the report period before the grace period ends, left to deregister and exit.
stop_poll: DurationHow often a stopped task’s process group is looked at until it is gone.
connection_job_cancel_grace: DurationHow long a connection test’s process gets from SIGTERM to SIGKILL.
vault_min_renew_wait: DurationA Vault token’s renewal never comes sooner than this.
master_sample_window: DurationHow far back a worker looks for its tightest master-time sample (decision 447).
clock_skew_warning: DurationHow far apart the master’s wall clock and a worker’s may be, beyond the round trip, before the worker warns (decision 449, B232).
vault_renew_check: DurationHow often a Vault session with nothing to renew is looked at again.
vault_renew_retry: DurationHow soon a failed Vault renewal is tried again, while the token lasts.
round_gap: DurationAt most one extra round every this long, under a stream of finished tasks.
notification_retry: DurationAfter notifications failed, how long until they are tried again; polling goes on meanwhile.
master_alive_interval: DurationHow often the master’s loop turns at least while it waits. Shorter than
loop_stall_timeout, or a waiting master looks stuck.
gauge_refresh: DurationHow often the master’s gauges are read from the database.
outbox_poll: DurationHow often the master’s sender looks for notifications to deliver.
outbox_retry_first: DurationThe first wait before a notification that failed is tried again; it doubles up to
outbox_retry_max.
outbox_retry_max: DurationThe longest wait before a notification that failed is tried again.
retention_interval: DurationHow often the master’s retention job deletes what [retention] no longer keeps
(decision 432).
sample_interval: DurationHow often the leading master samples each process, and a webserver itself (decision 464).
samples_kept: DurationHow long the minute samples are kept.
rollups_kept: DurationHow long the 15-minute rollups are kept.
parse_retry_first: DurationThe first wait before a failed parse job is tried again; it doubles up to
parse_retry_max.
parse_retry_max: DurationThe longest wait before a failed parse job is tried again.
node_heartbeat: DurationHow often a master writes its row of the deployment’s nodes.
changes_poll_interval: DurationHow often changes are read where they aren’t announced (SQLite).
events_recheck: DurationHow often the webserver looks at whether the database announces its changes.
events_keep_alive: DurationHow often an event stream gets a comment, keeping idle connections open through proxies.
events_retry: DurationHow soon following the database’s changes is tried again after a failure.
auth_recheck: DurationHow often the users and token files are looked at for a change. A removed user or a changed password keeps working this long: raising it delays revocation.
auth_remembered: DurationHow long a password check that passed is remembered, instead of running bcrypt again. A change of the users file forgets them all.
requests_grace: DurationHow long running requests get once the server stops; then they are cut.
schema_retry: DurationHow often a webserver started before the migration looks again.
ui_keep_alive: DurationHow often a page’s stream gets a ping, and the log tail a comment.
ui_coalesce: DurationA page’s stream sends at most one change this often, per deployment.
ui_tail_interval: DurationHow often the log tail reads the log.
ui_tail_give_up: DurationHow long the log tail keeps trying a log out of reach before it says so and stops.
ui_slow_read: DurationA Runs page read that took longer than this is slow (its deployments’ answers).
ui_slow_read_wait: DurationAfter a slow read, the page reads again on a change at most this often.
ui_relay_retry_first: DurationThe first wait before a relay opens its stream again; it doubles up to relay_retry_max.
ui_relay_retry_max: DurationThe longest wait between a relay’s tries.
worker_stop_after_failure: DurationOnce a standalone’s master failed, how long its worker gets to stop.
accept_retry: DurationHow long a listener waits after a failed accept (too many open files), instead of spinning.
trigger_restart_backoff: DurationThe wait before a failed trigger starts again; it doubles with each failure in a row.
trigger_restart_backoff_max: DurationThe most it waits.
metrics_final_after: DurationHow long after its end a Metrics bucket is final, kept by the webserver between requests
(decision 492): longer than the rollup’s grace, with room for the writers’ clocks. (WEBSERVER__METRICS_FINAL_AFTER)
sample_rollup_grace: DurationHow long after its end a samples window waits to be rolled up, so a sample stored late is
in it; shorter than metrics_final_after. (MASTER__SAMPLE_ROLLUP_GRACE)
memory_peaks_window: DurationHow far back the DAG page’s memory p95s reach (decision 467). (WEBSERVER__MEMORY_PEAKS_WINDOW)
event_future_tolerance: DurationHow far ahead of the clock a posted event’s at may be, posted to a webserver or by a
task through its master (EVENTS__FUTURE_TOLERANCE).
for_future_tolerance: DurationHow far ahead of the master’s clock a run’s --for may be. (MASTER__FOR_FUTURE_TOLERANCE)
code_retry_delay: DurationWhen a task whose code wasn’t on its worker yet is tried again: about a git-sync interval
and the settle time. (MASTER__CODE_RETRY_DELAY)
node_row_kept: DurationHow long a master’s row stays after its last heartbeat before it is removed. (MASTER__NODE_ROW_KEPT)
client_connect_timeout: DurationHow long the CLI and schedr ui wait to connect to a webserver. (CLIENT__CONNECT_TIMEOUT)
client_request_timeout: DurationHow long one request of the CLI or schedr ui to a webserver may take. (CLIENT__REQUEST_TIMEOUT)
client_command_wait: DurationHow long the CLI and schedr ui wait for the master’s decision on a command. (CLIENT__COMMAND_WAIT)
dags_test_run_timeout: DurationHow long schedr dags test waits for its run. (DAGS__TEST_RUN_TIMEOUT)
overridden: Vec<String>The SCHEDR_HIDDEN__* variables set, each warned about when starting.
Trait Implementations§
impl Eq for Timings
impl StructuralPartialEq for Timings
Auto Trait Implementations§
impl Freeze for Timings
impl RefUnwindSafe for Timings
impl Send for Timings
impl Sync for Timings
impl Unpin for Timings
impl UnsafeUnpin for Timings
impl UnwindSafe for Timings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);