You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/11/14 17:08:34 UTC

[GitHub] [openwhisk] tysonnorris opened a new issue #4725: Reactive prewarm pool

tysonnorris opened a new issue #4725: Reactive prewarm pool
URL: https://github.com/apache/openwhisk/issues/4725
 
 
   Feature suggestion: Instead of prewarm config being statically defined at deployment, make the pool behavior reactive to load. This may be more applicable to cluster managed resources (mesos/k8s/yarn) where each invoker is not restricted to local resources for launching actions.
   
   Since reliance on prewarm containers is a key point in improving performance, we should consider ways to keep as many as possible "cold start" containers in the "prewarm" workflow.
   
   As an example, in current implementation where a fixed number of prewarms is launched at start, and the prewarm pool is replenished each time one is taken for use:
   * start with 10 prewarms
   * load of 15 actions will use 10 prewarms + 5 cold containers
   * 10 prewarms are replaced
   
   Doing this once for a burst of traffic may be an anomaly, but if it is a pattern every few minutes, we can easily begin to see that we often run at a deficit of prewarms. 
   It would be nice to allow operators to define rules around prewarms like:
   ```
   nodejs:10-256MB
     period - 1 minute
     threshold - 4
     miss-count - 2
     prewarm-increment - 3
   ```
   So that if there are 2 consecutive 1 minute periods where number of prewarm "miss" (aka cold starts) for 256MB nodejs:10 activations exceed 4, then 3 additional prewarms are added to the system. 
   
   We would also need some form of "prewarm idle release" process, similar to the existing idle timeout, to reduce the number of prewarms if they get to a state of being unused. 
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services