SRE & IncidentsJA · Japanese

Operating a Power-Efficient SRE Homelab on a Three-Node Mini PC Cluster

Practical insights from an SRE on architecting a three-node homelab using a Raspberry Pi and Mini PCs, sustaining high availability with minimal power draw while mitigating split-brain risks.

Curated by Vibe DevOps · approx. 597 words

Key Takeaways

  • A three-node topology segregating responsibilities: a Raspberry Pi 4B gateway, an Intel N100 Mini PC data node, and a Core i5 compute node.
  • Idle cluster power consumption ranges between 25W and 30W with 28GB of aggregate RAM across the cluster.
  • The networking layer leverages Keepalived VRRP for Virtual IP (VIP) failover within 1 to 3 seconds during outages.
  • The operational strategy prioritizes semi-automated failover runbooks to prevent cluster partition and split-brain states under non-redundant residential power conditions.

From Original Source

Three-Node Cluster Topology and Power Optimization

Instead of investing in expensive enterprise servers, the author built a home staging cluster using power-efficient consumer hardware: a Raspberry Pi 4B as the network routing gateway, an Intel N100 Mini PC as the Core Node hosting PostgreSQL 18 and MinIO S3, and an Intel Core i5 machine as the Compute Node for resource-intensive workloads like Playwright and Dify LLM.

This architecture isolates compute-heavy tasks from the persistence tier. Idle power consumption is kept to roughly 25–30W while providing 28GB of aggregate RAM—sufficient capacity for automated staging pipelines without inflating residential utility costs.

From Original Source

Reliability Trade-Offs: Full Automation vs. Semi-Automated Recovery

In a residential environment lacking redundant dual-UPS infrastructure, deploying fully automated quorum witness mechanisms introduces substantial operational risk. Transient local network instability can lead to false-positive failovers, causing split-brain scenarios and data corruption.

The architecture adopts a safer compromise: rapid Virtual IP failover via Keepalived VRRP within 1 to 3 seconds, PostgreSQL 18 physical streaming replication, and pre-staged disaster recovery runbooks to promote standby nodes within a 10-to-30-minute RTO.

Vibe DevOps Editorial Commentary

Vibe DevOps Perspective: Practical Lessons for Homelabs and Edge Infrastructure

Vibe DevOps Take: This setup offers practical takeaways for engineers building local staging environments or edge computing solutions. Rather than over-engineering automated failover that exceeds the physical reliability of the local power grid, keeping the architecture simple, decoupling compute from state, and relying on controlled recovery runbooks is significantly safer.

Furthermore, when running containerized browser automation, allocating adequate shared memory (/dev/shm) and ensuring end-to-end idempotency for background jobs are crucial implementation details for cluster resilience.

Commands & Configuration Snippets

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

shm_size: '2gb'

Configure shared memory for the Docker container to prevent SIGBUS errors when running a browser

disaster-recovery-failover.sh

Semi-automated recovery script to promote a standby node to primary node

⚠️ Operational Caveats & Limitations

  • The topology relies on available consumer-grade hardware and intentionally avoids automated quorum mechanisms due to residential power constraints.
  • This tiered configuration is best suited for personal labs or small engineering teams validating workloads prior to cloud deployment.

Read original post at Qiita — タグ DevOps ↗


Explore Next on Vibe DevOps

More Global DevOps News