Skip to content

Commit

Permalink
feat: Increase the rockdb persistence ttl
Browse files Browse the repository at this point in the history
Raise the limit for a rocksdb TTL to 25 hours to match the same maximum aggregate window we have in
LA.

Ref: LOG-18683
  • Loading branch information
dhable committed Apr 15, 2024
1 parent 07531a0 commit 09cd6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mezmo/persistence/rocksdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ROCKSDB_BLOCK_CACHE_SIZE: usize = 1024 * 500;
// backend in a best-effort as soon as possible after the TTL elapses.
// In the future this may need to be configurable per-component, but for now all records
// are subject to the same TTL.
const ROCKSDB_TTL_SECS: u64 = 43200; // 12 hours
const ROCKSDB_TTL_SECS: u64 = 90_000; // 25 hours

// Global registry of RocksDB connections.
// Connections/databases are partitioned by account. Each component for a given account
Expand Down

0 comments on commit 09cd6e0

Please sign in to comment.