apache / apache/openwhisk

Capture container allocation time in Activation record

Open
#4,498 2 comments 2 reactions 1 assignee Claimed by @chetanmeh View on GitHub
Dominant language
Scala
Stars
6.8k
Forks
1.2k
Avg merge
2d 14h
Merged PRs (30d)
2

Description

Currently Invoker captures the time spent for an activation to start processing as `waitTime`. It consist of time spent in kafka + time spent allocating a container. Further for sequences the `waitTime` is recorded as zero

https://github.com/apache/incubator-openwhisk/blob/658516e6db1bf65ea4bd82e2b5e1ef10f69e0391/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/ContainerProxy.scala#L734-L740

For setups where Invoker is using a container orchestrator like k8s or Mesos the container allocation time may be a significant component for cold starts. It would be useful to capture this time in activation and also make it part of user events

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.