Skip to content

Commit

Permalink
limit wal archive size to 1gb
Browse files Browse the repository at this point in the history
Signed-off-by: morguldir <[email protected]>
  • Loading branch information
morguldir committed Jan 21, 2025
1 parent 1473d71 commit f91d294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/engine/db_opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub(crate) fn db_options(config: &Config, env: &Env, row_cache: &Cache) -> Resul

// Files
opts.set_table_cache_num_shard_bits(7);
opts.set_wal_size_limit_mb(1024 * 1024 * 1024);
opts.set_wal_size_limit_mb(1024);
opts.set_max_total_wal_size(1024 * 1024 * 512);
opts.set_writable_file_max_buffer_size(1024 * 1024 * 2);

Expand Down

0 comments on commit f91d294

Please sign in to comment.