You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently studing the code and have a question about pods that have multiple containers.
I trace the code in kubelet and find that it called the allocate function for each container.
devs:=allocDevices.UnsortedList()
// TODO: refactor this part of code to just append a ContainerAllocationRequest// in a passed in AllocateRequest pointer, and issues a single Allocate call per pod.klog.V(3).Infof("Making allocation request for devices %v for device plugin %s", devs, resource)
resp, err:=eI.e.allocate(devs)
metrics.DevicePluginAllocationDuration.WithLabelValues(resource).Observe(metrics.SinceInSeconds(startRPCTime))
metrics.DeprecatedDevicePluginAllocationLatency.WithLabelValues(resource).Observe(metrics.SinceInMicroseconds(startRPCTime))
this case may corrupt the finding pod logic in device plugin allocate function . Have you meet this issue?
The text was updated successfully, but these errors were encountered:
Thanks, @YuxiJin-tobeyjin@monstercy , I think you are right. It should be handled. I will take a look at this later. If you have solutions, your contributions are welcome.
Hi @cheyang,
I am currently studing the code and have a question about pods that have multiple containers.
I trace the code in kubelet and find that it called the allocate function for each container.
this case may corrupt the finding pod logic in device plugin allocate function . Have you meet this issue?
The text was updated successfully, but these errors were encountered: