this post was submitted on 12 Jun 2023
341 points (98.6% liked)

Lemmy.World Announcements

29048 readers
5 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 1 year ago
MODERATORS
 

I'm trying to fix this annoying slowness when posting to larger communities. (Just try replying here...) I'll be doing some restarts of the docker stack and nginx.

Sorry for the inconvenience.

Edit: Well I've changed the nginx from running in a docker container to running on the host, but that hasn't solved the posting slowness..

top 50 comments
sorted by: hot top controversial new old
[–] ge_generation@lemmy.world 37 points 1 year ago

Thank you Ruud for hosting! Your work is much appreciated.

[–] ruud@lemmy.world 27 points 1 year ago (1 children)

2 restarts done already :-)

[–] ruud@lemmy.world 12 points 1 year ago (1 children)

Hmm. I guess the delay in posting is not related to nginx. I now have the same conf as a server that doesn't have this issue.

[–] Acetamide@lemmy.world 8 points 1 year ago

I'm only familiar with the high-level Lemmy architecture, but could it be related to database indices being rebuilt?

[–] 00Lemming@lemmy.world 22 points 1 year ago* (last edited 1 year ago)

Godspeed to you over the coming days man. Really appreciate you putting this together and the extra work it takes when tackling something like this (both being new to the platform and the tech still being in relative infancy) - not to mention the crazy scaling happening. I will definitely be pitching in to help make sure the server stays up!!

[–] OptimsticDolphin@lemmy.world 21 points 1 year ago

Thanks for putting in the time to make this run smoothly

[–] TRBoom@lemmy.world 20 points 1 year ago

Good luck today lol

[–] necrxfagivs@lemmy.world 19 points 1 year ago

Keep up the good work!
I joined this instance and also mastodon.social, first time using the Fediverse and as excited as confused lol

[–] curlygirl@lemmy.world 18 points 1 year ago

Thanks for your work on this server!

[–] azura@fedia.io 17 points 1 year ago (1 children)

Hehe, the joys of troubleshooting and profiling. Isn't it fun?

[–] ruud@lemmy.world 22 points 1 year ago (1 children)

Hmm if it takes too long the fun disappears... ;-)

[–] azura@fedia.io 14 points 1 year ago

You got this. <3
I don't have experience scaling Lemmy, but I do have experience scaling stuff in general. I'm sure you've got a few people here who'd be willing to talk things through with you if you get too frustrated.
And don't forget to breathe and step back if you have to. Your well being is more important.

[–] mikehunt@lemmy.world 17 points 1 year ago (1 children)

Thank you so much for this amazing instance!

[–] ruud@lemmy.world 12 points 1 year ago

You're welcome!

[–] simple@lemmy.world 13 points 1 year ago (2 children)
[–] ruud@lemmy.world 14 points 1 year ago

Thanks! Hadn't seen, but changed that (also to 512!) yesterday.

[–] bitrate@lemmy.world 8 points 1 year ago

That is definitely a good lead

[–] MiddleWeigh@lemmy.world 10 points 1 year ago

Thanks a bunch! I'll be donating for what it's worth. I really like it here.

[–] slimerancher@lemmy.world 10 points 1 year ago (2 children)

Something is weird.

I opened this post from main page "subscribed listing", but the title showed "I can't find any cannabis cultivation community", but the comments were same. I initially thought I have opened a wrong post, but the comments were mentioning "Good work Ruud", so I refreshed and it fixed post's title.

Have you noticed the issue?

[–] TRBoom@lemmy.world 12 points 1 year ago

I've noticed a couple oddities as well.

  • I refresh a page and a completely different page loads instead
  • An autorefresh hits the community tab, but it loads up 10 posts from a single community I'm sure it'll get sorted out eventually lol
[–] TeaHands@lemmy.world 8 points 1 year ago (1 children)

It's happened to me a few times as well (not just on this instance, think it's a bug in Lemmy itself). So far I'e not found a reproducible pattern though so it's a tricky one to bug report effectively.

[–] slimerancher@lemmy.world 5 points 1 year ago (1 children)

Yeah, I tried opening it again a few times, no luck yet. Will see if I can figure out any pattern.

[–] csos95@lemmy.world 6 points 1 year ago* (last edited 1 year ago)

I had something similar happen yesterday.

I opened a thread about pokemon, browsed it for a bit, did some stuff in other tabs, and clicked back to the pokemon tab maybe an hour later to browse some more.

