Skip to content

Commit 50751ae

Browse files
goffrieConvex, Inc.
authored and
Convex, Inc.
committed
Remove BACKEND_PREEMPTION_TIMEOUT (#36406)
GitOrigin-RevId: ace2515ff3e563982a031c080217afd5257318ad
1 parent 80ad00b commit 50751ae

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

crates/common/src/knobs.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -163,22 +163,6 @@ pub static LEASE_LOST_COOL_DOWN: LazyLock<Duration> = LazyLock::new(|| {
163163
))
164164
});
165165

166-
/// The time for which we will try to preempt a backend after we know it has
167-
/// lost its lease. Duration of 0 means preemption is disabled, all past serving
168-
/// records will be assumed shut down and deleted without attempting to preempt
169-
/// them. We default to 0 in dev as no preemption is necessary.
170-
///
171-
/// Try to proactively preempt past backends for up to 2 minutes. This can
172-
/// be much lower, but we use higher timeout to protect against transiently
173-
/// unreachable backends. By the time elapses, a network partitioning backend,
174-
/// should attempt to write, discover it has lost its lease and self-preempt.
175-
pub static BACKEND_PREEMPTION_TIMEOUT: LazyLock<Duration> = LazyLock::new(|| {
176-
Duration::from_secs(env_config(
177-
"BACKEND_PREEMPTION_TIMEOUT_SECS",
178-
prod_override(0, 120),
179-
))
180-
});
181-
182166
/// How long the queue must be nonempty before we consider traffic to be
183167
/// "congested" and start shedding traffic. When we are idle (not congested) it
184168
/// is how long each request can live in the queue.

0 commit comments

Comments
 (0)