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

Autoscaling killing pods #9

Open
daudn opened this issue May 8, 2019 · 0 comments
Open

Autoscaling killing pods #9

daudn opened this issue May 8, 2019 · 0 comments

Comments

@daudn
Copy link

daudn commented May 8, 2019

I managed to implement the autoscaler so that it scales based on the number of messages in the queue. However, initially, it scales appropriately and consumes the messages on the queue. Once these messages are consumed and no longer on the queue, the autoscaler scales the pods down and the messages are put back on the queue. This is more or less an endless cycle.

My process works:

  1. n jobs are put on queue
  2. n workers are spun up
  3. n jobs consumed by n workers.

However if the queue becomes n-1, pods also scale to n-1. And so my jobs never really get processed.

Any suggestions on how I can work around this? Cause currently, it seems like this may not work for me.

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

1 participant