apiserver/pkg/util/flowcontrol
Andrew Sy Kim 53a2449e3c apiserver: exclude APF queue wait time from SLO latency metrics (#116420)
* apiserver: add latency tracker for priority & fairness queue wait time

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>

* apiserver: exclude priority & fairness wait times to SLO/SLI latency metrics

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>

* apiserver: update TestLatencyTrackersFrom to check latency from PriorityAndFairnessTracker

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>

* flowcontrol: add helper function observeQueueWaitTime to consolidate metric and latency tracker calls

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>

* flowcontrol: replace time.Now() / time.Since() with clock.Now() / clock.Since() for better testability

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>

* flowcontrol: add unit test TestQueueWaitTimeLatencyTracker to validate queue wait times recorded by latency tracker

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>

---------

Signed-off-by: Andrew Sy Kim <andrewsy@google.com>

Kubernetes-commit: ee18f602523e11a80823a659bed8f70f98a12914
2023-03-15 07:35:21 +00:00
..
counter Refactor goroutine counting 2021-07-29 00:35:25 -04:00
debug Add instrumentation for seat borrowing 2022-10-20 15:21:09 -04:00
fairqueuing refine code 2023-02-14 15:10:54 +08:00
format rename assuredConcurrencyShares for flowcontrol v1beta3 2022-09-21 15:40:33 -04:00
metrics staging: fix "go vet" issues 2023-02-28 21:22:40 +01:00
request Reuse generic List test for watchcache 2022-11-04 22:01:37 +01:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00
apf_context.go Free APF seats for watches handled by an aggregated apiserver. 2021-10-06 10:16:46 -04:00
apf_controller.go apiserver: exclude APF queue wait time from SLO latency metrics (#116420) 2023-03-15 07:35:21 +00:00
apf_controller_debug.go refine code 2023-02-14 15:10:54 +08:00
apf_filter.go apiserver: exclude APF queue wait time from SLO latency metrics (#116420) 2023-03-15 07:35:21 +00:00
apf_filter_test.go apiserver: exclude APF queue wait time from SLO latency metrics (#116420) 2023-03-15 07:35:21 +00:00
borrowing_test.go apiserver: finish implementation of borrowing in APF 2022-10-31 16:13:25 -07:00
conc_alloc.go Fix indentation/spacing in comments to render correctly in godoc 2022-12-17 17:31:05 -05:00
conc_alloc_test.go apiserver: add solver for APF concurrency rebalancing 2022-08-30 22:34:16 -04:00
controller_test.go apiserver: define metrics for API Priority and Fairness borrowing 2022-10-31 15:09:39 -07:00
filter_test.go Added API Priority and Fairness filter and config consumer 2020-01-25 19:47:12 -05:00
formatting.go Added API Priority and Fairness filter and config consumer 2020-01-25 19:47:12 -05:00
gen_test.go staging: fix "go vet" issues 2023-02-28 21:22:40 +01:00
match_test.go staging: fix "go vet" issues 2023-02-28 21:22:40 +01:00
rule.go apiserver: update apf logic to use v1beta3 2022-09-10 07:26:31 -04:00
watch_tracker.go Fix indentation/spacing in comments to render correctly in godoc 2022-12-17 17:31:05 -05:00
watch_tracker_test.go P&F fix watch tracker bug 2021-11-03 15:02:51 +01:00