I believe this is a slightly controversial topic, at least from what I have gathered so far. Some say its best to leave the server on to spare the life time of the spinning rust. Other seem to prefer to save power and boot the server off each night. So wanted to chip in and hear what folks here do and why do what you do.

Bonus question; Do you guys have a UPS? Is it a must have for a homelab, or does it just depend on the usecase?

  • @Moonrise2473@feddit.it
    link
    fedilink
    English
    710 months ago

    when i had only the file server, i turned on via WOL each time i actually needed it and a script shut it down if there was no activity after 11pm

    now i host so much stuff and i’m so dependant on it that it requires redundant power and failover WAN via 5g…

  • @VitabytesDev@feddit.nl
    link
    fedilink
    English
    310 months ago

    I don’t have any job that needs to run 24/7, so I poweroff my server at night (12 am) and start it in the morning using WOL.

  • Shimitar
    link
    fedilink
    English
    2010 months ago

    24/7 of course, that’s the point of it. But I have solar, so I don’t mind consuming power, and its not thatuxh a yway, so, anyway…

    What’s the point in turning it off at all???

    • @lud@lemm.ee
      link
      fedilink
      English
      210 months ago

      Saving power of course.

      Reducing noise and temps is another.

      • Shimitar
        link
        fedilink
        English
        110 months ago

        I have solar, so the power consumption is negligible, I am already mostly selling yo the network and not “consuming” most of the days. Also, the server stuff sits in a sound proofed and ventilated compartment in the most remote area of the house.

        20 years of planning ahahahahah

        Past the times when it was sitting in my bedroom.

        • @lud@lemm.ee
          link
          fedilink
          English
          110 months ago

          I just said what the general benefits are since you apparently were unable to get that yourself.

          I’m not saying you specifically should do or not do something, I don’t care.

    • @Kusimulkku@lemm.ee
      link
      fedilink
      English
      210 months ago

      Could be that it is hosting services that are only actively used instead of passively doing stuff, so no real need to have the server on when you’re sleeping. For me turning it off and on again would be more of a hassle than it’s worth it.

      • Shimitar
        link
        fedilink
        English
        110 months ago

        Agreed. First of all that would make running backups more complex, and would require either manual interaction, or very careful automation of some kind.

        And any public facing service (like blog and some stuff) would still need to be accessible somehow, so…

  • @thirdBreakfast@lemmy.world
    link
    fedilink
    English
    810 months ago

    My NAS and production server run 24/7, I’ve got a dev server that I turn off if I’m not expecting to use it for a week or so. Usually when I do that, I immediately need it for something and I’m away from home. I have chosen equipment to try and minimize energy use to allow for constant running.

    My view on UPS is it’s a crucial part of getting your availability percentage up. As my home lab turned into crucial services I used to replace commercial cloud options, that became more important to me. Whether it is to you will depend on what you’re running and why.

    I’ve heard that one of the most likely times for hard drives to fail is on power up, and it also makes sense to me that the heating/cooling cycles would be bad for the magnetic coating, so my NAS is configured to keep them spinning, and it hasn’t been turned off since I last did a drive change.

  • @skilltheamps@feddit.org
    link
    fedilink
    English
    310 months ago

    Additionally, night time is the time of creating backups. A second server pushes its backup also at night too. Potentially long running tasks like database migration I do at night. Lastly, when my server starts up it needs almost an hour until it truly reaches idle (potentially because it has to keep millions of files in sync with syncthing, I have to investigate). So my servers are more busy at night than at day

  • @GravitySpoiled@lemmy.ml
    link
    fedilink
    English
    2
    edit-2
    10 months ago

    Mine turns off at 2 or if noone has been watching for 10 minutes after 2am and turns on at 5:45. Nobody ever uses it during that time. It’s pointless to keep it running. Additional bonus is that it auto updates all containers each morning. Yes, I sometimes wake up at 4 or 5 and it would be cool if it were running but it shows that you do not NEED it.

  • 🐍🩶🐢
    link
    fedilink
    English
    210 months ago

    Everything runs 24/7, but now I am thinking about theoretical power saving modes. Besides any built in power saving whatever (a little clueless), you could always throttle the CPU more. Not sure if it would be worth it without testing with a power meter.

  • Rikudou_Sage
    link
    fedilink
    English
    210 months ago

    I personally only turn it off when someone’s visiting over night and the noise disturbs them, otherwise I just leave it on nonstop. Mainly because it would annoy me to try to open whatever and find out I have to turn on the server first. I don’t have a UPS and never even thought about getting one (for the server, I’m thinking of getting one for my 3D printer).

  • Magiilaro
    link
    fedilink
    English
    2710 months ago

    My home server does all my network related stuff (including DNS and DHCP) turning it off would be a very bad idea due to this.

    I don’t have a UPS, but it is relatively high on my list.

    • @MystikIncarnate@lemmy.ca
      link
      fedilink
      English
      210 months ago

      I moved my DNS to a pair of raspberry Pi 3’s running bind, with a DNS stub zone for my homelab domain that points to my homelab DNS servers.

      That way the internet keeps working whether my homelab works or not. Keeps the wife aggro down.

    • @PeroBasta@lemmy.world
      link
      fedilink
      English
      610 months ago

      It all depends if you actually nerd those services 24/7

      I dont need DHCP or DNS from 1am to 6am for example

      • @computergeek125@lemmy.world
        link
        fedilink
        English
        410 months ago

        You may not but your phone will fail over to data if it loses its lease and stuff like background update tasks will cease to function (like Windows Update or dnf cron)

      • Handles
        link
        fedilink
        English
        1210 months ago

        “Do I need them? No, but I nerd them, so they stay up!”

        A most relevant typo 👍

  • Pope-King Joe
    link
    fedilink
    English
    910 months ago

    Server is on 24/7 and it has a UPS for the momentary brown outs I have during heavy winds. It would be silly if it’s off for any reason besides maintenance, even more so since it holds multiple game worlds in addition to some web and chat stuff.

  • Sips'OP
    link
    fedilink
    English
    310 months ago

    Ignore the URL; I wasn’t allowed to post without a link?? kept getting invalid URL, without anything in the field. Not sure why…?

      • Sips'OP
        link
        fedilink
        English
        310 months ago

        Posted using Photon frontend. Doesn’t give that choice, you just include what you want in the post normally…

        • @yo_scottie_oh@lemmy.ml
          link
          fedilink
          English
          410 months ago

          Interesting. I wonder if that’s a bug in the Photon app. I use Voyager on mobile. When I tap to create a new post, there is a toggle for link, image, or text.

          • Sips'OP
            link
            fedilink
            English
            210 months ago

            Yeah I would use that when I am on my phone too, but for web i much prefer Photon :)

    • Xylight
      link
      fedilink
      English
      110 months ago

      Hey, I’m the dev. I fixed this recently

  • femtech
    link
    fedilink
    English
    1110 months ago

    24/7 I have home assistant and other things that depend on it being up. It’s not a beast but it definitely uses less than my oven. My electric use is big already from my electric car so the small savings wouldn’t be noticeable alongside my solar panels.