Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for CPULimit (0.17 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/types2/stdlib_test.go

    	// type-checking (see golang/go#47729).
    	cpulimit := make(chan struct{}, runtime.GOMAXPROCS(0))
    	var wg sync.WaitGroup
    
    	for dir := range dirFiles {
    		dir := dir
    
    		cpulimit <- struct{}{}
    		wg.Add(1)
    		go func() {
    			defer func() {
    				wg.Done()
    				<-cpulimit
    			}()
    
    			_, err := c.getDirPackage(dir)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. src/go/types/stdlib_test.go

    	// type-checking (see golang/go#47729).
    	cpulimit := make(chan struct{}, runtime.GOMAXPROCS(0))
    	var wg sync.WaitGroup
    
    	for dir := range dirFiles {
    		dir := dir
    
    		cpulimit <- struct{}{}
    		wg.Add(1)
    		go func() {
    			defer func() {
    				wg.Done()
    				<-cpulimit
    			}()
    
    			_, err := c.getDirPackage(dir)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top