Skip to content

Commit

Permalink
Set default effective_io_concurrency to 256
Browse files Browse the repository at this point in the history
Since all drives are SSDs in arrays with at least two drives, 256
is a reasonable default. NVMe drives could have this set even higher,
but this is a reasonable start.
  • Loading branch information
pnorman committed Sep 11, 2023
1 parent 1e31662 commit 5e50da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cookbooks/postgresql/attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
default[:postgresql][:settings][:defaults][:work_mem] = "4MB"
default[:postgresql][:settings][:defaults][:maintenance_work_mem] = "64MB"
default[:postgresql][:settings][:defaults][:max_stack_depth] = "2MB"
default[:postgresql][:settings][:defaults][:effective_io_concurrency] = "1"
default[:postgresql][:settings][:defaults][:effective_io_concurrency] = "256"
default[:postgresql][:settings][:defaults][:max_worker_processes] = "8"
default[:postgresql][:settings][:defaults][:max_parallel_workers_per_gather] = "2"
default[:postgresql][:settings][:defaults][:max_parallel_workers] = "8"
Expand Down

0 comments on commit 5e50da8

Please sign in to comment.