Skip to main content Module backoff Copy item path Source use std::ops::Range ; ๐ use std::sync::atomic::AtomicU64 ; ๐ use std::sync::atomic::Ordering ; ๐ use std::time::Duration ; ๐ use futures::FutureExt; ๐ use ruma::EventId; ๐ use tuwunel_core::Error ; ๐ use tuwunel_core::implement; ๐ use tuwunel_core::utils::BoolExt ; ๐ use tuwunel_core::utils::continue_exponential_backoff ; ๐ use tuwunel_core::utils::stream::ReadyExt ; ๐ use tuwunel_core::utils::stream::TryIgnore ; ๐ use tuwunel_core::utils::time::now_secs ; ๐ use tuwunel_database::Ignore ; ๐ use tuwunel_database::Interfix ; ๐ BackoffCounters ๐ BackoffMetrics Snapshot of process-lifetime verdicts from the backoff store, per federation
step. Summary ๐ VerdictCounters ๐ Verdicts Verdict counts for one federation step. Context ๐ Federation step that recorded a decision; the keyโs leading discriminant. Disposition ๐ Permanence of a recorded decision. Unknown discriminants decode to the
weakest (Pending) so a future encoding can only soften, never wrongly
escalate, a verdict against an old binary. Permanent is never written by
this store. Suppression ๐ Verdict from consulting the store before a federation step. QUANTUM ๐ Bucket width in seconds. Records within one bucket collide onto a single key
(<= the smallest call-site backoff floor), coalescing concurrent failures. SUPPRESS_AFTER ๐ Accumulated Pending records at which the rate brake engages. UPGRADE_RETRY ๐ Retry window for the Upgrade context. current_bucket ๐