sqs scaling, what is queueLength exactly? #6468
-
We had a little debate at work, is
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I explain it as by how many messages do you need an extra pod. So suppose you want a pod for every 500 messages on a queue, then you set that as queueLenght (500). If there are 2000 messages on a queue, you get 4 pods (2000 / 500). If there are 1400 messages on the next check, it scales down and you are left with 3 pods). |
Beta Was this translation helpful? Give feedback.
I explain it as by how many messages do you need an extra pod. So suppose you want a pod for every 500 messages on a queue, then you set that as queueLenght (500). If there are 2000 messages on a queue, you get 4 pods (2000 / 500). If there are 1400 messages on the next check, it scales down and you are left with 3 pods).