updown.io blog, published 2024-09-13 (The page gives a creation date of September 13, 2024 and a last update on January 19, 2025.)
Architecture
updown.io is a monitoring service run by one person. The application is Ruby on Rails on a MongoDB replica set with automatic failover that spans the internet, with Redis behind Sidekiq for machine-local worker queues and Memcached for caching. Most monitoring locations run on Vultr VPSes, and a small separate server terminates HTTPS for status pages on customers' own domains.
Section: Application | Section: Hosting | Near: My one man company stack and which
Components
Component
Role
Where
Ruby on Rails application
The main application. The author chose it because he has used Ruby and Rails since 2008 and can build features quickly with it.
Near: I've using Ruby and Ruby on Rails
MongoDB
The database, run as a replica set with automatic failover, with members connected across the internet.
Near: a cluster with automatic failover (ReplicaSet)
Redis
Used mostly for Sidekiq, so that each machine has its own local worker queues.
Near: in order to have machine-local worker queues
Memcached
The cache.
Near: which I'm using for caching simply because
Monitoring locations
The places from which checks are made. Most have run on Vultr VPSes since 2016, and two are at OVH, kept there so that their IP addresses do not change.
Near: for most of updown monitoring locations | Near: the other two are updown locations
Custom-domain HTTPS proxy
A small DigitalOcean server that only issues and renews certificates for status pages on customers' domains and proxies their HTTP requests to the main web server.
Near: the automatic https proxy for custom domain
Alert delivery
Postmark sends email alerts, since 2016, and Vonage (formerly Nexmo) sends SMS alerts.
Near: For Email alerts, updown uses Postmark since | Near: started using it to send SMS alerts
Figures, as the source states them
Figure
As stated
Note
Where
People in the company
1 person
The author; the title calls it a one man company
Near: My one man company stack and which
MongoDB write rate on the Hetzner database server
1,000 writes per second
Approximate; the workload under which consumer-grade SSDs wore out
Near: MongoDB with ~1k writes/second
Monthly price of the Hetzner server whose SSDs wore out
50 euros per month
Approximate
Near: the RAID SSDs in my ~50€/m server
CPU usage the author aims not to exceed on shared-CPU VPSes
Use a self-hosted MongoDB replica set, with members across the internet, as the database
updown-2024-one-man-stack#d1at corpus version 26a1b3a7e3dd
Chosen
The service stores its data in self-hosted MongoDB, run as a replica set with automatic failover whose members talk to each other across the internet.
Near: a cluster with automatic failover (ReplicaSet)
Reasoning
The author had used MongoDB heavily in his previous job and knew it well. He values that it is schemaless, so he can iterate and migrate data with little trouble, that it was easier to set up and maintain as a cluster with automatic failover than most alternatives at the time, and that it is open source and easy to self-host.
Keep Memcached for caching beside a Redis that serves the job queues
updown-2024-one-man-stack#d2at corpus version 26a1b3a7e3dd
Chosen
Memcached does the caching, and Redis is used mostly for Sidekiq's machine-local worker queues.
Near: which I'm using for caching simply because | Near: in order to have machine-local worker queues
Rejected
Using Redis for caching as well. The author says it would be fine, but LRU caching would need a separate Redis instance, so hosting would be about as complex, and he has no reason to change now.
Near: It would be ok to use Redis for
Reasoning
Memcached was one of the most common options when the author chose it, and his experience with it had been good.
Put the custom-domain HTTPS proxy on its own small server instead of in front of the main web server
updown-2024-one-man-stack#d3at corpus version 26a1b3a7e3dd
Chosen
A small separate server issues and renews SSL certificates automatically for status pages served on customers' own domains, and proxies those HTTP requests to the main web server.
Near: the automatic https proxy for custom domain
Reasoning
The proxy needs full authority over port 443 to handle those domains, and the author did not want to place it in front of everything else, nginx and passenger, on the main server.
Move monitoring locations from DigitalOcean to Vultr, then stay to keep the IP addresses
updown-2024-one-man-stack#d4at corpus version 26a1b3a7e3dd
Chosen
Since 2016 most monitoring locations have run on Vultr VPSes, which the author found decently priced and available in many places. He says he is likely to move some locations to another provider, but puts it off as long as he can because it would change their IP addresses.
Near: I've been using Vultr VPS since 2016 | Near: this would mean changing IPs
What forced it
DigitalOcean began blocking port 25 with no way out offered at the time, which stopped updown from monitoring that port and produced false positives.
Near: DigitalOcean started blocking port 25
Reasoning
DigitalOcean also had fewer locations then, and the author wanted to add more.
Near: they didn't have the same amount of locations
What worked before
Some monitoring locations ran on DigitalOcean before Vultr.
Near: DigitalOcean for some locations before Vultr
Cost
The author reports uneven performance and heavy overselling in some Vultr locations, weak IPv6 support, and no way to change machine type without a snapshot and restore that loses the machine's addresses. A workaround support suggested did not work for IPv6, so he now pays every month for a reserved IPv6 address to keep it.
Near: The performance is very random | Near: Their IPv6 support is not great | Near: now I have to pay for a
Consumer-grade SSDs kept failing under a MongoDB workload of about 1k writes a second
updown-2024-one-man-stack#f1at corpus version 26a1b3a7e3dd
Trigger
The database ran on a Hetzner server costing about 50 euros a month whose RAID SSDs were consumer grade, under a MongoDB workload of about 1k writes per second.
Near: the RAID SSDs in my ~50€/m server
How it failed
The SSDs did not have the endurance for the workload: they kept dying or slowing to a crawl. The post gives no dates and describes this as recurring.
Near: were not enduring enough for my workload
Fix
The author contacted Hetzner, which quickly offered to add enterprise SSDs for a small extra price and asked when he wanted the work scheduled. The post does not say in so many words that the swap was made.
A crypto payment provider changed its requirements without notice and payments stopped silently
updown-2024-one-man-stack#f2at corpus version 26a1b3a7e3dd
Trigger
BitPay, which the service used to collect crypto payments, began requiring a new validation for companies and did not warn anyone.
Near: they started requiring a new validation
How it failed
The integration stopped working silently, with no explanation shown even to the person trying to pay.
Near: the integration stopped working silently
Impact
Crypto payments failed silently. The author learned of it a couple of weeks later, when a client reported the problem thinking they had done something wrong.
Near: I noticed it a couple weeks after
Fix
The author switched to another crypto payment provider; BitPay had also raised its prices at the same time.