-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sqlproxyccl: statistically load balance across tenants
Previously, the SQLProxy's Directory implementation would always select the first instance from the pods list. As part of the SQLProxy's duty is load balancing, this was inadequate. This commit upgrades the tenant dir to have pods report their CPU load. This load is then used to perform a weighted distribution across all running tenant pods. Load reporters may elect to use the new UNKNOWN state to indicate their updates should be ignored if the proxy is unaware of a running pod at the given address. Release note: None
- Loading branch information
Showing
9 changed files
with
435 additions
and
97 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.