Server downtime

Posted December 28, 2019 2.3k views
Linux BasicsNginxNode.jsDigitalOcean

I am using a nodejs express app with a domain protected by cloudflare, I setup uptimerobot to monitor the uptime of my site, first off when I go to my site sometimes it will instantly say error 521 web server is down, and I refresh once or twice and it works, it was never down. This happens even on the droplets direct ip. Second uptimerobot says it has a 77% uptime, and its still going down, the site goes out for about a hour at a time, randomly. I can even send just 4 GET requests to my server through an app, and the entire website wont load almost like its overloaded, but all the node logs have no errors. Im pretty sure this is just DO because I try the same exact code with a different host, and I have no downtime errors, and it doesnt crash when sending a few simple GET requests… anyone know why or how this is DO or how to fix it?

edited by bobbyiliev

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.

Submit an Answer
1 answer

Hi @Ultimate745,

I’ll recommend troubleshooting this behavior directly on the Droplet. Most probably you are experiencing some high load on the server. I’ll recommend SSHing to the Droplet to find the exact reason.

A few tips would be to check the number of connections, check the IP addresses that have been connected to your droplet to confirm where are they from. See if any SQL queries are causing issues as well.