You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's imagine a situation when Workers: 0, Busy: 0, Queue: 0
Then, some run triggered and we get Workers: 0, Busy: 0, Queue: 1
Lambda sees that Queue > Workers, create a new Worker, and run scheduled to it. We get Workers: 1, Busy: 1, Queue: 1
After the run was completed, we had Workers: 1, Busy: 0, Queue: 0 for some time.
Lambda sees that Workers > Busy && Workers > Queue so it starts termination of Worker drains it.
So far so good.
After the Worker drain, there is another run pop-up, so we have Workers: 1, Busy: 0, Queue: 1
BUT, because Worker is drained and Workers is not > Queue, run in Queue end in long awaiting, till old one Worker will be terminated, and Lambda detect that Queue > Workers and create a new worked (step 3):
How it works now
Workers: 0, Busy: 0, Queue: 0
Workers: 0, Busy: 0, Queue: 1
Queue > Workers
, create a new Worker, and run scheduled to it. We getWorkers: 1, Busy: 1, Queue: 1
Workers: 1, Busy: 0, Queue: 0
for some time.Workers > Busy && Workers > Queue
so it starts termination of Worker drains it.So far so good.
Workers: 1, Busy: 0, Queue: 1
BUT, because Worker is drained and
Workers is not > Queue
, run in Queue end in long awaiting, till old one Worker will be terminated, and Lambda detect thatQueue > Workers
and create a new worked (step 3):Workers: 1, Busy: 0, Queue: 1
->Workers: 0, Busy: 0, Queue: 1
->Workers: 1, Busy: 1, Queue: 1
Suggestion
In Lambda, Check the status of workers during the
Queue > Workers
evaluation.Currently it is
Queue > all Workers
, when should beQueue > not drain Workers
The text was updated successfully, but these errors were encountered: