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
workersMin = 0 (even though help hints say default is 1)
At this point, since they're both the same value, then the o.config.workersMax != o.config.workersMin condition will evaluate to false and dynamic scaling is disabled.
Even if we assume the suggested defaults of workersMax = 0, workersMin = 1, we would enter this section but maxWorkersAvailable will always be negative, causing extraWorkersReq to be negative and o.needWorker will never be increased.
Hi!
I'd like to bring your attention to the following code section.
If not specified, the default values for the worker parameters are as follows:
At this point, since they're both the same value, then the
o.config.workersMax != o.config.workersMin
condition will evaluate to false and dynamic scaling is disabled.Even if we assume the suggested defaults of
workersMax = 0
,workersMin = 1
, we would enter this section butmaxWorkersAvailable
will always be negative, causingextraWorkersReq
to be negative ando.needWorker
will never be increased.Instead, I would suggest this fix:
Let me know if you're fine with this and I'll submit a PR.
The text was updated successfully, but these errors were encountered: