X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a48d3c6dbc350bfb430691dbc128ff06ad8f979a..cac6ace6749429cdc77d0f1c0bac4890838d0861:/cookbooks/tile/templates/default/replicate.erb diff --git a/cookbooks/tile/templates/default/replicate.erb b/cookbooks/tile/templates/default/replicate.erb index 83fec6fb7..bdd271f61 100644 --- a/cookbooks/tile/templates/default/replicate.erb +++ b/cookbooks/tile/templates/default/replicate.erb @@ -17,6 +17,11 @@ exec > /var/log/tile/replicate.log 2>&1 # Change to the replication state directory cd /var/lib/replicate +<% if @postgresql_version >= 12 -%> + +# Disable JIT and parallel workers in postgres +export PGOPTIONS="-c jit=off -c max_parallel_workers_per_gather=0" +<% end -%> # Install exit handler trap onexit EXIT