3493
submitted 1 year ago* (last edited 1 year ago) by ruud@lemmy.world to c/lemmyworld@lemmy.world

Looks like it works.

Edit still see some performance issues. Needs more troubleshooting

Update: Registrations re-opened We encountered a bug where people could not log in, see https://github.com/LemmyNet/lemmy/issues/3422#issuecomment-1616112264 . As a workaround we opened registrations.

Thanks

First of all, I would like to thank the Lemmy.world team and the 2 admins of other servers @stanford@discuss.as200950.com and @sunaurus@lemm.ee for their help! We did some thorough troubleshooting to get this working!

The upgrade

The upgrade itself isn't too hard. Create a backup, and then change the image names in the docker-compose.yml and restart.

But, like the first 2 tries, after a few minutes the site started getting slow until it stopped responding. Then the troubleshooting started.

The solutions

What I had noticed previously, is that the lemmy container could reach around 1500% CPU usage, above that the site got slow. Which is weird, because the server has 64 threads, so 6400% should be the max. So we tried what @sunaurus@lemm.ee had suggested before: we created extra lemmy containers to spread the load. (And extra lemmy-ui containers). And used nginx to load balance between them.

Et voilà. That seems to work.

Also, as suggested by him, we start the lemmy containers with the scheduler disabled, and have 1 extra lemmy running with the scheduler enabled, unused for other stuff.

There will be room for improvement, and probably new bugs, but we're very happy lemmy.world is now at 0.18.1-rc. This fixes a lot of bugs.

(page 2) 50 comments
sorted by: hot top controversial new old
[-] Squorlple@lemmy.world 12 points 1 year ago* (last edited 1 year ago)

I'm one of the many who have had trouble logging in, and this issue is surely underreported as those affected generally aren't able to report it. It also seems like I'm not able to upvote or downvote. I'll update with any more issues that I come across but I only just now became able to log-in after a long wait and several different browsers.

Edit: it seems like I can successfully upvote/downvote, but the updated vote count and my blue/red arrow only show after refreshing the page. Thanks for all the work you put into this instance btw

Edit 2: All problems seem to have resolved now

load more comments (2 replies)
[-] tmpod@lemmy.pt 11 points 1 year ago

Awesome work!

I'd like to know more about the exact container topology you have, since I may try something similar on my instance as well.
Is it something like this?

┌───┐       ┌───┐
│WEB│       │WEB│
└─┬─┘       └─┬─┘
┌─┴─┐ ┌───┐ ┌─┴─┐
│BE ├─┤IMG├─┤BE │
└─┬─┘ ├───┤ └─┬─┘
  └───┤DB ├───┘  
      └───┘      

Thank you! :3

load more comments (2 replies)
[-] AnotherKB@lemmy.world 11 points 1 year ago

Thank you Ruud and those who helped to make it happen!

[-] darkbaron202@lemmy.world 11 points 1 year ago

thank you for letting us know behind-the-scene stuffs.

me myself is a sysadmin and really like story of successfully scaling up servers. very satisfy to hear.

once again, thank you!

[-] Pilkitonion@lemmy.world 11 points 1 year ago

Fantastic work!

[-] flamekhan@lemmy.world 11 points 1 year ago

Huge thanks to the lemmy.world team over the last couple of days to scale and maintain the instance! There's a link for donating on the sidebar for lemmy.world - just a couple bucks a month can help us support this instance!

[-] charlieleunicorne@lemmy.world 10 points 1 year ago

Thank you! I can finally log into jerboa now, much appreciated for your hard work

[-] dingdong@lemmy.world 10 points 1 year ago
load more comments (2 replies)
[-] downpunxx@lemmy.world 10 points 1 year ago

Is up/down voting not working for anyone else, or is it just me?

[-] Odo@lemmy.world 7 points 1 year ago

It wasn't working a few hours ago, for me. Now it does, but each vote needs a few seconds to register.

[-] ekZepp@lemmy.world 10 points 1 year ago
[-] ren@lemmy.world 9 points 1 year ago

Real challenging this morning posting and commenting. Circle of death waiting for something to post. Then getting multiple posts if it does go through.

Still early days y’all.

[-] kuroshi@lemmy.ramble.moe 9 points 1 year ago

I may not be a user on your instance, but either way, thanks for the upgrade. I was noticing a lot of issues with federation from lemmy.world, and it seems like this upgrade more-or-less fixed them.

I'm just running a tiny, single-user instance, but I want you to know that I appreciate the work you're putting in! I run large-scale infra as my day job, so I understand how challenging this sudden influx of users (and federated servers!) is.

[-] computabloke@lemmy.world 9 points 1 year ago* (last edited 1 year ago)

Amazing work. Thankyou :)

Jerboa 0.0.37 now working fine for me, been hanging out to update.

Really appreciate the transparent communications.

[-] impulse@lemmy.world 9 points 1 year ago

Thank you for your effort in running this instance and also for being so transparent about the whole process.

[-] Sabzhero@lemmy.world 8 points 1 year ago

Great work on moving away from the websockets

[-] Merulox@lemmy.world 8 points 1 year ago

Profile pictures on user profiles are still stretched, and now the upvote arrows doesn't turn blue until you refresh the page when you press it

Other than that, this is a fantastic design update

[-] AlmightySnoo@lemmy.world 9 points 1 year ago* (last edited 1 year ago)

upvote arrows do turn blue but it's just that they're taking a few seconds before they're refreshed

load more comments (1 replies)
load more comments (2 replies)
[-] Ryumast3r@lemmy.world 8 points 1 year ago

Will confirm at least for me I'm no longer having any issues.

Thank you for all your hard work!

[-] JeanMiaouss@lemmy.world 7 points 1 year ago

Hey, thanks for your hard work, just want to let you know that login doesn't work for me in incognito mode or on any app.

[-] ArgonautVehicle@lemmy.world 7 points 1 year ago* (last edited 1 year ago)

Favicon seems to be missing now. Just a heads up! @ruud@lemmy.world

[-] BendyLemmy@lemmy.world 7 points 1 year ago

Wow - we have a new defniition of 'awesome dudes'.

Thank you.

[-] kuneho@lemmy.world 7 points 1 year ago

The instance just got so much more faster and stable, it's amazing. Keep up the good work!

[-] Hardopiates@mujico.org 7 points 1 year ago

So, basically I can't see any content from lemmyworld, I'm commenting right now from another instance. When I logged into my Lemmy world account its just empty, zero content, any solutions?

load more comments (1 replies)
[-] ckskate@lemmy.world 7 points 1 year ago

Awesome to see the transparency and some tech details of what these updates entail! I’m loving the bug fixes 0.18 brought too

[-] obinice@lemmy.world 7 points 1 year ago

Thank you from England for all the hard work AND for giving such interesting details, especially as it will encourage others to set up their own instances, and help them cross similar hurdles!!

load more comments
view more: ‹ prev next ›
this post was submitted on 01 Jul 2023
3493 points (97.3% liked)

Lemmy.World Announcements

28381 readers
2 users here now

This Community is intended for posts about the Lemmy.world server by the admins.

Follow us for server news 🐘

Outages 🔥

https://status.lemmy.world

For support with issues at Lemmy.world, go to the Lemmy.world Support community.

Support e-mail

Any support requests are best sent to info@lemmy.world e-mail.

Report contact

Donations 💗

If you would like to make a donation to support the cost of running this platform, please do so at the following donation URLs.

If you can, please use / switch to Ko-Fi, it has the lowest fees for us

Ko-Fi (Donate)

Bunq (Donate)

Open Collective backers and sponsors

Patreon

Join the team

founded 2 years ago
MODERATORS