- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for cpuRequests (0.12 sec)
-
pkg/kubelet/cm/helpers_linux.go
} }, }) // map hugepage pagesize (bytes) to limits (bytes) hugePageLimits := HugePageLimits(reqs) cpuRequests := int64(0) cpuLimits := int64(0) memoryLimits := int64(0) if request, found := reqs[v1.ResourceCPU]; found { cpuRequests = request.MilliValue() } if limit, found := limits[v1.ResourceCPU]; found { cpuLimits = limit.MilliValue() }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 14 11:52:28 UTC 2023 - 9.8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_linux.go
// set linux container resources var cpuRequest *resource.Quantity if _, cpuRequestExists := container.Resources.Requests[v1.ResourceCPU]; cpuRequestExists { cpuRequest = container.Resources.Requests.Cpu() } lcr := m.calculateLinuxResources(cpuRequest, container.Resources.Limits.Cpu(), container.Resources.Limits.Memory())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 17.2K bytes - Viewed (0) -
pkg/api/v1/resource/helpers_test.go
}, { cName: "cpu overhead and req", pod: getPod("foo", podResources{cpuRequest: "2", cpuOverhead: "5", memoryOverhead: "5"}), resourceName: v1.ResourceCPU, expectedValue: 7000, }, { cName: "mem overhead and req", pod: getPod("foo", podResources{cpuRequest: "2", memoryRequest: "1024", cpuOverhead: "5", memoryOverhead: "5"}), resourceName: v1.ResourceMemory,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:13 UTC 2023 - 38.3K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_manager_test.go
return psp.podStatus, psp.found } func makePod(podUID, containerName, cpuRequest, cpuLimit string) *v1.Pod { pod := &v1.Pod{ Spec: v1.PodSpec{ Containers: []v1.Container{ { Resources: v1.ResourceRequirements{ Requests: v1.ResourceList{ v1.ResourceName(v1.ResourceCPU): resource.MustParse(cpuRequest), v1.ResourceName(v1.ResourceMemory): resource.MustParse("1G"), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 06 13:16:15 UTC 2023 - 42.9K bytes - Viewed (0) -
pkg/kubelet/container/runtime.go
TimeStamp time.Time } // ContainerResources represents the Resources allocated to the running container. type ContainerResources struct { // CPU capacity reserved for the container CPURequest *resource.Quantity // CPU limit enforced on the container CPULimit *resource.Quantity // Memory capaacity reserved for the container MemoryRequest *resource.Quantity // Memory limit enforced on the container
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 27.8K bytes - Viewed (0)