-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Execute health checks in ring pool in parallel
The ring client pool executes the health checks for its servers sequentially, which can lead to problems when there are a lot of servers to check, especially when the targets do not respond fast enough. This PR changes the execution from sequential to parallel. If the new `MaxConcurrentHealthChecks` config setting is not set (`0` value), then health checks are executed with a parallelism of `16`, otherwise the parallelism from the setting is used. Fixes #236 Signed-off-by: Christian Haudum <christian.haudum@gmail.com>
- Loading branch information
Showing
3 changed files
with
60 additions
and
32 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
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
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