the mitra lag or whatever it is is getting to my nerves. I think I'll give mastodon a shot honestly
Conversation
Notices
-
Embed this notice
Johnny Peligro, now on Mitra! (mischievoustomato@mitra.taihou.website)'s status on Thursday, 24-Oct-2024 07:38:11 JST Johnny Peligro, now on Mitra! -
Embed this notice
silverpill (silverpill@mitra.social)'s status on Thursday, 24-Oct-2024 07:38:01 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?
-
Embed this notice
Johnny Peligro, now on Mitra! (mischievoustomato@mitra.taihou.website)'s status on Thursday, 24-Oct-2024 07:38:05 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 :( -
Embed this notice
Tadano (tadano@mt.watamelon.win)'s status on Thursday, 24-Oct-2024 07:38:06 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
-
Embed this notice
silverpill (silverpill@mitra.social)'s status on Thursday, 24-Oct-2024 08:53:00 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
-
Embed this notice
Johnny Peligro, now on Mitra! (mischievoustomato@mitra.taihou.website)'s status on Thursday, 24-Oct-2024 08:53:02 JST Johnny Peligro, now on Mitra! @silverpill @tadano it should also be noted that it's postgres that eats cpu, not mitra itself.
-
Embed this notice
Johnny Peligro, now on Mitra! (mischievoustomato@mitra.taihou.website)'s status on Thursday, 24-Oct-2024 08:53:05 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
-
Embed this notice
silverpill (silverpill@mitra.social)'s status on Saturday, 26-Oct-2024 02:05: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.
-
Embed this notice