pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: M Tarkeshwar Rao <m.tarkeshwar.rao@ericsson.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Cc: Piyush Anand <piyush.anand@ericsson.com>
Cc: Neeraj Gupta G <neeraj.g.gupta@ericsson.com>
Subject: Re: Connection remains idle for more than 15 minutes, then the connection drops by IPVS setting in k8s kube-proxy
Date: Tue, 5 Mar 2024 12:29:04 +0100
Message-ID: <ZecCANH7xt0DQHw3@pureos> (raw)
In-Reply-To: <PAWPR07MB10095A5D76879A0F32F229C72AE222@PAWPR07MB10095.eurprd07.prod.outlook.com>
References: <PAWPR07MB10095D5E7FF7D783427860B09AE222@PAWPR07MB10095.eurprd07.prod.outlook.com>
	<PAWPR07MB10095A5D76879A0F32F229C72AE222@PAWPR07MB10095.eurprd07.prod.outlook.com>

El día martes, marzo 05, 2024 a las 11:08:27 +0000, M Tarkeshwar Rao escribió:

> Hi all,
> 
> "
> 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?

An option could be to run the connection through an SSH tunnel and use
there the sshd(8) config parameter ClientAliveInterval.

HIH

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

I am not at war with Russia.  Я не воюю с Россией.
Ich bin nicht im Krieg mit Russland.





view thread (5+ messages)  latest in thread

Message-ID: <ZecCANH7xt0DQHw3@pureos>
Permalink:  ../ZecCANH7xt0DQHw3@pureos/
Also on:    postgresql.org/message-id/ZecCANH7xt0DQHw3@pureos

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: guru@unixarea.de, m.tarkeshwar.rao@ericsson.com, piyush.anand@ericsson.com, neeraj.g.gupta@ericsson.com
  Subject: Re: Connection remains idle for more than 15 minutes, then the connection drops by IPVS setting in k8s kube-proxy
  In-Reply-To: <ZecCANH7xt0DQHw3@pureos>
  References: <PAWPR07MB10095D5E7FF7D783427860B09AE222@PAWPR07MB10095.eurprd07.prod.outlook.com> <PAWPR07MB10095A5D76879A0F32F229C72AE222@PAWPR07MB10095.eurprd07.prod.outlook.com> <ZecCANH7xt0DQHw3@pureos>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox