Adjust db01 postgresql config also.
This commit is contained in:
parent
d78803b529
commit
ee6d457c84
1 changed files with 6 additions and 1 deletions
|
@ -124,6 +124,9 @@ shared_buffers = {{ shared_buffers }} # min 128kB or max_connections*16kB
|
|||
{% if ansible_hostname.startswith("db-koji01") %}
|
||||
work_mem = 4MB # min 64kB
|
||||
maintenance_work_mem = 16MB # min 1MB
|
||||
{% elif ansible_hostname.startswith("db01") %}
|
||||
work_mem = 4MB # min 64kB
|
||||
maintenance_work_mem = 1024MB # min 1MB
|
||||
{% else %}
|
||||
work_mem = 2MB # min 64kB
|
||||
maintenance_work_mem = 1024MB # min 1MB
|
||||
|
@ -222,8 +225,10 @@ random_page_cost = 3.0 # same scale as above
|
|||
#cpu_operator_cost = 0.0025 # same scale as above
|
||||
{% if ansible_hostname.startswith("db-koji01") %}
|
||||
effective_cache_size = 24GB
|
||||
{% elif ansible_hostname.startswith("db01") %}
|
||||
effective_cache_size = 12GB
|
||||
{% else %}
|
||||
effective_cache_size = 5GB
|
||||
effective_cache_size = 5GB
|
||||
{% endif %}
|
||||
|
||||
# - Genetic Query Optimizer -
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue