apache/openwhisk

Idea for minimizing cold start time for chains of functions.

Open

#4,075 建立於 2018年10月18日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Scala (1,177 fork)batch import
controllerenhancementhelp wanted

倉庫指標

Star
 (6,777 star)
PR 合併指標
 (平均合併 17小時 31分鐘) (30 天內合併 3 個 PR)

描述

I have a feature request.

I read that you guys were open on suggestions about minimizing the time it takes a cold start for a chain of functions.

I thought of this idea:

  • One could have a very fast "warm up" function to an action that would "warm up" sleeping containers. That function would do no actual work and have an execution time less than 100 milliseconds. (Usually the smallest billable unit of cloud functions providers such as IBM Cloud).
  • All these functions would be called at the beginning of the chain of functions, for all containers involved in the chain.
  • So when the containers are called for actual work, there will be a higher probability for them to be already up.
  • One could configure this feature on or off depending on one's willingness to pay a little bit more to enhance the response times of chains of functions.

That "warm up" function might be provided automatically by OpenWhisk to all containers. For example, a small go function.

Thank you.

貢獻者指南