I’ve got a mini pc which is running always and another one which consumes a lot more power for e.g. jellyfin.

Can I configure it such that the jellyfin server only boots if I connect to it? E.g. I try to connect to jellyfin.y.com and then the server boots because the mini pc tries to connect to it.

I already figured out how to let it sleep automatically as soon as nobody is watching.

Edit: can I add the magic package to the reverse proxy?

  • sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    I assume this works like the reverse of socket activation? If so, that’s pretty rad!

    That said, that doesn’t really solve OP’s problem, and I’m not exactly sure what it’s solving for you. Jellyfin doesn’t really use any resources when idle, so it’s not going to save on power or anything like that.

    That said, you could probably create an interesting service like this. Basically, if the last interesting service shuts down, you shut the whole machine down, and then use WoL to start it back up when someone wants it. Tune it a bit to reduce how often it reboots (i.e. extend life of your disks) and reduce boot times (i.e. don’t mount the RAID until it’s needed), and it could be really cool!

    • Mubelotix@jlai.lu
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 day ago

      Exactly. It’s like socket activation but plugged into nginx. It might or might not fit OP’s use case, as when you have many small services like jellyfin, ram usage starts adding up. Adding automatic shutdown is a great idea

      • sugar_in_your_tea@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 day ago

        I can see that, especially if running on limited hardware. My server has way more RAM than it needs though (16GB), so saving 50MB here and there isn’t very important.