-
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.
Prefer the load_balancing_policy cluster field over lb_policy (#18419)
This change updates Envoy to consider the load balancing configuration set in load_balancing_policy, regardless of what is set in lb_policy. Previously the load_balancing_policy field was only considered if lb_policy was set to LOAD_BALANCING_POLICY_CONFIG. Going forward the approach is to only use the load_balancing_policy field and the extensible configuration mechanism it provides to configure all load balancing policies, which makes lb_policy deprecated. This change still preserves backward compatibility, allowing old clients to continue using the lb_policy field and new ones to switch to just considering load_balancing_policy. Commit Message: Prefer the load_balancing_policy cluster field over lb_policy Additional Description: This change updates Envoy to consider the load balancing configuration set in load_balancing_policy, regardless of what is set in lb_policy. Risk Level: Low Testing: New unit tests for upstream_impl.cc Docs Changes: Documentation to follow once consensus on this change is reached. Release Notes: Not currently user impacting as backward compatibility is maintained. Platform Specific Features: None. Signed-off-by: Terry Wilson <[email protected]>
- Loading branch information
Showing
8 changed files
with
257 additions
and
69 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "typed_load_balancer_factory.h" | ||
|
||
namespace Envoy { | ||
namespace Upstream { | ||
MockTypedLoadBalancerFactory::MockTypedLoadBalancerFactory() = default; | ||
|
||
MockTypedLoadBalancerFactory::~MockTypedLoadBalancerFactory() = default; | ||
|
||
} // namespace Upstream | ||
} // namespace Envoy |
Oops, something went wrong.