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?

  • CarbonatedPastaSauce@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 months ago

    And ruin my uptime stats? Are you mad?!?!

    Among the many things I run are my own email servers so, yeah gotta be up all the time. And yes I have a UPS behind every electronic device in my house except the TV because if that dies I get to buy a new one.

    I’ve probably spent upwards of $2000 on UPSes and replacement batteries over the last 20 years, but if it saved even one of my servers from taking a hit it was worth it. Servers are expensive and my time is valuable to me.

  • MystikIncarnate@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 months ago

    You can do whatever you want. Don’t let anyone tell you it’s “wrong”. A big part of homelabbing is to try stuff. If it doesn’t work, that’s fine, you learned something, and that was the point.

    For me, I don’t see a UPS as essential. It’s generally a good idea, but not strictly essential. My servers are on 24/7, because I have services that do things overnight for me. I also know that some people access my lab when I’m not awake, so I just leave it on so it can be ready for anything at any time. It poses some unique challenges sometimes when running stuff that’s basically 24/7/365.

    Be safe, have fun, learn stuff.

  • Matt The Horwood@lemmy.horwood.cloud
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 months ago

    I leave my servers running 24/7, thats the point of a server. Also my home automation would be a little pointless if its off.

    I did have a UPS, but it died and I have got round to replacing it.

    Its all horses for courses, if your homelab is a playground to test things out then turning it off when not is use is fine. But some have live services that you may want at a moments notice and there for having it up all the time is better.

  • Magiilaro@feddit.org
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 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.

  • h3ndrik@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 months ago

    Entirely depends on the usecase. If it’s a NAS and you only watch a few movies in the evening: Turn it off.

    I bult a fairly power-efficient server. Consumes less than 20W and spins down the harddisks if not in use.

    I can’t turn it off because none of the lightbulbs in the house would turn on anymore, my website would go down, my Fediverse instance wouldn’t pull any posts from American people who are awake during parts of the night. My emails and chat messages wouldn’t get delivered.

    I don’t have a UPS. Also depends on the circumstances. I use ext4 as a filesystem which is kind of robust enough to handle power outages. And they’re rare where I live. A UPS would draw additional power and cost money. It’s not worth it for me at home.

  • renzev@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    For a while I had a low-power server for my personal things that stayed on all the time, and a more powerful computer that hosted a minecraft server. As the player count dwindled, I decided to make the minecraft server automatically shut down at midnight, and wake up at 8 in the morning using rtcwake. And eventually I disabled the rtcwake thing entirely, and made the smaller server run a webui that could wake up the minecraft server using wake-on-lan. So if anyone wanted to play, they would first have to remotely turn on the server through a web page. This was all password-protected ofcourse.

    Also, no, I don’t use a UPS. I’ve never seen anyone use a UPS in the country where I live, and I don’t think I’ve experienced a power outtage in like 4 years. Whether or not you need a UPS seems to be largely dependent on where you live.

  • rmuk@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

    No. Yes. Kind of.

    My home setup is three ProLiant towers in a ProxMox cluster. One box handles all-the-time stuff like OpenWRT, file server, email, backups, and - crucially - Home Assistant and is UPS protected because of how important it’s jobs are. The other two are powered up based on energy costs; Home Assistant turns them on for the cheapest six hours of the day or when energy costs are negative and they perform intensive things like sailing the high seas, preemptive video transcoding, BOINC workloads and such. The other boxes in the photo are also on all the time basically being used as disk enclosures for the file server and they are full of mismatched hard disks that spend virtually all their time asleep. At rest the whole setup pulls about 35-40W.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    5 months ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    DHCP Dynamic Host Configuration Protocol, automates assignment of IPs when connecting to a network
    DNS Domain Name Service/System
    ESXi VMWare virtual machine hypervisor
    NAS Network-Attached Storage
    NUC Next Unit of Computing brand of Intel small computers
    PiHole Network-wide ad-blocker (DNS sinkhole)
    SSD Solid State Drive mass storage
    VPS Virtual Private Server (opposed to shared hosting)

    8 acronyms in this thread; the most compressed thread commented on today has 19 acronyms.

    [Thread #862 for this sub, first seen 10th Jul 2024, 12:55] [FAQ] [Full list] [Contact] [Source code]

  • Encrypt-Keeper@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    No one should be powering off their servers. Thats really not the way to go about anything. Now there’s nothing stopping you from doing that either if you want to and it makes you happy or your life easier.

    But if you want a simple answer to a simple question, no, nobody sane is doing that lol

    • BritishJ@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 months ago

      We power off servers in the enterprise all the time and on schedules 😂. Its called saving money.

        • BritishJ@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          6 months ago

          In pretty much any enterprise using the public cloud. Everything is auto scaling, so shutdowns when not needed. Dev environments shutdown over night… If you’re not shutting down and scaling in the public cloud, you’re doing it wrong.

            • BritishJ@lemmy.world
              link
              fedilink
              English
              arrow-up
              0
              ·
              edit-2
              6 months ago

              Is it shutting down servers… Yes. it just does it based on parameters and thresholds.

              Then you get things like VDI servers and jump boxes that only need to be on between certain hours, so get shutdown outside them hours.

              • WordBox@lemmy.world
                link
                fedilink
                English
                arrow-up
                0
                ·
                6 months ago

                Right you don’t shut them down, you scale them down. My server also uses less power off peak demand.

                • BritishJ@lemmy.world
                  link
                  fedilink
                  English
                  arrow-up
                  0
                  arrow-down
                  1
                  ·
                  5 months ago

                  No we shut them down. They get deallocated the same way as shutting down a virtual server does. They’re not containers, the scaling part just turns them on and off based on workload or schedule