limit wal archive size to 1gb

Signed-off-by: morguldir <morguldir@protonmail.com>
This commit is contained in:
morguldir 2025-01-21 12:11:49 +01:00
parent 1473d71b40
commit f91d294265
No known key found for this signature in database
GPG key ID: 5A6025D4F6E7A8A3

View file

@ -55,7 +55,7 @@ pub(crate) fn db_options(config: &Config, env: &Env, row_cache: &Cache) -> Resul
// Files // Files
opts.set_table_cache_num_shard_bits(7); 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_max_total_wal_size(1024 * 1024 * 512);
opts.set_writable_file_max_buffer_size(1024 * 1024 * 2); opts.set_writable_file_max_buffer_size(1024 * 1024 * 2);