Question

Experiencing Random Droplet Downtime on DigitalOcean

Has anyone else been facing unexpected downtime with their DigitalOcean droplets? I’ve noticed that some of my droplets occasionally go offline without any clear reason or warning. This is affecting the uptime of my applications, which is critical for maintaining user trust and service reliability.

I’ve tried monitoring the resource usage and checking for any abnormal activities, but everything seems normal until the droplet just stops responding. Restarting the droplet usually resolves the issue temporarily, but I’m looking for a more permanent fix or at least some insight into why this might be happening.

As a software development agency, we rely heavily on stable and reliable cloud infrastructure for our clients’ projects. If anyone else is experiencing similar issues or has found effective solutions, I’d appreciate your input. For those in need of professional support or custom solutions to optimize their cloud-based applications, feel free to visit our Software Development Agency we specialize in building resilient and high-performing software that can withstand such challenges.


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
August 23, 2024
Accepted Answer

Hey Harry,

I’ve been using DigitalOcean for quite a while now, and I’ve got a Droplet that’s been running continuously for over 7 years without any unexpected downtime, so this isn’t something I’ve personally encountered and it sounds like there might be something specific to your setup or configuration that’s causing these random outages.

A few things you might want to check:

  1. Double-check your Droplet’s CPU and memory usage. Even though you’ve monitored it, sometimes spikes happen quickly and might not be caught if you’re not monitoring in real-time.

  2. Take a closer look at the system logs right before the downtime occurs. You might find some clues there, like a service crashing or a resource running out. If you are using Nginx or Apache, you can use this script here to summarize your access logs: https://devdojo.com/bobbyiliev/bash-script-to-summarize-your-nginx-and-apache-access-logs

  3. Do you by any chance have any cron jobs or scheduled tasks that might be causing the Droplet to become unresponsive?

Since restarting the Droplet helps temporarily, it could indicate something is building up over time, like memory leaks or resource exhaustion. You could consider adding a swap file to have some extra buffer:

https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04

If you’ve not done this yet, install the DigitalOcean monitoring agent as well:

https://docs.digitalocean.com/products/monitoring/how-to/install-agent/

Feel free to share the output of your logs and the resource utilization.

- Bobby

alexdo
Site Moderator
Site Moderator badge
August 23, 2024

Heya, @harrywillson

You’ve mentioned that you’ve monitored the resource usage, but were you able to notice an outage at a time you’re connected to your droplet and check if the droplet is inaccessible?

I will usually recommend to check the server logs and check for any error messages related to resource usage and exact errors that can give you more information about the problem itself.

Regards

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
Animation showing a Droplet being created in the DigitalOcean Cloud console