Connection remains idle for more than 15 minutes, then the connection drops by IPVS setting in k8s kube-proxy

From: M Tarkeshwar Rao <m(dot)tarkeshwar(dot)rao(at)ericsson(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Cc: Piyush Anand <piyush(dot)anand(at)ericsson(dot)com>, Neeraj Gupta G <neeraj(dot)g(dot)gupta(at)ericsson(dot)com>
Subject: Connection remains idle for more than 15 minutes, then the connection drops by IPVS setting in k8s kube-proxy
Date: 2024-03-05 11:07:03
Message-ID: PAWPR07MB10095D5E7FF7D783427860B09AE222@PAWPR07MB10095.eurprd07.prod.outlook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Tarkesh,

"
We are using libpq c client (Version : 14.10) of postgresql in our application to connect with postgresql database server (Version 14.10).
For making connection we are using libpq's API "PQsetdbLogin()".

Problem Statement : If our connection remains idle for more than 15 minutes, then the connection drops by IPVS setting in k8s kube-proxy.

Query : Is there any way we can provide values of "keepalives_idle, keepalives_interval, keepalives_count" client parameters in the API "PQsetdbLogin()" while creating the connection.
If yes, then can someone please provide the sample code for the same.
We need these parameters support at client side only.
"

Is there any other alternative approach using some configuration files from client side?

Thanks,
Tarkeshwar

Responses

Browse pgsql-general by date

  From Date Subject
Next Message M Tarkeshwar Rao 2024-03-05 11:07:57 Recall: Connection remains idle for more than 15 minutes, then the connection drops by IPVS setting in k8s kube-proxy
Previous Message Frank Lanitz 2024-03-05 08:13:48 pgBadger: Cannot find any log entries from systemd-journald