This document discusses using Apache Mesos to manage the containers that are used to invoke functions in Apache OpenWhisk. It describes adding a Mesos actor to OpenWhisk, which is an Akka application, to leverage Mesos. The Mesos actor handles leader election and framework registration with Mesos. Using Mesos allows OpenWhisk to leverage a Mesos cluster to dynamically scale the invokers that handle function invocations.