[Done - for now...] Expect some brief restarts today (Jun 12 CET)
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..
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!!
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.
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.
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.
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
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...
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.
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
Another thought: how many db connections do you have? Could it be starved because there are so many selects happening and it needs to wait for them to finish first?
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.
Someone said this about Caddy "it injects advertising headers into your responses". Is this true? I don't know anything about caddy but that doesn't sound too good lo (to be fair it could be misinformation).
Oh wait, that’s because I’m posting to Lemmy.world from my instance. It’s only slow when posting to Lemmy.world from a Lemmy.world user.
With that in mind, it makes me think it has something to do with some insert or update that happens. My local DB is not under load, so my save is fast. Lemmy.world’s DB is under load so the save is slow.
It might not even be the insert/update that is slow. Could be some other insert into another table that gets triggered on save that is the culprit.
Macapps and formula1. Macapps so far has only commuted to the 48 hours, although I’d like to see them stay dark longer. Unsure off the top of my head about formula1, although they do have a discord channel that I’ve jumped on, but won’t be the same. Like jumping in the F1 subreddit around race weekends.
some of the local event subs were pretty good, even if they were kind of spotty. i like experimental electronic music and noise music, and those events aren't usually advertised, so if you want to find something that you don't already know, it's an invaluable resource. those folks are pretty savvy though, so I can see them moving elsewhere.