Skip to content

Commit

Permalink
max_wal_size = 4 GB
Browse files Browse the repository at this point in the history
  • Loading branch information
mpasternak committed Oct 8, 2024
1 parent 0d4ef34 commit 3fd92b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/dbserver/autotune.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def generate_config(ram_kb):
config["work_mem"] = (ram_kb * 3 / 4) / (conns * 3) / max_parallel

config["min_wal_size"] = ONE_GB_IN_KB
config["max_wal_size"] = 2 * ONE_GB_IN_KB
config["max_wal_size"] = 4 * ONE_GB_IN_KB

config["wal_buffers"] = min(ram_kb * 3 / 4 / 100, 16 * ONE_MB_IN_KB)

Expand Down

0 comments on commit 3fd92b7

Please sign in to comment.