liveness returns "busy" if queued requests > available capacity (#16719)

This commit is contained in:
Harshavardhana
2023-02-27 08:34:52 -08:00
committed by GitHub
parent bfedea9bad
commit ae029191a3
5 changed files with 26 additions and 3 deletions

View File

@@ -227,6 +227,13 @@ func (t *apiConfig) getClusterDeadline() time.Duration {
return t.clusterDeadline
}
func (t *apiConfig) getRequestsPoolCapacity() int {
t.mu.RLock()
defer t.mu.RUnlock()
return cap(t.requestsPool)
}
func (t *apiConfig) getRequestsPool() (chan struct{}, time.Duration) {
t.mu.RLock()
defer t.mu.RUnlock()