Skip to content

Commit fad6115

Browse files
emmaling27Convex, Inc.
authored andcommitted
Decrease DOCUMENT_RETENTION_RATE_LIMIT 1024-> 128 (#43231)
GitOrigin-RevId: ad3263d5dbee4edb3517373e25aaf4eb2ec43df9
1 parent 95e7fbe commit fad6115

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/common/src/knobs.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,10 +498,12 @@ pub static DOCUMENT_RETENTION_BATCH_INTERVAL_SECONDS: LazyLock<Duration> = LazyL
498498
/// Note that while this serves as an upper bound, retention speed is mostly
499499
/// limited by `DOCUMENT_RETENTION_BATCH_INTERVAL_SECONDS`,
500500
/// `DOCUMENT_RETENTION_DELETE_CHUNK`, and `DOCUMENT_RETENTION_DELETE_PARALLEL`
501+
/// TODO(ENG-10039): Increase this after retention has caught up so we don't get
502+
/// too behind on partitions that have high write rates.
501503
pub static DOCUMENT_RETENTION_RATE_LIMIT: LazyLock<NonZeroU32> = LazyLock::new(|| {
502504
env_config(
503505
"DOCUMENT_RETENTION_RATE_LIMIT",
504-
NonZeroU32::new(1024).unwrap(),
506+
NonZeroU32::new(100).unwrap(),
505507
)
506508
});
507509

0 commit comments

Comments
 (0)