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?

@Rizilia@lemmy.zip
link
fedilink
English
1
edit-2
2M

I let my production systems (1x NAS/1x Proxmox Host) on 24/7 and shut down test systems or my onside backup. I do it mainly to save some power and also noise, because all servers are in my office room. I would prefere some low power/noise machines that can keep running 24/7 and if you really need some horse power because you would want to test something or play around, you can power it on and shut down whenever you want.

But I dont use any UPS, because the power grid is very stable where I live but I have snapshots every hour or so. I can live with an hour of data loss if shit hits the fan.

Rikudou_Sage
link
fedilink
English
22M

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).

ɐɥO
link
fedilink
English
12M

Nope

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

Encrypt-Keeper
link
fedilink
English
122M

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
link
fedilink
English
-42M

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

Encrypt-Keeper
link
fedilink
English
72M

Uh, in your “enterprise” maybe lol.

BritishJ
link
fedilink
English
-32M

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.

I see where your head is at here, but it sounds like you’re focusing on containerized items. A lot of people are going to look at you real weird if you think of scaling down a container as equivalent to shutting down a server. We can all see where your mind is going and there is logic there, but it’s more akin to closing chrome when you’re not using it than it is to shutting down the computer running chrome.

Even physical hardware, if your paying power you can have clusters of physical hardware power up and down based on usage. There is no point in having 10 physical hosts running when the workload for n+1 means 3 servers overnight. With bnc, ipmi, ilo, idrac it will power them up as needed.

BritishJ
link
fedilink
English
-12M

Finally someone who gets it.

Yup. I run those kind of clusters. But unless your in home datacenter territory, that sort of config isn’t likely to happen in self hosted.

Encrypt-Keeper
link
fedilink
English
72M

Ok scaling is not what we’re talking about here lol.

BritishJ
link
fedilink
English
-6
edit-2
2M

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.

Butt Pirate
link
fedilink
English
72M

Most of us don’t have clusters so shutting down the server means taking the server and all associated services completely offline.

Do you take your product completely offline for 8 hours every single day?

Encrypt-Keeper
link
fedilink
English
82M

No Donny it’s not. You’re out of your element here.

BritishJ
link
fedilink
English
-32M

But it is. They’re stopped and deallocated. They start up when demanded. And shutdown when below a threshold or a certain schedule.

FippleStone
link
fedilink
English
22M

They’re fuckin’ nihilists dude, they don’t believe in anything

@WordBox@lemmy.world
link
fedilink
English
72M

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

BritishJ
link
fedilink
English
-42M

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

Sunny' 🌻
creator
link
fedilink
English
32M

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

Xylight (Photon Dev)
link
fedilink
English
12M

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

Sunny' 🌻
creator
link
fedilink
English
12M

Thank you 🙌

@yo_scottie_oh@lemmy.ml
link
fedilink
English
92M

I’m guessing it’s because you’d selected Link as the post type instead of Text.

Sunny' 🌻
creator
link
fedilink
English
32M

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
42M

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.

Sunny' 🌻
creator
link
fedilink
English
22M

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

femtech
link
fedilink
English
112M

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.

24/7, no UPS since I am cheap and lazy.

My media center PC has a sleep schedule, though, and goes into suspend in early morning hours. I am sute the power it saves is next to nothing.

I used to do this with my server, too, but scrapped that once I started needing it on randomly at night.

🐍🩶🐢
link
fedilink
English
22M

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.

@spyd4r@lemmy.world
link
fedilink
English
432M

There’s a poweroff?!

@Deepus@lemm.ee
link
fedilink
English
52M

Im pretty sure OP is just yanking our chain.

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.

@Ptsf@lemmy.world
link
fedilink
English
32M

Relevant xkcd: https://xkcd.com/705/

shnizmuffin
link
fedilink
English
202M

An UPS is a must for any computer, even if all it’s doing is absorbing the shock of a brownout and triggering a graceful shutdown.

I run persistent services that require 24/7 uptime.

Meh. I lose power every 3 or 4 years on average. A UPS just doesn’t make sense for me. (When I lived in Virginia it was once a month on average, so for sure it made sense…)

Like he was saying, it’s more than just power loss. It’s a way of “sanitizing” the power as it comes in. This is “usually” not a problem. But dirty power is arguably worse than power outages. If the voltages fluctuate or get low for whatever reason that puts a big strain on your power supplies.

This could happen because you run a vacuum on the same circuit and your house is old, guy down the street electrocutes himself or the power coming in from the electric company is ‘dirty’ because they have an issue with transformers or up stream somewhere. It can be imperceptible to you, but your tech notices.

hendrik
link
fedilink
English
3
edit-2
2M

Same here. I would say total power outages are a bit more rare than every three years. But we had some failure last year and two years before that a neighbor dug through some cables and most of the street went dark. Sometimes I contribute and plug in some (old) electrical device that isn’t okay anymore. This year I got some water into the extension cord while cleaning outside… And since we have ground fault protection for the house, I had to reboot everything. The server and the 4 harddisks in it are perfectly fine. And have been for like a decade. I don’t think I need to pay for an UPS and the additional power it needs.

Shimitar
link
fedilink
English
202M

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
22M

Saving power of course.

Reducing noise and temps is another.

Shimitar
link
fedilink
English
12M

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
12M

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
22M

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
12M

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…

@thayer@lemmy.ca
link
fedilink
English
42M

24/7 here with a NUC 8i5 in a fanless case; all SSD. I use a simple UPS (APC 600VA) to protect the server, modem, router, and main network switch, and it survives outages up to about 30 mins.

My server has 5 harddisks (real spinning ones), and everybody says they live longer when running 24/7, so that’s what I do. They are 6 or 7 years old now. S.M.A.R.T says they are clean.

Power outages occur sometimes. Once I had a problem with a file system afterwards. Later I got a small ups (for just 10 or 20min) and no trouble anymore.

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 279 users / day
  • 589 users / week
  • 1.34K users / month
  • 4.55K users / 6 months
  • 1 subscriber
  • 3.47K Posts
  • 69.3K Comments
  • Modlog