Skip to content

Instantly share code, notes, and snippets.

@mowings
Last active June 21, 2020 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mowings/ce376f229ed49f4bddcc09659efbae1e to your computer and use it in GitHub Desktop.
Save mowings/ce376f229ed49f4bddcc09659efbae1e to your computer and use it in GitHub Desktop.
postgres tcp keepalive setting in rails. May be needed for kubernetes rails deployments, especially sneakers
production:
url: <%= DATABASE_URL %>
variables:
tcp_keepalives_idle: 300
tcp_keepalives_interval: 20
tcp_keepalives_count: 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment