Skip to content

Commit 200f35a

Browse files
authored
chore(l1, l2): remove rocksdb wal TTL (#4966)
**Motivation** We currently have a 1 hour ttl for our rocksdb WAL for no discernible reason, and I think it's better to leave it to rocksdb to configure until we find a reason to change it. This 1 hour ttl is the main reason why the database size for our nodes drops massively an hour after snap sync finishes (in mainnet this drop is of more than 100 GB) **Description** <!-- A clear and concise general description of the changes this PR introduces --> <!-- Link to issues: Resolves #111, Resolves #222 --> Closes #issue_number
1 parent 307d0ed commit 200f35a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/storage/store_db/rocksdb.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ impl Store {
153153

154154
db_options.set_wal_recovery_mode(rocksdb::DBRecoveryMode::PointInTime);
155155
db_options.set_max_total_wal_size(2 * 1024 * 1024 * 1024); // 2GB
156-
db_options.set_wal_ttl_seconds(3600);
157156
db_options.set_wal_bytes_per_sync(32 * 1024 * 1024); // 32MB
158157
db_options.set_bytes_per_sync(32 * 1024 * 1024); // 32MB
159158
db_options.set_use_fsync(false); // fdatasync

0 commit comments

Comments
 (0)