Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for NewWatchTracker (0.19 sec)

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

    				t.Errorf("forget should unregister the watch: %#v", watchTracker.watchCount)
    			}
    		})
    	}
    }
    
    func TestGetInterestedWatchCount(t *testing.T) {
    	watchTracker := NewWatchTracker()
    
    	registeredWatches := []*http.Request{
    		httpRequest("GET", "api/v1/pods", "watch=true"),
    		httpRequest("GET", "api/v1/namespaces/foo/pods", "watch=true"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 03 14:02:51 UTC 2021
    - 10.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker.go

    type watchTracker struct {
    	// indexes represents a set of registered indexes.
    	// It can't change after creation.
    	indexes builtinIndexes
    
    	lock       sync.Mutex
    	watchCount map[watchIdentifier]int
    }
    
    func NewWatchTracker() WatchTracker {
    	return &watchTracker{
    		indexes:    getBuiltinIndexes(),
    		watchCount: make(map[watchIdentifier]int),
    	}
    }
    
    const (
    	unsetValue = "<unset>"
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    	fakeFilter := fakeApfFilter{
    		mockDecision:    decision,
    		postEnqueue:     postEnqueue,
    		postDequeue:     postDequeue,
    		WatchTracker:    utilflowcontrol.NewWatchTracker(),
    		MaxSeatsTracker: utilflowcontrol.NewMaxSeatsTracker(),
    	}
    	return newApfServerWithFilter(t, fakeFilter, time.Minute/4, onExecute, postExecute)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/apf_controller.go

    		serverConcurrencyLimit: config.ServerConcurrencyLimit,
    		flowcontrolClient:      config.FlowcontrolClient,
    		priorityLevelStates:    make(map[string]*priorityLevelState),
    		WatchTracker:           NewWatchTracker(),
    		MaxSeatsTracker:        NewMaxSeatsTracker(),
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 48.8K bytes
    - Viewed (0)
Back to top