{"canonical_url":"https://engineer.company/portfolio/a-whole-company-on-one-small-server/","content_markdown":"# Public services on a small server\n\nHosted the company’s public services on a single‑core 512 MB host — a git forge, a web server for seven domains, Tor, two alternative‑protocol servers and intrusion banning — treating 464 MB of usable memory as the design constraint; backup automation is a separate implementation.\n\nSeptember 2026\n\n**Situation.** The company's production host is a single‑core cloud instance with 512 MB of memory, of which about 464 MB is usable, and 10 GB of disk. Everything the business runs in public sits on it: the web server terminating TLS for seven domains, the git forge, a Tor onion service, a Gemini server, a Gopher server, intrusion banning and separately implemented backup automation. The usual reaction to that list is to buy a larger box.\n\n**Task.** The constraint had to be treated as an architectural input rather than a problem to spend money on, because the honest question was not whether a bigger machine would work but whether the design needed one.\n\n**Action.** Memory became the argument that settled decisions. There is no monitoring agent, no metrics pipeline and no dashboard — reporting is a pull, seven commands that read the host and render Markdown, changing nothing and running only when asked. The supervisor is systemd rather than a second process manager layered on top of it, and the container plane is Quadlet units under the same supervisor rather than a daemon with its own. Web‑panel platforms were ruled out at the design stage for the same reason. When the question came up of whether the host could carry an onion service, the answer came from a day of measured samples rather than an opinion: available memory never fell below about 310 MB of 464, swap sat at 2.6 per cent and the processor was 99.7 per cent idle.\n\n**Result.** The recorded public‑service setup ran on a machine that cost less per month than a lunch, and the design is better for the discipline rather than merely cheaper. What it cost is headroom for anything careless — mail is deliberately not on this box at all — it is written as an install scaffold awaiting a host of its own, because a mail server needs headroom this machine has already spent, and that is written down rather than discovered later.\n\n---\n\n- Role: Site Reliability Engineer\n- Categories: [Platform Architecture](https://engineer.company/categories/platform-architecture/), [Solution Architecture](https://engineer.company/categories/solution-architecture/), [Infrastructure](https://engineer.company/categories/infrastructure/), [Reliability \u0026 Backups](https://engineer.company/categories/reliability/), [Linux \u0026 Servers](https://engineer.company/categories/linux/), [Performance Tuning](https://engineer.company/categories/performance/), [System Administration](https://engineer.company/categories/system-administration/)\n- Services: [Platform \u0026 Solution Architecture](https://engineer.company/services/platform-architecture/), [Cloud Infrastructure \u0026 Migration](https://engineer.company/services/cloud-infrastructure/), [Infrastructure as Code](https://engineer.company/services/infrastructure-as-code/), [System Administration](https://engineer.company/services/system-administration/)\n\n\u003chttps://engineer.company/portfolio/a-whole-company-on-one-small-server/\u003e\n","date_modified":"2026-11-15T19:47:44Z","description":"The recorded public-service setup ran on a machine that cost less per month than a lunch, and the design is better for the discipline rather than merely…","formats":{"gemtext":"https://engineer.company/portfolio/a-whole-company-on-one-small-server/index.gmi","gopher":"https://engineer.company/portfolio/a-whole-company-on-one-small-server/gophermap","html":"https://engineer.company/portfolio/a-whole-company-on-one-small-server/","json":"https://engineer.company/portfolio/a-whole-company-on-one-small-server/index.json","markdown":"https://engineer.company/portfolio/a-whole-company-on-one-small-server/index.md","pdf":"https://engineer.company/portfolio/a-whole-company-on-one-small-server/index.pdf"},"kind":"page","language":"en","title":"Ran public services on one 512 MB host","url":"https://engineer.company/portfolio/a-whole-company-on-one-small-server/","version":1}