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

Limit the number of downscale actions #296

Open
kennethjor opened this issue Apr 26, 2016 · 6 comments
Open

Limit the number of downscale actions #296

kennethjor opened this issue Apr 26, 2016 · 6 comments

Comments

@kennethjor
Copy link

DynamoDB is limited by default to 4 downscales per 24 hours. I'm finding that Dynamic DynamoDB exhausts this limit in the first hours of each day, scaling up and down, often leaving us severely over capacity for more than half the day. Is there currently a way to limit the number of downscaling actions performed? Perhaps a cooldown period or something?

@danutDiac
Copy link

You can set the interval of the checks to once each 6 hours (4 times per day), and set your downscale rules accordingly.

@kennethjor
Copy link
Author

True, but then I would also limit the number of scaling up actions. I'd like to scale up fast, but only limit scaling down.

@danutDiac
Copy link

You can have a separate config designed for upscale that will also have a rule for downscale that won't ever (or rarely) be executed, and run that separately.

@kennethjor
Copy link
Author

That would be a workaround yes.

Perhaps we could add decrease-reads-cooldown and decrease-writes-cooldown parameters so it automatically waits for a configured number of seconds since the last scale down before executing another one.

@fedenusy
Copy link

fedenusy commented May 3, 2016

num-read-checks-before-scale-down and num-write-checks-before-scale-down may achieve the same effect.

@tmitchel2
Copy link

Although much less mature than dynamic-dynamodb, my implementation at https://github.com/channl/dynamodb-lambda-autoscale might suit you as it segments the remaining daily time period by the remaining allowance of downscaling operations.

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

4 participants