The post had changed to one where a user was asking for relaxing game recommendations and it was loading in new comments that seemed to be from that post, but I could still see the comments that had already loaded from the pokemon post when I scrolled down.

When I refreshed it changed back to the pokemon post and only showed comments from that.

[–] animist@lemmy.one 8 points 1 year ago (5 children)

Since I have you here, if I start my own instance do I absolutely have to use docker? I've never had good experiences with it and would rather just install programs the old-fashioned way

[–] ruud@lemmy.world 8 points 1 year ago

Well if they can create a docker image out of it, you should be able to install it on a VM.. but I run it in Docker because it makes everything so easy manageable...

[–] lodion@aussie.zone 7 points 1 year ago

It is possible to do it without docker... but nobody recommends it :)

[–] sunaurus@lemm.ee 6 points 1 year ago* (last edited 1 year ago) (2 children)

Docker is not necessary, lemm.ee for example is running without docker!

Here is documentation for setting it up: https://join-lemmy.org/docs/en/administration/from_scratch.html

Of course you can fully adapt it to your own use case. The Lemmy backend is a single binary, you don't even need to build it on the same machine which will run it. There's no hard requirement to use nginx or anything like that either - if you understand what this guide is doing, you can replace all the unimportant parts as needed.

load more comments (2 replies)
[–] antik@lemmy.world 5 points 1 year ago (2 children)

There is a how-to on how to set up your own instance without docker using ansible: https://join-lemmy.org/docs/en/administration/install_ansible.html

[–] bdonvr@lemmy.rogers-net.com 5 points 1 year ago* (last edited 1 year ago) (1 children)

Note that this is just basically a script to deploy lemmy on a remote server. And it uses docker. It just does it for you. (Mostly)

[–] antik@lemmy.world 4 points 1 year ago

Oh, oof. Didn't look into it much further as the docker solution would have suited me best also. Thanks for the heads-up

load more comments (1 replies)
load more comments (1 replies)
[–] veroxii@lemmy.world 8 points 1 year ago (2 children)

Any progress on this. I've been thinking about it too. Couple of ideas:

Too many indexes needing to update when an insert occurs?

Are there any triggers running upon insert?

Unlikely but there isn't a disk write bottleneck? Might be worth running some benchmarks from the VM shell.

[–] Gompje@lemmy.world 4 points 1 year ago (1 children)

I was thinking that as well, it’s like the post gets β€œchecked” or something like that and that gives a timeout of 20secs. It could be an api or database but somehow my spidey sense says this could well be in code. Some extra calls to filter things maybe? Using an external server? Or even the propagation to the others? (Idk how this federation thing connects to the others, could be just that; maybe another server that is the bottleneck) I just found the 20 seconds suspicious given that is the default timeout

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

Hey, I just want to echo what everyone else is saying - thanks much for hosting + all the efforts to keep things working well. It's appreciated πŸ‘

[–] zikk_transport2@lemmy.world 6 points 1 year ago (6 children)

Hey. From my own experience - Nginx is awesome and fast when it is working, but the more you want from it, the more difficult it becomes.

Give Caddy a try. This reverse proxy has always been excellent for me. It has HTTP3 (QUIC) support, automatic ACME and overall excellent configuration in terms of simplicity and user friendliness.

Caddy is not a good choice if you need TCP/UDP proxy. It's only HTTP/HTTPS proxy.

load more comments (6 replies)
[–] postman@lemmy.world 6 points 1 year ago

Good luck with it.

Well worth any inconvenience, thank you so much for hosting!

[–] slapmefive@lemmy.world 5 points 1 year ago

Thank you, Ruud!

[–] Dick_Justice@lemmy.world 4 points 1 year ago

Thank you! Sounds like a lot of work.

[–] MyOpinion@lemmy.world 4 points 1 year ago* (last edited 1 year ago) (2 children)
[–] BackOnMyBS@lemmy.world 4 points 1 year ago

username s out

[–] simple@lemmy.world 4 points 1 year ago

Lots of instances are getting hugged to death. lemmy.ml and beehaw.org aren't even loading for me anymore.

[–] nonagonOrc@lemmy.world 4 points 1 year ago

Great work Ruud!

[–] TangoGolfXRay@lemmy.world 4 points 1 year ago

Thanks for hosting.

load more comments
view more: next β€Ί