Skip to content

The correct behavior of load balancer algorithms depend on optional stats #7652

@brucedlg

Description

@brucedlg

Issue Template

Title: One line description
The correct behavior of load balancer algorithms, in particular, unweighted round-robin and unweighted least-request (P2C), depend on optional stats value

Description:
When testing istio default configuration, load-balancer algorithms for unweighted round-robin and unweighted least-request behave like weighted round-robin with all weight 1.

Troubleshooting shows the root cause is due to two stats are not enabled:

Since these stats are service/cluster specific, it's unreasonable asking control plane installation (e.g. istio) to turn them on by default, unless blindly turning on all cluster.outbound stats.

Ideally it's nice for Envoy to remove the dependency of call logic to the optional stats, say, saving needed info in some other instance variables in addition to stats. Then the call logic is no longer depending on the enabling or disabling of certain stats.

If too hard to do, it's suggested to add clarification in LB documentation. Current doc does not describe dependency of LB to these stats.

[optional Relevant Links:]

Metadata

Metadata

Labels

enhancementFeature requests. Not bugs or questions.help wantedNeeds help!

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions