-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collect statistics for upstream_fair module
The shared memory is accessed without any locks. The number of requests is updated atomically and the last activity time uses a rotating set of slots a'la ngx_times.c Note: the numer of time slots may need to be increased under heavy load, but on the other hand, corrupted reads should lead in the worst case to non-optimal load balancing. This needs further testing.
- Loading branch information
Showing
1 changed file
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters