- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for CPULimit (0.1 sec)
-
pkg/kubelet/kuberuntime/kuberuntime_container_windows.go
memLimit = resource.NewQuantity(runtimeStatusResources.MemoryLimitInBytes, resource.BinarySI) } if cpuLimit != nil || memLimit != nil { cStatusResources = &kubecontainer.ContainerResources{ CPULimit: cpuLimit, MemoryLimit: memLimit, } } } return cStatusResources } func toKubeContainerUser(statusUser *runtimeapi.ContainerUser) *kubecontainer.ContainerUser { return nil
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_windows_test.go
tests := []struct { name string cpuLimit resource.Quantity cpuCount int64 want int64 }{ { name: "max range when same amount", cpuLimit: resource.MustParse("1"), cpuCount: 1, want: 10000, }, { name: "percentage calculation is working as intended", cpuLimit: resource.MustParse("94"), cpuCount: 96, want: 9791, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 5.3K bytes - Viewed (0) -
pkg/kubelet/kubelet_resources_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Oct 24 14:46:59 UTC 2019 - 2.4K bytes - Viewed (0) -
pilot/cmd/pilot-agent/config/config.go
// only 2 CPUs allocated, we want to have 2 threads, not 100, or we will get excessively throttled. if CPULimit != 0 { log.Infof("cpu limit detected as %v, setting concurrency", CPULimit) proxyConfig.Concurrency = wrapperspb.Int32(int32(CPULimit)) } } // Respect the old flag, if they set it. This should never be set in typical installation. if concurrency != 0 {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 6.4K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_linux.go
if runtimeStatusResources.MemoryLimitInBytes > 0 { memLimit = resource.NewQuantity(runtimeStatusResources.MemoryLimitInBytes, resource.BinarySI) } if cpuLimit != nil || memLimit != nil || cpuRequest != nil { cStatusResources = &kubecontainer.ContainerResources{ CPULimit: cpuLimit, CPURequest: cpuRequest, MemoryLimit: memLimit, } } } return cStatusResources }
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/apis/core/fuzzer/fuzzer.go
}, func(q *core.LimitRangeItem, c fuzz.Continue) { var cpuLimit resource.Quantity c.Fuzz(&cpuLimit) q.Type = core.LimitTypeContainer q.Default = make(core.ResourceList) q.Default[core.ResourceCPU] = cpuLimit.DeepCopy() q.DefaultRequest = make(core.ResourceList) q.DefaultRequest[core.ResourceCPU] = cpuLimit.DeepCopy() q.Max = make(core.ResourceList)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 26 04:32:01 UTC 2024 - 18.5K bytes - Viewed (0) -
pkg/api/v1/resource/helpers_test.go
) func TestResourceHelpers(t *testing.T) { cpuLimit := resource.MustParse("10") memoryLimit := resource.MustParse("10G") resourceSpec := v1.ResourceRequirements{ Limits: v1.ResourceList{ v1.ResourceCPU: cpuLimit, v1.ResourceMemory: memoryLimit, }, } if res := resourceSpec.Limits.Cpu(); res.Cmp(cpuLimit) != 0 { t.Errorf("expected cpulimit %v, got %v", cpuLimit, res) }
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/qos/policy_test.go
import ( "strconv" "testing" v1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" "k8s.io/kubernetes/pkg/apis/scheduling" ) const ( standardMemoryAmount = 8000000000 ) var ( cpuLimit = v1.Pod{ Spec: v1.PodSpec{ Containers: []v1.Container{ { Resources: v1.ResourceRequirements{ Limits: v1.ResourceList{ v1.ResourceName(v1.ResourceCPU): resource.MustParse("10"), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 03 21:34:27 UTC 2021 - 5.6K bytes - Viewed (0) -
cluster/gce/manifests/etcd.manifest
{{security_context}} "image": "{{ pillar.get('etcd_docker_repository', 'registry.k8s.io/etcd') }}:{{ pillar.get('etcd_docker_tag', '3.5.14-0') }}", "resources": { "requests": { "cpu": {{ cpulimit }} } }, "command": [ "/bin/sh", "-c",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 01 03:36:35 UTC 2024 - 3.8K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_manager_test.go
kubeContainerID: kcs.ID, desiredContainerResources: containerResources{ memoryLimit: mem100M.Value(), cpuLimit: cpu100m.MilliValue(), }, currentContainerResources: &containerResources{ memoryLimit: mem200M.Value(), cpuLimit: cpu200m.MilliValue(), }, }, }, v1.ResourceCPU: { { apiContainerIdx: 1,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 14 16:09:17 UTC 2024 - 96K bytes - Viewed (0)