apache / openwhisk

Apache OpenWhisk is an open source serverless cloud platform
https://openwhisk.apache.org/
Apache License 2.0
6.56k stars 1.17k forks source link

containerFactory: useRunc ? #5412

Open QWQyyy opened 1 year ago

QWQyyy commented 1 year ago

I would like to ask what is the function of this parameter. Will the performance decrease after running runc? If it is false, what is the underlying virtualization technology used by the function?

style95 commented 1 year ago

In my experience, runc outperformed docker client. If useRunc is false, it will use just the docker command.

https://github.com/apache/openwhisk/blob/72bb2a1fc4783f29cb34d6ad1ffabf2b6676773b/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/docker/DockerContainer.scala#L187

QWQyyy commented 1 year ago

@style95 It seems that using runc directly should be able to get a greater performance improvement, but if we replace the docker runtime with crun, kata, etc., maybe we should only use docker. We would test it.