Skip to content

Commit ab2ded7

Browse files
jordanhunt22Convex, Inc.
authored andcommitted
Increase idle instance max_repeatable bump (#25057)
Increase the amount of time between bumps of `max_repeatable` for idle instances. I tested locally confirmed that this will reduce the queries of the retention globals ~2.5x for idle instances. GitOrigin-RevId: 1de0a7ce6b249c694e57e8604572e38313a0886e
1 parent 150a635 commit ab2ded7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/common/src/knobs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ pub static TRANSACTION_MAX_READ_SET_INTERVALS: LazyLock<usize> =
269269
pub static MAX_REPEATABLE_TIMESTAMP_IDLE_FREQUENCY: LazyLock<Duration> = LazyLock::new(|| {
270270
Duration::from_secs(env_config(
271271
"MAX_REPEATABLE_TIMESTAMP_IDLE_FREQUENCY",
272-
2 * 60,
272+
5 * 60,
273273
))
274274
});
275275

crates/database/src/retention.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ impl<RT: Runtime> LeaderRetentionManager<RT> {
441441
Self::get_checkpoint(
442442
persistence.reader().as_ref(),
443443
snapshot_reader.clone(),
444-
RetentionType::Index,
444+
retention_type,
445445
)
446446
.await?;
447447
Ok(Some(new_min_snapshot_ts))

0 commit comments

Comments
 (0)