Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for numFail (0.11 sec)

  1. pkg/istio-agent/health/health_check.go

    			// we were not healthy, increment fail counter
    			numFail++
    			// wipe numSuccess (need consecutive failure)
    			numSuccess = 0
    			// if we reached the fail threshold, mark the target as unhealthy
    			if numFail == w.config.FailThresh && lastState != lastStateUnhealthy {
    				healthCheckLog.Infof("failure threshold hit, marking as unhealthy: %v", err)
    				numFail = 0
    				callback(&ProbeEvent{
    					Healthy:          false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 21 03:06:44 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  2. src/index/suffixarray/suffixarray_test.go

    	if i < len(x) {
    		for x[i] = 1; x[i] <= byte(max); x[i]++ {
    			testRec(t, x, i+1, max, numFail, build)
    		}
    		return
    	}
    
    	if !testSA(t, x, build) {
    		*numFail++
    		if *numFail >= 10 {
    			t.Errorf("stopping after %d failures", *numFail)
    			t.FailNow()
    		}
    	}
    }
    
    // testSA tests the suffix array build function on the input x.
    // It constructs the suffix array and then checks that it is correct.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. pkg/kubelet/apis/podresources/server_v1_test.go

    	podUID := types.UID("pod-uid")
    	containerName := "container-name"
    	numaID := int64(1)
    
    	mockCtrl := gomock.NewController(t)
    	defer mockCtrl.Finish()
    
    	devs := []*podresourcesapi.ContainerDevices{
    		{
    			ResourceName: "resource",
    			DeviceIds:    []string{"dev0", "dev1"},
    			Topology:     &podresourcesapi.TopologyInfo{Nodes: []*podresourcesapi.NUMANode{{ID: numaID}}},
    		},
    	}
    
    	cpus := []int64{12, 23, 30}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/test/integration/yaml_test.go

    		}
    	}
    
    	uid := types.UID("")
    	resourceVersion := ""
    
    	// Create
    	{
    		yamlBody := []byte(fmt.Sprintf(`
    apiVersion: %s
    kind: %s
    metadata:
      name: mytest
    values:
      numVal: 1
      boolVal: true
      stringVal: "1"`, apiVersion, kind))
    
    		result, err := rest.Post().
    			SetHeader("Accept", "application/yaml").
    			SetHeader("Content-Type", "application/yaml").
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 19:34:41 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/apply_test.go

    	rest := apiExtensionClient.Discovery().RESTClient()
    	yamlBody := []byte(fmt.Sprintf(`
    apiVersion: %s
    kind: %s
    metadata:
      name: mytest
    values:
      numVal: 1
      boolVal: true
      stringVal: "1"`, apiVersion, kind))
    	result, err := rest.Patch(types.ApplyPatchType).
    		AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name, noxuDefinition.Spec.Names.Plural).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 27 11:48:28 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  6. src/encoding/hex/hex.go

    				d.err = InvalidByteError(d.in[len(d.in)-1])
    			} else {
    				d.err = io.ErrUnexpectedEOF
    			}
    		}
    	}
    
    	// Decode internal buffer into output buffer
    	if numAvail := len(d.in) / 2; len(p) > numAvail {
    		p = p[:numAvail]
    	}
    	numDec, err := Decode(p, d.in[:len(p)*2])
    	d.in = d.in[2*numDec:]
    	if err != nil {
    		d.in, d.err = nil, err // Decode error; discard input remainder
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:30:23 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/devicemanager/pod_devices.go

    			continue
    		}
    		devicePluginMap := make(map[string]pluginapi.Device)
    		for numaid, devlist := range allocateInfo.deviceIds {
    			for _, devID := range devlist {
    				var topology *pluginapi.TopologyInfo
    				if numaid != nodeWithoutTopology {
    					NUMANodes := []*pluginapi.NUMANode{{ID: numaid}}
    					if pDev, ok := devicePluginMap[devID]; ok && pDev.Topology != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jan 27 02:10:25 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/cpumanager/cpu_assignment.go

    // Returns true if the supplied NUMANode is fully available in `a.details`.
    // "fully available" means that all the CPUs in it are free.
    func (a *cpuAccumulator) isNUMANodeFree(numaID int) bool {
    	return a.details.CPUsInNUMANodes(numaID).Size() == a.topo.CPUDetails.CPUsInNUMANodes(numaID).Size()
    }
    
    // Returns true if the supplied socket is fully available in `a.details`.
    // "fully available" means that all the CPUs in it are free.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 23:56:21 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top