supabase-postgres.git / summary / log / commit / refs

commit    752dd55f62da45b4bb17d681a5cc6374339efba8
Author:   Douglas J Hunley <doug.hunley@gmail.com>
Commit:   GitHub <noreply@github.com>
Date:     Wed Jun 10 14:32:54 2026 +0000

    ansible: move tcp_keepalive_time to tuned profile (#2197)


ansible/tasks/setup-system.yml | 7 ------- ansible/tasks/setup-tuned.yml | 13 +++++++++++++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ansible/tasks/setup-system.yml b/ansible/tasks/setup-system.yml index 2feddaaf..88286e47 100644 --- a/ansible/tasks/setup-system.yml +++ b/ansible/tasks/setup-system.yml @@ -154,13 +154,6 @@ owner: 'root' group: 'root' - # Set Sysctl params specific to keepalives - - name: Set net.ipv4.tcp_keepalive_time=1800 - ansible.builtin.sysctl: - name: 'net.ipv4.tcp_keepalive_time' - value: 1800 - state: 'present' - - name: Set net.ipv4.tcp_keepalive_intvl=60 ansible.builtin.sysctl: name: 'net.ipv4.tcp_keepalive_intvl' diff --git a/ansible/tasks/setup-tuned.yml b/ansible/tasks/setup-tuned.yml index c7dfb7fa..8cd9cff1 100644 --- a/ansible/tasks/setup-tuned.yml +++ b/ansible/tasks/setup-tuned.yml @@ -111,6 +111,19 @@ state: 'present' value: 10 + + - name: tuned - Set tcp_keepalive_time + become: true + community.general.ini_file: + create: true + group: 'root' + mode: '0644' + no_extra_spaces: true + option: 'net.ipv4.tcp_keepalive_time' + path: '/etc/tuned/profiles/postgresql/tuned.conf' + section: 'sysctl' + state: 'present' + value: 1800 - name: tuned - Load zstd compressor module become: true community.general.modprobe: [parent: 83524afab05f]