diff --git a/ansible/group_vars/store-db.yml b/ansible/group_vars/store-db.yml index cd2b628..dcd8579 100644 --- a/ansible/group_vars/store-db.yml +++ b/ansible/group_vars/store-db.yml @@ -55,6 +55,9 @@ postgres_system_setting_stage: ## Autovacuum autovacuum: 'off' +# For each 16GB of ram, 1 GB is set to share memory +postgres_share_memory: '{{ ansible_memtotal_mb / 16 | int }}m' + # Consul postgres_ha_consul_check_interval: '60s' postgres_ha_consul_check_timeout: '5s' diff --git a/ansible/requirements.yml b/ansible/requirements.yml index 333215d..8643724 100644 --- a/ansible/requirements.yml +++ b/ansible/requirements.yml @@ -26,4 +26,4 @@ - name: infra-role-postgres-ha src: git@github.com:status-im/infra-role-postgres-ha.git - version: 04b78168fd8024e8af2c6ec1d0ee28eeea7742a2 + version: aa752f40623a7f92ce4a95c40cbbabf815452945