-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Least Request LB active request bias config (#11252)
* Add support for making Least Requests LB behave like Round Robin in weighted hosts case Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Address feedback Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Perf/logging improvements Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Address feedback and cleanup BUILD file Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Make active requests exponent configurable via CDS/runtime Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Address feedback Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Validate log message Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Update cluster memory test golden values Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Fix method name Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Explicitly initialize active_request_bias_ Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Try to make clang-tidy happy Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Use unique_ptr instead of optional Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Update stats integration test Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Check whether memory footprint is reduced without LB changes Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Use plain double for active request bias Use a plain double instead of a runtime double to store the per-cluster active request bias. Note: The goal of this commit is to evaluate the memory overhead of this approach. A commit with te Least Requests LB changes might follow if we deem the memory overhead of this approach acceptable. Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Revert back to approved implementation using RuntimeDouble Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Add extra fields to CDS cluster proto to check memory usage Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Revert "Add extra fields to CDS cluster proto to check memory usage" This reverts commit a6a285d. Signed-off-by: Gastón Kleiman <gkleiman@lyft.com> * Add changelog entry Signed-off-by: Gastón Kleiman <gkleiman@lyft.com>
- Loading branch information
Showing
13 changed files
with
277 additions
and
19 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
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
25 changes: 25 additions & 0 deletions
25
generated_api_shadow/envoy/config/cluster/v3/cluster.proto
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
25 changes: 25 additions & 0 deletions
25
generated_api_shadow/envoy/config/cluster/v4alpha/cluster.proto
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
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
Oops, something went wrong.