Skip to content

Swarm mode on single node: am I doing this wrong?

VPS Hosting by wilmaethqn44 6 replies 440 views
#1

Sorry for the silly question, I am moving my small business site to homelab and read about docker swarm mode for "high availability"

My setup: one old dell tower, 16GB ram, running 3 wordpress sites for clients. I set up swarm with one manager node... is this wrong?

I followed some youtube tutorial and now have stack deploy yml files. But I only have one machine. Sorry if dumb, I just dont want to break things when I migrate from a cloud VPS at Hetzner

The sites are low traffic, maybe 100 visits/day each. Do I need swarm or is this overkill? I can post my stack file if needed

frames, tables, still valid HTML
#2

As far as I know, Swarm mode on a single node provides no benefit over docker-compose. The orchestration features of Swarm—service replication, rolling updates, node failover—require multiple nodes to function as designed. Your stack files are likely valid compose files with minor syntax differences. You can deploy the same configuration using docker-compose without the Swarm overhead. Regarding your WordPress sites: for 300 visits daily across three instances, a simple compose setup with restart policies suffices. As far as I know, you are adding complexity without gaining resilience. Privacy consideration: if these are client sites with EU visitors, ensure your homelab setup includes proper GDPR documentation. The migration from Hetzner cloud hosting to self-managed infrastructure shifts data controller responsibilities to you.

Neuland. Aber schnell.
#3

Guys, wilma, respect for trying to level up but yeah swarm on one box is like buying panel for one client, no margins there

Any leads on what panels you using for client management? Or pure docker for everything?

I ask because if you grow to 10+ sites, maybe swarm makes sense with 2-3 nodes, but now its just burning cpu cycles. Also check if your dell power bill costs more than just staying on cheap vps, their margins can be better than you think

Recieved my last power bill, no joke, homelab not always cheaper

your margin is my opportunity
#4

The swarm on one node is like the kubernetes on one node, which I also did once, kkkk

Runs words together: dontdoit

You figure it out he says

Actually I ran k3s on 1GB vps for learning, total waste, the control plane ate half ram just to exist. My one pod had no room to breathe. Refused to edit post ever

docker compose enough. The end

#5

What happens to your stack when that single Dell dies

airgapped, encrypted, faraday'd, still worried
#6

Swarm on one node is just overhead, I'd stick to compose for now...

...
#7

16GB for 3 WP sites? I ran 5 on 4GB vps fine

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft