this post was submitted on 20 Sep 2023
39 points (93.3% liked)

Fediverse

28489 readers
613 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 2 years ago
MODERATORS
 

I am honestly kinda curious how exactly you manage your servers and keep them up to date, I feel like there is a linux patch every week or so, which would usually require a reboot. Do you all deploy live patching, how you become aware of critical stuff in your otherwise busy lives, RSS?

you are viewing a single comment's thread
view the rest of the comments
[–] intensely_human@lemm.ee 16 points 1 year ago (6 children)

One way this problem can be solved is by having multiple servers with one being the production server. The other server is usually the failover backup, but when it’s time to upgrade the other server can go down for work. Then when it’s ready you use a load balancer to send all requests to the new server. That switchover happens instantaneously: one millisecond requests are being handled by the old server then the next millisecond they’re going to the new server.

It’s kind of like teleporting a new car into place as a way of avoiding a pit stop in a race. Terrible analogy but there you go.

[–] 4am@lemm.ee 7 points 1 year ago (5 children)

How do you handle the database schema changes during updates? Have two databases and disable replication during the update? How do you sync changes that occur to the backup while/after the main is upgraded?

[–] shaolin_shrimp@lemmy.ml 1 points 1 year ago

From my experience database schema changes require for all connections to drop, but they tend to happen a lot less compared to other updates.

load more comments (4 replies)
load more comments (4 replies)