Number of requests currently being handled by this pod.
Average concurrency is calculated at the networking pkg
side as follows:
-
When a
req
change happens, the time delta between changes is calculated. Based on the result, the current concurrency number over delta is computed and added to the current computed concurrency. Additionally, a sum of the deltas is kept.Current concurrency over delta is computed as follows:
global_concurrency
× delta -
Each time a reporting is done, the sum and current computed concurrency are reset.
-
When reporting the average concurrency the current computed concurrency is divided by the sum of deltas.
-
When a new request comes in, the global concurrency counter is increased. When a request is completed, the counter is decreased.