I’m thinking about using Caddy as a load balancer, but in a cluster of multiple load balancers, so the load balancer isn’t a single point of failure. That means that each Caddy instance must have the same configuration, share TLS certificates, etc. I was curious about how you would approach this problem, as I have thought about several ways of doing it.
Example setup: 3 vps nodes in different availability zones, all running the same backend systems, and Caddy.
Setting up Caddy on all three nodes, with a DNS challenge for each domain, and using the reverse proxy directive to proxy to whatever service on all three nodes. Then doing the distribution among them via DNS.
Similar to the above, but having one Caddy instance be the active load balancer, with quick but manual failover via DNS.
What am I thinking? This is way too complex. Just have one dedicated Caddy instance as a load balancer, and hope it doesn’t go down.
I would appreciate any input on this. I could also just use the Elastic Load Balancer provided by AWS, but I like Caddy.