• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support General Questions Server Dual Location as Backup?

     
    • 0 Vote(s) - 0 Average

    Server Dual Location as Backup?

    Installing two instances on seperate devices for uptime?
    MayBeABanana
    Offline

    Junior Member

    Posts: 2
    Threads: 2
    Joined: 2024 Jun
    Reputation: 0
    Country:United States
    #1
    2024-06-24, 06:20 PM
    I think I know the answer, which is "no, it's not possible" but figured I'd ask.

    I currently have Jellyfin running on my PC because I use Nord Meshnet and my NAS to stream anywhere (which actually is working great!). However, I can't run my PC 24/7, especially if I go on a trip or something, so I was considering installing it on my DietPi instance. The thing is, my PC is strong, hearty, beefy, while my DietPi is puny, weak, stringbean (Raspberry Pi 4, and I think 4gb ram?). I'd like to be able to use my PC as the main server instance when I am on it, but have the DietPi kick in when I shut my PC off.

    Is this at all possible?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-06-24, 07:41 PM
    What you could do is use your DietPi to wake up your PC. You'd need to configure your PC to wake up on magic packets and then setup your DietPi to send those out. Then when you're done you can use remote desktop to shut down your PC.

    Your other option is to get a low power Intel based PC. The Intel N100 is the go-to right now.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    pcm
    Offline

    Member

    Posts: 62
    Threads: 4
    Joined: 2024 May
    Reputation: 0
    Country:Uzbekistan
    #3
    2024-06-24, 07:54 PM (This post was last modified: 2024-06-25, 12:28 AM by pcm. Edited 6 times in total.)
    It's possible, but not exactly the way you're imagining it to be. You'd technically never shut off your DietPi computer (or the Intel N100).
    And you'd have a nginx running on another Pi as a load balancer.

    Upstream to your load-balancer Pi you'd have your beefy-PC as one node and the low-power Pi as the other node. You'd do weighted load-balancing so that while your beefy-PC is on it takes almost all the load of serving up jellyfin.

    And when you shutdown your beefy-PC, nginx, acting as a load-balancing-reverse-proxy, will direct all the load to the DietPi after noticing that the beefy-PC node is offline. All this will happen by design, because that's what load-balancers are designed to do.


    NOTE: You'd want to also share some jellyfin directories between the two nodes.
    So, you'll need to put the jellyfin directories on your NAS as well, besides your media files.
    At the very least you'd want to mount a shared storage as /var/lib/jellyfin on both your machines so that your data and metadata stay consistent.
    ThomasPGH
    Offline

    Member

    Posts: 85
    Threads: 5
    Joined: 2023 Nov
    Reputation: 0
    Country:United Kingdom
    #4
    2024-06-25, 12:16 AM
    /
    (2024-06-24, 06:20 PM)MayBeABanana Wrote: I think I know the answer, which is "no, it's not possible" but figured I'd ask.
    This is theoretically possible but not in real time because you would have to copy/mirror the database between the two. So, if your intention is to watch a film during the switchover, this is not going to work. If you switch over with a downtime of a minute or so, this can easily be done.

    Watching a film certainly breaks here, in particular when transcoding is involved. Assuming the transcode folder is accessible by both machines because it's on a NAS you would only have to worry about the database. And although Sqlite supports a mirror database natively, this is currently not used by/implemented in Jellyfin.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode