From 3ab02950616430d08faed9ce2821a828222d11c0 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Sat, 30 Jul 2016 20:06:28 -0700 Subject: [PATCH] puppet: Add zulip.conf setting for effective_io_concurrency tuning. --- puppet/zulip/manifests/postgres_appdb_tuned.pp | 1 + .../templates/postgresql/9.5/postgresql.conf.template.erb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/puppet/zulip/manifests/postgres_appdb_tuned.pp b/puppet/zulip/manifests/postgres_appdb_tuned.pp index b932cdafae..c36f6ed3b7 100644 --- a/puppet/zulip/manifests/postgres_appdb_tuned.pp +++ b/puppet/zulip/manifests/postgres_appdb_tuned.pp @@ -69,6 +69,7 @@ vm.dirty_background_ratio = 5 $maintenance_work_mem = $total_memory_mb / 32 $random_page_cost = zulipconf("postgresql", "random_page_cost", undef) + $effective_io_concurrency = zulipconf("postgresql", "effective_io_concurrency", undef) file { "/etc/postgresql/${zulip::base::postgres_version}/main/postgresql.conf": require => Package["postgresql-${zulip::base::postgres_version}"], diff --git a/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb b/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb index 3e58785f31..a35ac1249a 100644 --- a/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb +++ b/puppet/zulip/templates/postgresql/9.5/postgresql.conf.template.erb @@ -657,3 +657,6 @@ checkpoint_completion_target = 0.7 <% if scope["zulip::postgres_appdb_tuned::random_page_cost"] -%> random_page_cost = <%= scope["zulip::postgres_appdb_tuned::random_page_cost"] %> <% end -%> +<% if scope["zulip::postgres_appdb_tuned::effective_io_concurrency"] -%> +effective_io_concurrency = <%= scope["zulip::postgres_appdb_tuned::effective_io_concurrency"] %> +<% end -%>