openwhisk-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodric Rabbah <>
Subject managed and blackbox invoker pools for small N
Date Tue, 12 Jun 2018 12:11:27 GMT
The loadbalancer currently separates the blackbox and managed pools, but
when you deploy openwhisk with HA enabled (two invokers), some users are
surprised that the second invoker gets no load.

This is because of the blackbox invoker fraction with a minimum of 1
invoker if there are N >= 2 invokers in the system. [1]

    val managed = Math.max(1, newSize - blackboxes)
    val blackboxes = Math.max(1, (newSize.toDouble *

I opened a PR that allows the loadbalancer to utilize all the invokers for
managed runtimes, until there are a sufficient number of invokers added (10
for 10% fraction, in general, the reciprocal of the faction). [2]

   val managed = Math.max(1, Math.ceil(newSize.toDouble * (1 -
    val blackboxes = Math.max(1, Math.floor(newSize.toDouble *

So for a basic HA deployment with 2 invokers, there will be 2 for managed
runtimes, and 1 for blackbox.

Thoughts and feedback?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message