How do you manage multiple machines in different locations. The use case is something like this, i want self hosted different apps in different locations as redundancy. Something like i put one server in my house, one in my dad’s house, couple other in my siblings/friends house. So just in case say machine in my house down or internet down. It can fallback to the other machines. I was thinking using docker swarm on multiple raspberry pis. But opening port on router seems not secure at all. How do i connect those machine together? Should i put wireguard on server # 1 and other servers will connect to that server. But if the network/machine failed on thar server; everything else will not work.

  • Possibly linux@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    What services are you running? You don’t want to cluster with multiple locations as the latency will kill you and it will eat bandwidth like crazy.

    Maybe use something like syncthing to sync data directories across. I would use Netbird to connect them and the. Ansible for administration.

  • atzanteol@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    This will be a good lesson in how difficult it is to setup servers with high availability.

    I’d suggest getting redundancy working on your own network first before distributing it. How do you plan to handle storage? Will that be redundant as well?

  • five82@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    Tailscale. Use Headscale if you prefer self hosting over using their cloud service.