When this post is 48 hours old, lemm.ee will be going down for a database upgrade (Edit: upgrade complete!)

Hey folks

This is a heads up that I will be performing some maintenance and hardware upgrades on our database this Saturday.

We are currently experiencing several spikes throughout the day which cause our database to become overloaded - this results in degraded performance for many users. The spikes are happening due to a combination of continued growth of the database, some expensive periodic scheduled tasks which Lemmy runs, and fluctuating traffic patterns. Some of this can be optimized on the code level in the future, but it seems that the best way to deal with it right now is to add some additional resources to our database server.

I am intending to switch to slightly different hardware in this upgrade, and will be unable to make this switch without downtime, so unfortunately lemm.ee will be unavailable for the duration.

As our database has grown quite a bit, cloning it will most likely take a few hours, so I expect the downtime to last 2-3 hours. Sorry for the inconvenience, I am hopeful that it will be worth it and that this upgrade will significantly reduce some of our recent long page load times!


Edit: upgrade complete!

I have now migrated the lemm.ee database from the original DigitalOcean managed database service to a dedicated server on Hetzner.

As part of this migration, I have also moved all of our Lemmy servers from the DigitalOcean cloud to Hetzner’s Cloud. I always want the servers to be as close as possible to the database, in order to keep latencies low. At the same time, I am very interested in having the ability to dynamically spin up and down servers as needed, so a cloud-type solution is really ideal for that. Fortunately, Hetzner allows connecting cloud servers to their dedicated servers through a private network, so we are able to take advantage of a powerful dedicated server for the database, while retaining the flexibility of the cloud approach for the rest of our servers. I’m really happy with the solution now.

In terms of results, I am already seeing far better page load times and far less resource use on the new hardware, so I think the migration has been a success. I will keep monitoring things and tuning as necessary.

ominouslemon,

Thanks for the heads up and for the upgrade! Good luck

CluckN,

When this comment is 2 hours old, I’ll have completed taking a colossal dump.

0ops,

Why the downvotes? I’m laughing like an idiot over here

dditty,

1 hr old; hang in there champ! 🫡💩

CTDummy,

Nothing after 5h. Died doing what he loved RIP Cluck

awwwyissss,

Tänan teid selle hea kogukonna eest

awwwyissss,

Tänan teid selle hea kogukonna eest

GrayBackgroundMusic,

No worries about the downtime. If that’s what’s needed to get back to 0.18 levels of performance, go for it! Thanks for all the work y’all do.

TankieTanuki,
@TankieTanuki@hexbear.net avatar

Going to PostgreSQL 16?

sunaurus,

Yes!

aniki,

This is complete, correct? I believe the site feels significantly faster. Have you ever thought about doing a community with detailed write-ups of your trials and tribulations? It will probably be a good resource to others setting up their own federation. I know I’d read the shit out of it.

sunaurus,

Yep, it’s complete!

I try to write summaries of updates whenever we have them in this community (I edited the OP here as well, btw). In general I’ve also written some Lemmy documentation about scaling, but I think there are actually very few instances which have similar problems to lemm.ee, as the vast majority of instances are far smaller. So probably my experiences are not super useful for most people 😃

fossphi,

Even if not useful to most people, I think a lot people would still like reading about stuff like this. But of course, if you don’t feel like it that’s also completely fine :)

PanArab,

Thank you for all the work you do

Nelots,

So I wasn’t going crazy, the long loads times were real. Glad to see upgrades coming soon!

kratoz29,

My experience has been downgraded since the latest Lemmy update, all these caveats/workarounds are pretty much welcome in order to get this in a stable state again!

JimmyBigSausage,

Although the long page load times have been real, you still might be going crazy. Definitely a possibility on Lemmy (づ ̄ ³ ̄)づ

centof,

In other words, lemm.ee will be down starting at UTC 2024-01-06T10:00 for 2+ hours. Convert to your local time via www.utctime.net/utc-time-zone-converter if you want.

Thank you sunaurus, for the heads up and for the ongoing maintenance you do!

joyjoy,

I prefer using timeanddate.com since it has a fixed time URL.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • meta@lemm.ee
  • ngwrru68w68
  • rosin
  • modclub
  • Youngstown
  • khanakhh
  • Durango
  • slotface
  • mdbf
  • cubers
  • GTA5RPClips
  • kavyap
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • megavids
  • osvaldo12
  • tester
  • tacticalgear
  • ethstaker
  • Leos
  • thenastyranch
  • everett
  • normalnudes
  • anitta
  • provamag3
  • cisconetworking
  • JUstTest
  • lostlight
  • All magazines