#77 Make the postgresql config a little more flexible and tweak it for pagure.io
Merged 3 years ago by pingou. Opened 3 years ago by pingou.
fedora-infra/ pingou/ansible master  into  master

@@ -21,8 +21,10 @@ 

  # PostgreSQL configuration

  #

  

- shared_buffers: "32MB"

- effective_cache_size: "512MB"

+ shared_buffers: "512MB"

+ effective_cache_size: 0

+ temp_buffers: "8MB"

+ max_stack_depth: "4MB"

  

  ssh_hostnames:

  - pagure.io

@@ -117,7 +117,11 @@ 

  

  shared_buffers = {{ shared_buffers }}   # min 128kB or max_connections*16kB

                                          # (change requires restart)        

+ {% if temp_buffers %}

+ temp_buffers = {{ temp_buffers }}                     # min 800kB

+ {% else %}

  temp_buffers = 32MB                     # min 800kB                        

+ {% endif %}

  #max_prepared_transactions = 5          # can be 0 or more                 

                                          # (change requires restart)        

  # Note:  Increasing max_prepared_transactions costs ~600 bytes of shared memory
@@ -132,7 +136,12 @@ 

  work_mem = 32MB

  maintenance_work_mem = 2GB              # min 1MB

  {% endif %}

+ 

+ {% if max_stack_depth %}

+ max_stack_depth = {{ max_stack_depth }}                  # min 100kB

+ {% else %}

  #max_stack_depth = 2MB                  # min 100kB                       

+ {% endif %}

  

  # - Free Space Map -

  
@@ -225,7 +234,9 @@ 

  #cpu_tuple_cost = 0.01                  # same scale as above           

  #cpu_index_tuple_cost = 0.005           # same scale as above           

  #cpu_operator_cost = 0.0025             # same scale as above           

+ {% if effective_cache_size %}

  effective_cache_size = {{ effective_cache_size }}

+ {% endif %}

  

  # - Genetic Query Optimizer -

  

no initial comment

Build succeeded.

Seems fine to me. +1 to merge and you run the postgresql playbook?

Thanks for the review, I'll merge and run the playbook :)

rebased onto 6710db8

3 years ago

Pull-Request has been merged by pingou

3 years ago

Build succeeded.