r/devops • u/foss-octopus • Oct 17 '26
Discussion Jr Software Engineer Here! Was wondering, how do you manage, monitor, and stress-test your production VPS setups (like DigitalOcean)?
Hey everyone,
I'm trying to level up my devops knowledge. Most of my projects are currently hosted on Railway, but as costs are scaling up, I am planning to migrate them over to DigitalOcean Droplets to reduce our monthly spend.
My past experience with managing bare VPS instances is pretty basic. I know how to spin up a Droplet, use Nginx to configure domains and SSL certificates, and use PM2 for process management to keep web clients and Node APIs alive. (but to be honest I'm a bit rusty now, been almost 2 years now since I last setup one during my college days)
Railway handles so much for me, moving to host my own VPS feels like a big jump in terms of responsibility. I want to make sure I am doing this right and not accidentally make prod unavailable due to a dns config lol
So If you are running production workloads on VPS instances, I would love to get your insight on a few things:
- Daily Checks: Do you actually log in/ssh in and check things manually every day, or do you rely entirely on automated alerts? Beyond basic Nginx and PM2 logs, what are your go-to health metrics?, Opensource options?
- Uptime and Alerting: What does a reliable, budget-friendly uptime monitoring stack look like when you are managing your own VPS?
- Triage and Debugging: When an API slows down or a Droplet spikes to 100% CPU, what is your immediate workflow to figure out what is wrong?
- Stress Testing: When you want to find your system's limits, do you stress-test a lower-spec instance to see where it breaks, or do you spin up an exact clone of your production spec?
- Lastly, spec selection. How do you know if you need more than 2gb of ram for instance? K6 testing on local before selecting? idk tbh.
Any advice, tool recommendations, or things you wish you knew when managing your first production servers would be incredibly helpful. Thanks!
10
u/SuperQue Oct 17 '26
Before you think about tools, read these:
3
u/Sad_Rice6600 Oct 17 '26
disk alert is fine until journald eats /var because nobody set a size cap
2
u/AdmirableChest3236 Oct 17 '26
Coming from software engineering gives you a useful head start, but Dev Ops is not just development with a few deployment tools added. Spend time understanding Linux, networking, C I/CD, cloud permissions, and how to troubleshoot failures in a running system. Even when exploring infrastructure options and resources around trusted tech, focus on understanding why systems behave the way they do rather than just learning which tools to use
2
u/Triple-B-564 Oct 20 '26
I did a similar move a while back, so here’s my take on your questions.
TL;DR / Summary:
it’s a good step, but since you’re not paying for a hosting service anymore (just the VPS), a lot more lands on you. If your growth justifies it, it’s definitely worth it, just go in prepared. AI agents make the setup a lot easier these days.
My tip: move staging to the VPS first, get comfortable there, and only then move production.
1. Daily checks
No daily SSH. I had Grafana + Prometheus + Loki (on the same machines - we had to use this way) and checked the dashboard from time to time to see that everything was green. What made it work was alerting: anything at warning or error level went straight to my phone via Telegram. Rely on alerts, and treat the dashboard as a quick sanity check.
Metrics I’d watch beyond Nginx/PM2 logs:
All open source: Prometheus + node_exporter, Grafana, Loki for logs, and Alertmanager to Telegram.
2. Uptime and alerting
The key point is that the uptime check has to run outside your droplet. If the box dies, it can’t tell you it’s dead. Budget options: Uptime Kuma (self-hosted, on a different cheap VPS or provider), or the free tiers of UptimeRobot / Better Stack. Point it at a /health endpoint that also checks the DB connection, not just “nginx returns 200”. Send alerts to Telegram or wherever you’ll actually see them. Also had a regular hourly alert just to make sure the system is live (we had a budget cap for one server)
3. Triage when things slow down or CPU hits 100%
My usual order:
5. Spec selection
Local k6 won’t tell you much, since your laptop isn’t a 2GB droplet. Start small, run k6 against the staging droplet, and watch memory. If you sit above ~70% RAM at normal load, or you see swap being used, go up a size. DigitalOcean resizes are easy, so you don’t have to guess right the first time.
Two things you didn’t ask about but should plan for:
2
u/Humble_Reputation743 Oct 20 '26
Monitor the golden signals: latency, errors, traffic, saturation
It can be applied to both applications and infrastructure.
2
u/PawelHuryn 18d ago
Hey, disclosure up top: I build Staygreen, an uptime monitor, so weigh the last part accordingly.
On #2, the advice above about checking from outside the droplet and hitting an endpoint that touches the db is the core. Three things I'd add, because they're what bite people on a first VPS:
Also watch certificate and domain expiry. A certbot renewal can stop without anyone noticing until the cert runs out.
Uptime Kuma covers most of this if you run it somewhere other than the droplet, though it checks from one place.
If you'd rather not run a second box, Staygreen's free plan does it: 50 monitors, checks every 3 minutes from two locations, 5 heartbeats, and email, Telegram, Slack or Discord alerts. staygreen.io
1
u/singh_abinashi Oct 17 '26
Start simple on the monitoring side. Uptime Kuma or plain health checks plus alerts on CPU, memory, disk, and 5xx rate will cover most of what actually pages you at this scale. For triage when an API slows down, check in this order: is it one endpoint or all of them, is the database the bottleneck (slow queries, connection count), then CPU and memory on the box. That order saves time because app servers usually spike CPU because something downstream is slow, not the other way around. For load testing, test a clone with the same spec as production, not a smaller box. A smaller instance tells you where that instance breaks, which is a different number. k6 against the clone with production-like data volume gets you an honest ceiling, and the RAM question answers itself: watch memory under that load and keep headroom for spikes.
1
u/Anakin19901 Oct 17 '26
the SRE book links above are the right place to start, here's the small-VPS version from running a bunch of droplet-sized boxes.
i don't ssh in daily, but the check has to live somewhere other than the droplet. a cron on the same box can't tell you the box is dead, so run it from another machine or any free external uptime checker, and point it at an endpoint that actually touches your db instead of just returning 200.
on 1-2gb boxes the outages i actually had were boring: disk filling up with logs, and the kernel OOM-killing node. alert on disk above ~80% and on available memory, and install pm2-logrotate on day one. also watch pm2's restart count, it will happily restart a crashing app all night and the site looks "up" between crashes.
when something spikes, i go htop first, then disk usage, then the kernel log for oom kills:
journalctl -k | grep -i oomfor load testing, snapshot prod, spin up a clone of the same size and run k6 against it from a different machine. local numbers tell you nothing about a shared-cpu droplet. sizing works the same way: run real traffic for a week and look at available memory and swap, if it swaps regularly you need more ram.
on your dns worry: drop the TTL on those records to 300 a day or two before the move, then the cutover and any rollback take minutes instead of hours. and sort out backups before you cut over, a nightly db dump to somewhere off the droplet, restored once to prove it works. that's the part people forget when leaving a managed platform.
1
u/Kookoombar Oct 18 '26
Since your worry is breaking prod with a DNS change: lower the TTL on your records a day or two before you move, bring the Droplet up fully while Railway keeps serving, test it by hitting the Droplet's IP with a Host header, then flip DNS. Leave Railway running for a few days so rollback is just changing the record back. Two other things people skip: test restoring a backup once, not just taking it, and alert on what users feel (error rate and latency) before you alert on causes like CPU.
1
u/Cubepath Oct 19 '26
I'd keep it simple at first. Uptime Kuma for uptime alerts and Netdata for CPU, RAM and disk monitoring. No need to SSH in every day, but definitely keep an eye on updates and backups.
Also, if saving money is your main goal, it's worth comparing a few VPS providers before settling on DigitalOcean. Prices can vary quite a bit!
0
u/foss-octopus Oct 17 '26
Just for those people who say "just ai this bro". I want to, and I can. But I want or probably even need answers from you guys with actual experience, not answers from LLM trained on historical responses. The results might be outdated or not applicable. LLMs might even recommend me weird unecessary workarounds. So I hope to learn from you guys.
0
u/HeiiHallo Oct 17 '26
I use haloy for this. Minimal and works great
2
u/[deleted] Oct 17 '26
[removed] — view removed comment
1
u/[deleted] Oct 19 '26
[removed] — view removed comment