r/linuxadmin • • Oct 16 '26

Linux Shutdown Protection: Prevent Accidental Server Shutdowns - Tip 100

Post image
54 Upvotes

33 comments sorted by

View all comments

Show parent comment

4

u/Coffee_Ops Oct 16 '26

Bold of you to assume everyone has running everything in HA.

Surely the protip here is not,

install some dodgy package and reboot hooks

but rather,

set up your services to be resilient to reboots

This is not even hard, in 2026.

2

u/mschuster91 Oct 16 '26

A reboot still takes time. Even on a VM, take a minute or two for the OS to boot, and another minute until Confluence has started up again. That's enough to send half the company yapping "my Confluence is down!!!!!!!!!!!!!" in Teams despite you literally giving announcements two weeks, a week, the day before and 15 minutes before the downtime.

A lot of software really really does not like it if the backend disappears while it's running, so you'll get users being annoyed even more if it's an unplanned outage..

2

u/Coffee_Ops Oct 16 '26

A reboot still takes time. Even on a VM, take a minute or two for the OS to boot, and another minute until Confluence has started up again. That's enough to send half the company yapping "my Confluence is down

Hence why you use a reverse proxy that does health checks, and / or containerize it (aka the first party confluence image)so that the bring up is very fast.

The slowest application bring-up I've seen on a container is about 8 minutes for gitlab; confluence should be quite a bit faster than that, and with an external database your actual downtime should be near zero.

2

u/mschuster91 Oct 16 '26

The slowest application bring-up I've seen on a container is about 8 minutes for gitlab;

Yeah Gitlab Omnibus Docker image is a world of pain in itself. Absolutely nasty, although the flexibility it supports is amazing.

confluence should be quite a bit faster than that

It's still Java crap. Anything PHP is effectively instantaneous, but Java... oh dear god.