Peak connection review, Postgres managed database


I have to managed database postgres with DigitalOcean.

Have a primary node with 2 connection pools and available backend server connections 197 + one node read-only.

Normally our cluster has an average of 60 connections but one day we had a peak of connections which caused all the applications to suffer crashes as there were no connections available.

Detect the peaks with Digital’s graphs, but I would like to know if Digital has another tool to better monitor my problem? For example, know which is the IP with more connections that is impacting and thus which of our apps is having the problem.

I have seen the log and queries tab but since so many queries are made it is not easy to know what is really happening


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @oscarricardosan,

You can make use of the SQL statement below to get the IP address of all the client connections that you are making.

SELECT * FROM pg_stat_activity;

For information :

I hope this helps!

Regards, Rajkishore