this post was submitted on 10 Jul 2024
113 points (92.5% liked)

Selfhosted

40337 readers
458 users here now

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!

founded 1 year ago
MODERATORS
 

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?

(page 2) 50 comments
sorted by: hot top controversial new old
[–] Sunny 3 points 4 months ago (5 children)

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@lemm.ee 1 points 4 months ago (1 children)

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

[–] Sunny 1 points 4 months ago

Thank you 🙌

load more comments (4 replies)
[–] skilltheamps@feddit.org 3 points 4 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

[–] Nibodhika@lemmy.world 3 points 4 months ago

When my server was a laptop it was on 24/7. When my server was a desktop I had a cron job to turn it off at 2AM. Now that it's a specialized hardware it's on 24/7.

Being constantly on is very convenient, but if your services start quickly it's not the end of the world to have to turn the machine on for them.

[–] VitabytesDev@feddit.nl 3 points 4 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.

[–] rikudou@lemmings.world 2 points 4 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).

[–] rambos@lemm.ee 2 points 4 months ago

24/7 and no UPS. Drains 33W on idle which I found good enough for me

[–] MeanEYE@lemmy.world 2 points 4 months ago

I have a small 6U rack in my hallway which is where all the server stuff sits. There are 1U UPS units, but I haven't had the need for it yet. However after replacing motherboard on this current machine I forgot to turn on option for auto start after power failure. My servers are mostly for collecting data regarding temperature, humidity and other metrics around the house, glass house and other parts. Same machine also collects surveillance data from cameras around the property which detect human and animal shapes.

So since machine rarely does long term calculations or data processing it's okay that it doesn't have UPS, since no data would be coming anyway without power.

[–] Ptsf@lemmy.world 2 points 4 months ago* (last edited 4 months ago) (1 children)
[–] 0laura@lemmy.world 2 points 4 months ago

Just watched diehard for the first time with my mother, going to send her this lmao.

[–] manmachine@lemmy.world 2 points 4 months ago

UPS depends on usecase and on the stability of your electrical supply (which varies greatly from place to place). I just leave everything running and have it configured to restart automatically on power restore (if it fails, which it rarely does).

[–] Presi300@lemmy.world 2 points 4 months ago

I power off my main server during the night cuz it's too loud, but I have a secondary one (an old mini-pc) to handle sh!t like wireguard, PiHole and DNS

[–] jadedwench@lemmy.world 2 points 4 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.

[–] GravitySpoiled@lemmy.ml 2 points 4 months ago* (last edited 4 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.

[–] headset@lemmy.world 1 points 4 months ago (2 children)

As someone who enjoys pluging USB drives on unnatended computers, I love people that never restart their machines.

Thanks guys, you are the best! Enjoy your uptimes (ง ื▿ ื)ว

[–] computergeek125@lemmy.world 1 points 4 months ago

A well managed server won't init an arbitrary drive and has a lock screen with a password so that the most a rubber ducky would be able to do is reboot it. Which is something you'd already be able to do if you had access to the front panel with the power button.

load more comments (1 replies)
[–] Rizilia@lemmy.zip 1 points 4 months ago* (last edited 4 months ago)

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.

[–] renzev@lemmy.world 1 points 4 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.

[–] Oha@lemmy.ohaa.xyz 1 points 4 months ago
[–] 30p87@feddit.de 1 points 4 months ago

My main server(s) are always on, and should be always on. They contain my Nextcloud, Postfix/Dovecot etc. which are required for me at all times. They also host my own stuff for other people, eg. Lemmy (which I don't use because of weird federation), GitLab and Matrix. Then there are services that I host for other people 24/7, like WebODM or internal stuff for my father.

Additionally I have an old workstation used as a workhorse, with a Xeon E-2680 v4, GTX 1070 and 128 GB RAM. It does not need to be always on, as it only optionally provides runners for other applications - eg. GitLab runners, ODMNodes.

[–] m@social.tthi.as 1 points 4 months ago

I don't shut down my servers at night, because:

  1. My two servers were built to consume little power - no second-hand enterprise servers here.
  2. They're always doing something. For example, off-site backups are scheduled for when I'm asleep

I don't have a UPS because:

  1. I am fortunate to live in a developed country with a very stable power grid
  2. My servers can recover gracefully on the very rare occasion there is a power loss
load more comments
view more: ‹ prev next ›