Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for WatchInitialized (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_context.go

    	signal, ok := ctx.Value(priorityAndFairnessInitializationSignalKey).(InitializationSignal)
    	return signal, ok && signal != nil
    }
    
    // WatchInitialized sends a signal to priority and fairness dispatcher
    // that a given watch request has already been initialized.
    func WatchInitialized(ctx context.Context) {
    	if signal, ok := initializationSignalFrom(ctx); ok {
    		signal.Signal()
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 14 14:39:15 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/cache_watcher.go

    	// TODO: As describe in the KEP, we would like to estimate that by delaying
    	//   the initialization signal proportionally to the number of events to
    	//   process, but we're leaving this to the tuning phase.
    	utilflowcontrol.WatchInitialized(ctx)
    
    	for {
    		select {
    		case event, ok := <-c.input:
    			if !ok {
    				return
    			}
    			// only send events newer than resourceVersion
    			// or a bookmark event with an RV equal to resourceVersion
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 12:22:41 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go

    	// is by default enabled for all resources but Events), we just deliver
    	// the initialization signal immediately. Improving this will be explored
    	// in the future.
    	utilflowcontrol.WatchInitialized(ctx)
    
    	return wc, nil
    }
    
    func (w *watcher) createWatchChan(ctx context.Context, key string, rev int64, recursive, progressNotify bool, pred storage.SelectionPredicate) *watchChan {
    	wc := &watchChan{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 10:26:38 UTC 2023
    - 18.9K bytes
    - Viewed (0)
Back to top