RAID on a Single Server: Hardware vs Software Reality
What RAID really protects on a single node, why hardware RAID is mostly a platform-level rental, and when mdadm software RAID is worth it on a VPS.
NetBay journal
Practical guides for Linux, containers, CI/CD, self-hosting, and running VPS infrastructure from Netbay Engineering.
599 articles · 24 topics
What RAID really protects on a single node, why hardware RAID is mostly a platform-level rental, and when mdadm software RAID is worth it on a VPS.
Caddy gives you manual-free HTTPS plus reverse proxying: one Caddyfile directive per app, automatic certificate renewal, and sane defaults for your VPS.
Change shared_buffers, effective_cache_size, max_connections, and work_mem first so PostgreSQL 16 uses RAM instead of guessing at factory defaults.
Put SQLite on a dedicated data directory with tight permissions, never in /tmp or a git checkout, so reboots and deploys cannot wipe it by accident.
Understand TTL, resolver caches, and glue so a DNS edit is not instant, and learn how to change records without hours of surprise downtime later.
Put nginx in front of a Node.js app bound to 127.0.0.1, terminate TLS at the proxy, and keep the Node runtime off the public internet entirely.
Install PHP packages for production with Composer --no-dev, a dumped autoloader, and a deploy user so PHPUnit and debugbars never reach the live VPS.
A wide SPF record is as bad as none. Publish only the IPs and includes you actually send from, stay under ten DNS lookups, and end with -all.
Stop appending pubkeys to authorized_keys on every VPS. Run a small SSH CA, issue short-lived user certs, and revoke access without visiting each host.
Turn off nginx proxy buffering and gzip for Server-Sent Events so tokens from a remote model API reach the browser as they generate live on Ubuntu.
Point one DNS record at your VPS, write a five-line Caddyfile, and Caddy obtains and renews TLS certificates for your Vite app automatically.
Take a docker-compose.yml from the laptop to a hardened production host with TLS, restart policies, and rate limiting behind Caddy or Nginx.