Issue Type : Unclosed connections to postgres DB from ingress network
OS Version/build: Ubuntu 18.04
Docker Engine - 19.03.0-beta5
Postgres - 10.3-alpine
I have a Web Application connecting to the postgres container from another container. Although there is a connection pool, the connections keeps growing until “Unable to connect - too many clients” issue crops up as postgres only allows 100 connections by default.
Even after the web application is stopped, the connections to postgres continue to exist and gets closed only after postgress container itself is stopped. And since it is via the ingress network, it is not possible to check the ip from which it originated.
How to get these ghost connections closed ?.
Is there a way to find out who is connecting to this ingress network ?