bdoyle0182 commented on code in PR #5284:
URL: https://github.com/apache/openwhisk/pull/5284#discussion_r921637864
##########
core/scheduler/src/main/scala/org/apache/openwhisk/core/scheduler/queue/SchedulingDecisionMaker.scala:
##########
@@ -70,7 +70,17 @@ class SchedulingDecisionMaker(
case _ => Future.successful(DecisionResults(Pausing, 0))
}
} else {
- val capacity = limit - existingContainerCountInNs -
inProgressContainerCountInNs
+ val capacity = if (schedulingConfig.allowOverProvisionBeforeThrottle &&
totalContainers == 0) {
Review Comment:
if feature is turned on and the action has no containers yet, give it a
capacity of 1 on first decision iteration if total containers in use for the
namespace are less than the limit * over provision ratio value, thereafter do
the normal capacity calculation.
If this is still over the limit, give 0 capacity and follow the normal code
path to turn on namespace throttling
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]