Setting up Keepalived in the cloud - AWS

Keepalived provides frameworks for both load balancing and high availability. Unless you have a specific use case for keepalived in the cloud, there are almost always better methods for load balancing or HA. This article is just to prove it is possible to use in the cloud and a creative way I’ve utilized it. What makes keepalived in the cloud different? There are two main issues with using keepalived in the cloud. VRRP and the VIP. ...

December 9, 2025 · 7 min · 1330 words

How to setup high-availability PiHole with Keepalived and Nebula-Sync

Abstract We will setup two PiHole instances in an active/passive failover setup using Keepalived. The two PiHole instances will be synced with each other using nebula-sync, where one instance will be the primary and one will be the secondary. This setup will allow your primary PiHole instance/hardware to fail for whatever reason and automatically switch DNS duty over to the secondary instance, without reconfiguring clients. The two instances will share a “Virtual IP Address”, and PiHole will be served from this address. ...

August 14, 2025 · 9 min · 1850 words

How to setup high-availability PiHole with Keepalived and Gravity-Sync

Abstract This guide is deprecated as of PiHole Verson 6. Gravity-Sync is not compatible with PiHole versions newer than 5.x. Nebula-sync is a new alternative tool for syncing PiHole 6+. We will setup two PiHole instances in an active/passive failover setup using Keepalived. The two PiHole instances will be synced with each other using gravity-sync, where one instance will be the primary and one will be the secondary. This setup will allow your primary PiHole instance/hardware to fail for whatever reason and automatically switch DNS duty over to the secondary instance, without reconfiguring clients. ...

June 25, 2024 · 7 min · 1437 words