Skip to content

Commit

Permalink
node-db: increases the shared memory configured in docker
Browse files Browse the repository at this point in the history
Mitigates the "out of shared memory" issue

Signed-off-by: Ivan Folgueira Bande <[email protected]>
  • Loading branch information
Ivansete-status committed Sep 17, 2024
1 parent d3ad781 commit 720a437
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ansible/group_vars/node-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ open_ports_default_comment: '{{ postgres_ha_service_name }}'
open_ports_list:
postgres:
- { port: '{{ postgres_ha_cont_port }}', ipset: '{{ env }}.{{ stage }}', iifname: 'wg0' }

# Use the 30% of RAM for shared memory
postgres_share_memory: '{{ ansible_memtotal_mb * 0.30 | int }}m'

0 comments on commit 720a437

Please sign in to comment.