Hello everyone!

My friend and I have each bought an optiplex server. Our goal is to selfhost a web app (static html) with redundancy. If my server goes down, his takes over and vice versa. I’ve looked into Docker Swarm, but each server has to be totally independent (each runs its own apps, with a few shared ones).

I can’t find a solution that allows each server to take over and manage loadbalancing between the two. Ideally with traefik, because that’s what we’re currently using. To me the real issue is the DNS A record that point to only one IP :(

  • Matt The Horwood
    link
    fedilink
    English
    311 month ago

    What your after is DNS fail over or round robin, round robin would be my option as both sites could be independent

    • @just_another_person
      link
      English
      7
      edit-2
      1 month ago

      This is the correct answer. Healthcheck for each host to remove a dead endpoint from rotation.

      Edit: missed your comment about static site

      • @EarMaster
        link
        English
        31 month ago

        Unified state shouldn’t be much of a problem for static web hosting.