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

SQS: Scale down using number of received messages instead of empty receives #61

Merged
merged 2 commits into from
Apr 8, 2020

Conversation

alok87
Copy link
Contributor

@alok87 alok87 commented Apr 7, 2020

Fixes #37

Why?

  • To prevent rapid scale down and up.
  • Empty receives is a cloudwatch metric and is not giving very accurate result for p99 for some queues. This is causing scale down issues. This PR fixes this.

Before and after (this change was deployed at 13:12)

Screenshot 2020-04-08 at 7 08 28 PM

What this PR does

  • Replace emptyReceive scale down metric with NumberOfMessagesReceived
  • Remove emptyReceive dead code

@alok87 alok87 requested a review from justjkk April 7, 2020 13:01
Empty receives is a cloudwatch metric and is not giving very accurate
result for p99 for some queues.
@alok87 alok87 force-pushed the sqs-scaling-logic-updates branch from 1a866ed to 385b376 Compare April 8, 2020 10:50
@alok87 alok87 merged commit 250ec1c into master Apr 8, 2020
@alok87 alok87 deleted the sqs-scaling-logic-updates branch April 9, 2020 17:50
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

Successfully merging this pull request may close these issues.

[SQS] NumberOfEmptyReceives not working for scaling down in some cases
2 participants