jiangpengcheng commented on pull request #5029:
URL: https://github.com/apache/openwhisk/pull/5029#issuecomment-730092024


   @style95 @bdoyle0182 below is a brief introducation for throttling in new 
scheduler:
   
   
   new scheduler is using a different throttling logic, it doesn't consider the 
per minute and concurrent limitations :
   - for a namespace, it limit **how many containers a namespace can have**, if 
exceed, it enables throttle for the namespace
   
   - for an action, it limit **how many activations can wait in a queue**, if 
exceed, it enables throttle for the action
   
   when any throttle is enabled, scheduler will save it into ETCD, and the 
`FPCLoadBalancer` will listen to such throttling data and save/update them in a 
map
   
   And for an incoming activation, the `FPCLoadBalancer` will use below logic 
to decide whether reject or accpet it
   
   ```
        * Action Throttle true      -> 429
        *                 false     -> Pass
        *                 not exist -> Namespace Throttle true      -> 429
        *                                                 false     -> Pass
        *                                                 not exist -> Pass
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to