Report this

What is the reason for this report?

Peak connection review, Postgres managed database

Posted on November 13, 2020

Hi.

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



This textbox defaults to using Markdown to format your 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 : https://www.postgresql.org/docs/12/monitoring-stats.html

I hope this helps!

Regards, Rajkishore

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.