-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable auto-scaling for web and streaming API #1
Comments
+1 for this feature (some documentation of best practices on manual scale up process would be nice too) |
Based on several days of working with the three services, one can do an HA and auto-scaling configuration out of the box if one sets Edit: Came across this article (https://nora.codes/post/scaling-mastodon-in-the-face-of-an-exodus/), it explains how to split up the sidekiq tasks. Can have multiple instances with the |
My Sidekiq task is regularly pegging at 100% CPU utilization... definitely need some guidance on configuring scaling... |
@scrappydog Same for us. I'm not sure if that is an issue. It likely doesn't matter if the background tasks utilize all resources as long as they finish withou much delay. For us, we see spikes to 100% but only for minutes. Do you see the same pattern? |
That looks very similar to utilization on my instance. My inner system admin really "wants" to add another task... but I agree as long as jobs are completing in a reasonable time it's not an immediate issue. BUT we are running tiny instances for testing... we NEED a way to scale up... :-) |
I bumped the CPU allocation up on the Sidekiq task to CPU .5 vCPU | Memory 3 GB... This feels happier for now... but it doesn't address the real scalability question... |
I opened up #20 for sidekiq. This issue is about auto-scaling for web and streaming API. Enabling auto-scaling is not the big deal here. What we need is a good metric to trigger scale out/in. And we need a test workload to test tis with. I have no idea how we can simulate mastodon load. If anyone here is reading this running an instance with enough users to benefit rom auto-scaling please let us know. |
Just add a relay server and you will have CPU load in a minute. |
Yeah it's quite easy to autoscale the web and streaming API's. But for most people it's #20 that's more important since Sidekiq does most of the heavy lifting for Mastodon... |
Evaluate and implement auto-scaling for ECS services web and streaming API.
The text was updated successfully, but these errors were encountered: