Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 166 for drain1 (0.54 sec)

  1. src/time/tick_test.go

    			return
    		}
    
    		// async timers can send one stale value (then the timer is disabled).
    		drain1()
    		if isTicker {
    			// async tickers can send two stale values: there may be one
    			// sitting in the channel buffer, and there may also be one
    			// send racing with the Reset/Stop+drain that arrives after
    			// the first drain1 has pulled the value out.
    			// This is rare, but it does happen on overloaded builder machines.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 18K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 16K bytes
    - Viewed (0)
  4. pkg/envoy/agent.go

    //  3. SIGTERM. We will drain, wait termination drain duration, then exit. This is the standard pod shutdown; SIGTERM arrives when pod shutdown starts.
    //     If the pod's terminationGracePeriod is shorter than our drain duration (rare), we may be a SIGKILL.
    //  4. /drain + SIGTERM. This is the shutdown when using Kubernetes native sidecars.
    //     /drain is called when the pod shutdown starts. We start draining, forever.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 24 16:04:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/change_test.go

    	}
    
    	// Let all the established get request loops soak
    	time.Sleep(5 * time.Second)
    
    	// Tear down
    	close(stopChan)
    
    	// Let loops drain
    	drained = make(chan struct{})
    	go func() {
    		defer close(drained)
    		wg.Wait()
    	}()
    
    	select {
    	case <-drained:
    	case <-time.After(wait.ForeverTestTimeout):
    		t.Fatal("timed out waiting for clients to complete")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 13:59:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. src/unique/handle_test.go

    	wp, ok := m.Load(value)
    	if !ok {
    		return
    	}
    	if wp.Strong() != nil {
    		t.Errorf("value %v still referenced a handle (or tiny block?) ", value)
    		return
    	}
    	t.Errorf("failed to drain internal maps of %v", value)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/genericapiserver.go

    	// ShutdownWatchTerminationGracePeriod, if set to a positive value,
    	// is the maximum duration the apiserver will wait for all active
    	// watch request(s) to drain.
    	// Once this grace period elapses, the apiserver will no longer
    	// wait for any active watch request(s) in flight to drain, it will
    	// proceed to the next step in the graceful server shutdown process.
    	// If set to a positive value, the apiserver will keep track of the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  8. src/runtime/mgclimit.go

    // where it might become excessive and inhibit application progress (e.g.
    // a death spiral).
    //
    // The core of the limiter is a leaky bucket mechanism that fills with GC
    // CPU time and drains with mutator time. Because the bucket fills and
    // drains with time directly (i.e. without any weighting), this effectively
    // sets a very conservative limit of 50%. This limit could be enforced directly,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  9. pkg/envoy/proxy.go

    	if network.AllIPv6(e.NodeIPs) {
    		proxyLocalAddressType = "v6"
    	}
    	startupArgs := []string{
    		"-c", fname,
    		"--drain-time-s", fmt.Sprint(int(e.DrainDuration.AsDuration().Seconds())),
    		"--drain-strategy", "immediate", // Clients are notified as soon as the drain process starts.
    		"--local-address-ip-version", proxyLocalAddressType,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 05 10:02:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. pkg/kube/krt/bench_test.go

    	v++
    	v3 := byte(v & 0xFF)
    	v2 := byte((v >> 8) & 0xFF)
    	v1 := byte((v >> 16) & 0xFF)
    	v0 := byte((v >> 24) & 0xFF)
    	nextIP = net.IPv4(v0, v1, v2, v3)
    	return ret
    }
    
    func drainN(c chan string, n int) {
    	for n > 0 {
    		n--
    		<-c
    	}
    }
    
    func BenchmarkControllers(b *testing.B) {
    	log.FindScope("krt").SetOutputLevel(log.InfoLevel)
    	watch.DefaultChanSize = 100_000
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top