By RaniSharim
I have a nodejs server behind nginx. Sometimes, http requests get “timeout”. Checking both the access and error logs for both the nginx and node does’t even show the requests coming to either of them, let alone fail. Some of these requests are from the server itself (using curl via crontab).
I’m lost on how to even begin to start the problem. Any ideas?
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!
I would make sure that your connection from which you test is stable enough. Unstable connection can cause that request you sent doesn’t even get send. You can create script that will curl server and run it from multiple workstations/connections. Ping could also be good to test server responsiveness but curl would be better if available.
From server side you can verify that Droplet isn’t under heavy load. Check CPU and RAM. Test above and this in same time, you can get some pattern that’ll help debug issue. You can also see current I/O Bandwidth from DO Control Panel.
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.