From a44c1fed3768d6e3611d7be9beba15e973de280c Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Wed, 28 May 2025 15:19:31 -0700 Subject: [PATCH] Update postgres deployment to include connection keepalive and timeout settings --- apps/postgres/deployment.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/postgres/deployment.yaml b/apps/postgres/deployment.yaml index d41322b..ea530f9 100644 --- a/apps/postgres/deployment.yaml +++ b/apps/postgres/deployment.yaml @@ -16,6 +16,13 @@ spec: containers: - name: postgres image: pgvector/pgvector:pg15 + args: [ + "-c", "tcp_keepalives_idle=600", + "-c", "tcp_keepalives_interval=30", + "-c", "tcp_keepalives_count=3", + "-c", "statement_timeout=300000", + "-c", "idle_in_transaction_session_timeout=600000" + ] ports: - containerPort: 5432 envFrom: