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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.