X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/04743763991d4bd0b536ceaec43439d6b3b4842c..6e7da07c709187c0fb72f8bed7963343ddd95160:/cookbooks/vectortile/attributes/default.rb?ds=sidebyside diff --git a/cookbooks/vectortile/attributes/default.rb b/cookbooks/vectortile/attributes/default.rb index 0df4249e7..b5e0933a6 100644 --- a/cookbooks/vectortile/attributes/default.rb +++ b/cookbooks/vectortile/attributes/default.rb @@ -10,6 +10,7 @@ default[:vectortile][:replication][:threads] = node.cpu_cores default[:postgresql][:versions] |= [node[:vectortile][:database][:cluster].split("/").first] default[:postgresql][:monitor_database] = "tiles" -default[:postgresql][:settings][:defaults][:max_connections] = (node.cpu_cores * 4 + 20).to_s +# As an absolute worst case, the server might have the serving, update, and a manual generation process going on. +default[:postgresql][:settings][:defaults][:max_connections] = (node.cpu_cores * 6 + 20).to_s default[:accounts][:users][:tileupdate][:status] = :role default[:accounts][:users][:tilekiln][:status] = :role