widdix / mastodon-on-aws

Host your own Mastodon instance on AWS
https://cloudonaut.io/mastodon-on-aws/
134 stars 27 forks source link

Scheduled reboot for Sidekiq? #31

Open scrappydog opened 1 year ago

scrappydog commented 1 year ago

image

Approximately every two days my Sidekig service crashes and restarts (as shown by this memory utilization graph). It recovers quickly, but it seems like having a scheduled daily restart would be a little more graceful.... thoughts?

michaelwittig commented 1 year ago

What's the memory config of the sidekiq container in your task definition?

compuguy commented 1 year ago

I suspect your issue here @scrappydog is your single Sidekiq is getting into a OOM (out of memory) condition. I had the same issue when I deployed istoleyour.pw. If you're using the stock config with Sidekiq having only 1 gig of memory, you may need to either increase the instance size, or split out the various Sidekiq queues to separate containers. More info on how this works, and how you can split things out can be found in these articles:

You can also take a look at my fork & branch for istoleyour.pw: https://github.com/compuguy/mastodon-on-aws/blob/istoleyourpw-deploy/mastodon.yaml