puppet: Add zulip.conf setting for effective_io_concurrency tuning.

This commit is contained in:
Tim Abbott 2016-07-30 20:06:28 -07:00
parent f3db368a3c
commit 3ab0295061
2 changed files with 4 additions and 0 deletions

View File

@ -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}"],

View File

@ -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 -%>