Re: Idle connections / sessions

Поиск
Список
Период
Сортировка
От Thomas Poty
Тема Re: Idle connections / sessions
Дата
Msg-id CAN_ctnh4_f0SLNhm06NwutGHE5_Bx5hrn_0DskJJRW6kTEqnwQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Idle connections / sessions  (Fabio Pardi <f.pardi@portavita.eu>)
Ответы SV: Idle connections / sessions
Список pgsql-general
Hi Josef,

pg_terminator may help you.

thomas

Le mer. 12 déc. 2018 à 11:02, Fabio Pardi <f.pardi@portavita.eu> a écrit :
Hi Josef,

please avoid cross posting to multiple lists.

I m not a developer, but I think that if you do not want idle connections, you should terminate them on the side they have been created.

If your application leaves the connection open, then you will notice idle connections on Postgres when not in use.

regards,

fabio pardi


On 12/12/2018 10:37, Oygun Josef wrote:

Hi,

 

Is it possible to terminate idle connections/sessions automatically through a timeout in AWS or do I need to run a periodical cron job for this?

 

Postgres version: 9.6.6

Instance: db.t2.micro

RAM : 1GB

 

We are running a microservice architecture using docker with kubernetes and I can see that every pod on every node that has connected to the DB still has a idle connection as long as the node is still active even.

 

It is both PGAdmin and the PostgreSQL JDBC Driver that leaves open idle connections.

 

 

Josef Oygun

 


В списке pgsql-general по дате отправления:

Предыдущее
От: Fabio Pardi
Дата:
Сообщение: Re: Idle connections / sessions
Следующее
От: Oygun Josef
Дата:
Сообщение: SV: Idle connections / sessions