this post was submitted on 21 Dec 2022
9 points (90.9% liked)

main

1421 readers
2 users here now

Default community for midwest.social. Post questions about the instance or questions you want to ask other users here.

founded 3 years ago
MODERATORS
 

The high CPU issue that is causing midwest.social to slow way down and timeout on HTTP requests is still a mystery to me. But, it seems to do it less often and for less time now.

Here is CPU usage over 24 hours:

It's a bunch of SELECT statements in Postgres that all seem to fire at one time and take a while to complete as a batch. I've inspected the logs and haven't seen anything unusual. Just stuff federating and posts receiving upvotes.

you are viewing a single comment's thread
view the rest of the comments
[–] seahorse@midwest.social 4 points 2 years ago (1 children)

It's fixed. Was an inefficient database query.

[–] RoundSparrow@sh.itjust.works 3 points 2 years ago (1 children)

Did you hand-modify lemmy_server? is there a code change/pull request to share?

Thank you.

[–] seahorse@midwest.social 2 points 2 years ago

I manually modified the activity table. I'll find the migration that didn't run.