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
3113d

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@lemmy.world
link
fedilink
English
7
edit-2
13d

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

Edit: missed your comment about static site

@EarMaster@lemmy.world
link
fedilink
English
313d

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

@cron@feddit.org
link
fedilink
English
113d

OP said that they have a static website, this eliminates the need for session sync.

@Mateleo@lemmy.dbzer0.com
creator
link
fedilink
English
18d

Thank you ! I’ll look into it

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 252 users / day
  • 647 users / week
  • 1.41K users / month
  • 3.93K users / 6 months
  • 1 subscriber
  • 3.78K Posts
  • 76.7K Comments
  • Modlog