Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds keepalive values to postgresql config #3333

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions roles/postgresql/templates/postgresql.conf.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# This file is {{ ansible_managed }} and will be replaced. Make changes on the
# playbook
# This file is {{ ansible_managed }} and will be replaced.
# Make any necessary changes in princeton_ansible.
# Do not edit this file manually.
#
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
Expand Down Expand Up @@ -98,13 +100,12 @@ ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key' # (change requires rest
# - TCP Keepalives -
# see "man 7 tcp" for details

#tcp_keepalives_idle = 0 # TCP_KEEPIDLE, in seconds;
# 0 selects the system default
#tcp_keepalives_interval = 0 # TCP_KEEPINTVL, in seconds;
# 0 selects the system default
#tcp_keepalives_count = 0 # TCP_KEEPCNT;
# 0 selects the system default

# Time of inactivity before first keepalive request is sent, in seconds
tcp_keepalives_idle = 60
# Time between one keepalive request and the next, in seconds
tcp_keepalives_interval = 30
# Number of keepalive requests sent before connection is considered broken
tcp_keepalives_count = 10

#------------------------------------------------------------------------------
# RESOURCE USAGE (except WAL)
Expand Down