the mitra lag or whatever it is is getting to my nerves. I think I'll give mastodon a shot honestly
Conversation
Notices
-
Johnny Peligro, now on Mitra! (mischievoustomato@mitra.taihou.website)'s status on Wednesday, 23-Oct-2024 22:28:28 JST Johnny Peligro, now on Mitra! -
Tadano (tadano@mt.watamelon.win)'s status on Wednesday, 23-Oct-2024 22:28:27 JST Tadano @mischievoustomato it must be considering you posted this four times. I find federation somewhat slower in Mitra, going off subjectivity, but I've never had this degree of lag. Remind me of your server setup again? I only remember you built from source on Fedora
New Janny in Town likes this. -
silverpill (silverpill@mitra.social)'s status on Thursday, 24-Oct-2024 07:38:46 JST silverpill @mischievoustomato @tadano I have ideas about fixing CPU usage. But how did you get that message posted 4 times? Did you press "Publish" repeatedly?
-
Johnny Peligro, now on Mitra! (mischievoustomato@mitra.taihou.website)'s status on Thursday, 24-Oct-2024 07:38:57 JST Johnny Peligro, now on Mitra! @tadano > built from source on fedora
> 2 cores, 2 threads
> 5.78G of ram
When the lag happens, I can see 4 postgres processes using 100% of cpu among them (so, like 50-60% each). Essentially slows mitra to a crawl :( -
silverpill (silverpill@mitra.social)'s status on Thursday, 24-Oct-2024 08:53:50 JST silverpill @mischievoustomato @tadano This is likely caused by a big number of expensive SQL queries running at the same time. Easy to fix, but let's collect more data first.
>so I re-pressed it, and now i realize it does post despite the unknown error thingy
I guess this is what Idempotency-Key header is for. I'll implement it
-
Johnny Peligro, now on Mitra! (mischievoustomato@mitra.taihou.website)'s status on Thursday, 24-Oct-2024 08:53:51 JST Johnny Peligro, now on Mitra! @silverpill @tadano it should also be noted that it's postgres that eats cpu, not mitra itself.
-
Johnny Peligro, now on Mitra! (mischievoustomato@mitra.taihou.website)'s status on Thursday, 24-Oct-2024 08:53:52 JST Johnny Peligro, now on Mitra! @silverpill @tadano i got "unknown error" in red next to the publish button, so I re-pressed it, and now i realize it does post despite the unknown error thingy
-
silverpill (silverpill@mitra.social)'s status on Saturday, 26-Oct-2024 02:06:20 JST silverpill @mischievoustomato Specially for you: Mitra v3.8.0. It should fix the issue with repeated posts.
I also made some optimizations, so overall performance should improve, but didn't touch the replies collection endpoint yet.
-