SRE & IncidentsJA · Japanese

Designing an Energy-Efficient Three-Node Homelab: HA Operations Without a Quorum Witness

Practical insights on building a low-power, three-node homelab cluster for SREs, pairing Keepalived VRRP with semi-automated recovery workflows to eliminate split-brain risks.

Curated by Vibe DevOps · approx. 507 words

Key Takeaways

  • A three-node architecture consisting of a Raspberry Pi Gateway, an Intel N100 Core node, and an i5-11320H Compute node, totaling 28 GB of RAM.
  • Idle power consumption sits between 25W and 30W, keeping operational overhead minimal for continuous test environments.
  • Synthetic monitoring is implemented using Playwright over CDP, with container shm_size set to 2 GB to prevent shared memory exhaustion.
  • VIP failover is handled via Keepalived in 1–3 seconds, while scripted manual recovery targets a 10–30 minute RTO, deliberately bypassing quorum witness complexity.

From Original Source

Workload Distribution and Three-Tier Architecture

The physical cluster is partitioned into three distinct tiers to maximize power efficiency. The Gateway node handles network routing via Keepalived and WireGuard. The Core node runs PostgreSQL 18 and MinIO object storage on an Intel N100 Mini PC. The Compute node hosts Playwright worker pools and Celery tasks on an Intel i5-11320H with 16 GB of RAM. The entire system draws only 25W to 30W at idle.

From Original Source

Service Monitoring and High Availability Strategy

Automated health checks run via headless Playwright instances querying internal service endpoints. When running multiple browser processes within containers, the shm_size parameter must be set to 2 GB to prevent shared memory crashes. Regarding high availability: because home environments lack dual power feeds, using an automated quorum witness often triggers split-brain conditions during transient network hiccups. Consequently, the infrastructure uses Keepalived for 1–3 second virtual IP failover, backed by tested manual recovery scripts to achieve a 10–30 minute RTO.

Vibe DevOps Editorial Commentary

Operational Takeaways for Infrastructure Engineers

Vibe DevOps Perspective: Engineers often attempt to replicate fully automated cloud quorum arbiters in homelab environments. However, without redundant power and out-of-band management networks, automated failover mechanisms often cause worse outages due to false-positive state assessments. Standardizing on pre-tested operational runbooks, accepting a modest human-in-the-loop recovery window, and strictly decoupling the data tier yields far better real-world reliability.

Commands & Configuration Snippets

Verbatim extract for quick lookup. Verify against your infrastructure before running.

shm_size: '2gb'

Configure shared memory for the container running the Playwright browser to prevent unexpected crashes

⚠️ Operational Caveats & Limitations

  • Designed for consumer-grade home hardware; does not substitute for enterprise cloud standards featuring dual power feeds.
  • Data tier failover duration is contingent upon operator intervention and script execution.

Read original post at Zenn — Topic DevOps ↗


Explore Next on Vibe DevOps

More Global DevOps News