From f506c56b1eb87ac3d928841576ca8f8a00a8d2e9 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Oct 02 2020 22:37:50 +0000 Subject: inventory / db01: increase memory and cpus and adjust postgresql settings GIve db01 64gb mem and 24cpus. We have them on that virthost and this host is one of our busiest. Adjust the postgresql params based on what I now know from adjusting db-koji01. This should hopefully improve a number of applications performance. Note that we need a restart/reboot to have the cpu changes and postgres changes take effect. The memory change is already live. Signed-off-by: Kevin Fenzi --- diff --git a/inventory/host_vars/db01.iad2.fedoraproject.org b/inventory/host_vars/db01.iad2.fedoraproject.org index d3edcf2..4e7f90b 100644 --- a/inventory/host_vars/db01.iad2.fedoraproject.org +++ b/inventory/host_vars/db01.iad2.fedoraproject.org @@ -56,8 +56,8 @@ dbs_to_backup: # These are normally group variables, but in this case db servers are often different lvm_size: 500000 -mem_size: 16384 -num_cpus: 10 +mem_size: 65536 +num_cpus: 24 fas_client_groups: sysadmin-dba,sysadmin-noc,sysadmin-veteran # @@ -72,6 +72,8 @@ nrpe_procs_warn: 800 nrpe_procs_crit: 900 db_backup_dir: ['/backups'] -shared_buffers: "4GB" -effective_cache_size: "1GB" +# Should be 0.25 of memory +shared_buffers: "16GB" +# Should be 0.80 of memory +effective_cache_size: "50GB" max_stack_depth: "6MB"