Skip to content
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

Handling ECS host autoscaling policies #14

Open
Puneeth-n opened this issue Aug 28, 2017 · 1 comment
Open

Handling ECS host autoscaling policies #14

Puneeth-n opened this issue Aug 28, 2017 · 1 comment

Comments

@Puneeth-n
Copy link

Good work on this module.

I had a question. How do you handle autoscaling of ECS hosts?

@arminc
Copy link
Owner

arminc commented Aug 30, 2017

Thank you.

I don't have any code to show you because currently I can predict our load and don't need autoscale. But I did have a look in to it. You have different options, depending on how fancy or fast you need to be able to scale up or down.

Assuming you don't need to scale up/down very often, let's say once a month. I wouldn't make anything fancy but create a trigger on CPU or Memory usage and when that exceeds the threshold manually scale your EC2 and your containers.

If you need to scale your containers up/down constantly then AWS already can do that. As you can see here https://aws.amazon.com/blogs/compute/automatic-scaling-with-amazon-ecs/
You can provide scaling options for the EC2 instances as well as your services, based on CPU.
Instead of using the CPU metric you could use your own metric like: (average processing time above X, more than X amount of messages in queue, etc...)

Maybe @nathanpeck has some tips as well?

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants