Skip Navigation

Lemmy.world updated to 0.18.1-rc

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.

572 comments
  • Good work upgrading! I can't imagine it being too easy with a big instance.

    I had issues with comments not federating to my own instance before this update (showing 0 for hours). Opening up this up now showed most of them right away if not all. Hopefully that means 0.18.1 fixed a fair few issues people had with federation.

  • For everyone experiences issues during the login,

    This is caused by an issue in the latest RC of the Lemmy UI. It's already been reported, and ruud will probably decide how to deal with it tomorrow.

    The current workaround
    Make sure you are on the main page (https://lemmy.world) before hitting the login button.
    If you encounter other issues, please make sure to clear the browser cache. The latest upgrade also made changes to the API, which can cause issues with the cached version of the website.

    https://github.com/LemmyNet/lemmy-ui/issues/1740

  • I had a strange bug today where I wasn't able to upvote comments. So I cleared out my website data like the website suggested and I started having problems logging in. It would log in but then when I refreshed it wasn't logged in anymore. It stopped after a while but then when I clicked on an old tab when I refreshed I was logged out again. So, the log in issue must be something to do with how iOS Safari handles web cache on tabs.

  • Very nice. I see there are lots of little UI changes too. Thank you for your time and effort.

  • I'm not sure if this has been said but, when I open lemmy on browser, my account would sometimes be someone elses. I don't know if it's a bug and I saw it happen three times to me so far, and it even happened again a few minutes ago. It's like I i logged into someone elses account, I saw three other usernames so far. A few minutes ago it said my account was Professor -?-?-?- with that account's profile picture shown too. It only does that for half a second before it returns back to my account.

    I'm just making sure this is said because I don't want to one day accidentally log into someone else's account by accident.

  • love the transparency and how fast this is!! looks like we will do it lemmy! and reddit can suck a dick

  • Thanks a bunch for your hard work, Ruud and other admin folks! It's so damn GOOD to be able to use Jerboa again!

    Also, it's really nice to see the breakdown of your work, helps a lot in understanding what you go through and maybe even of there's anything we can help with. Keep it up!

  • 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

  • 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.

  • Thanks. Made a one-time 50€ contribution and started monthly payments as well. Hopefully this can help fund a server upgrade.

  • 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?

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

    Thank you! :3

  • Everything was loading so slow 2 hours ago. Hope it will get better from there.

    Edit: When I press "Post", it doesn't respond very long time, but reloading page helps.

572 comments