Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

High availability with Unraid for certain docker containers

Featured Replies

I have a number of servers in my homelab all running Unraid.

There are a number of containers in my setup that I'd like to ensure are always working, even if one of the servers fails.  Specifically these are:

  • Home Assistant
  • Cloudflared
  • Nginx proxy manager
  • Overseer
  • Plex
  • and a few more auxiliary things

 

What's the best way to accomplish this? Especially, since certain containers should not have more than one instance running (like Home Assistant) From what I've been reading, I should probably setup VMs with keepalived and dockerswarm, but is there a better way to do this in Unraid natively?  I would /really/ prefer the latter option

Also, I think I need to have a global NFS share to serve as shared storage for these containers.. how do I accomplish an HA mode for that?

 

TIA

Edited by Igor Papirov

HA is very subjective, depending on what failures you are willing to accept

Since these are stateful workloads, let's start with HA on storage (shared nfs) - if you want to protect against individual disk failures, any raid or unraid setup is enough. If you want protection against controllers or servers themselves, you will need to look at a distributed storage solution. Then again, are they in same rack or share power distribution etc is something you need to further decide. At this point, it is already a problem beyond unraid which is limited to a single server. Mostly, you will need to look at individual application and decide based on its HA architecture too

 

You also mention running one instance at a time, so sounds you are looking for automated failover rather than HA. In that case, you should also consider how much switching downtime you can tolerate. If it's not too tight, sometime it's cheaper to reinstall from a backup than to have a full HA solution

  • Author
4 hours ago, apandey said:

HA is very subjective, depending on what failures you are willing to accept

Since these are stateful workloads, let's start with HA on storage (shared nfs) - if you want to protect against individual disk failures, any raid or unraid setup is enough. If you want protection against controllers or servers themselves, you will need to look at a distributed storage solution. Then again, are they in same rack or share power distribution etc is something you need to further decide. At this point, it is already a problem beyond unraid which is limited to a single server. Mostly, you will need to look at individual application and decide based on its HA architecture too

 

You also mention running one instance at a time, so sounds you are looking for automated failover rather than HA. In that case, you should also consider how much switching downtime you can tolerate. If it's not too tight, sometime it's cheaper to reinstall from a backup than to have a full HA solution

 

Everything is installed in one rack. I am looking to protect against container failures and against server failures.  If the power goes out and my UPSs run out, then it is what it is.  However, if one of the server crashes (as they sometimes do), I'd like for critical containers to continue to function.

  • 3 weeks later...

OP have you made any progress on this at all?? I'd like a setup pretty much exactly like you want. I've got my unRAID server and a couple PIs that I'd like to cluster together somehow either via docker swarm or kubernetes or whatever and I'd like to run nextcloud, vaultwarden, freshrss, swag and a couple other containers and have it so I can still use them if my unRAID server has to go down. 

  • 1 year later...

Any progress on this topic?? I am looking to do the something similar as well. 

  • Community Expert
50 minutes ago, rbrowning85 said:

Any progress on this topic?? I am looking to do the something similar as well. 

 

image.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.