Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
brucedlg opened this issue Jul 19, 2019 · 3 comments
Closed
Assignees
Labels
enhancement Feature requests. Not bugs or questions. help wanted Needs help!
Milestone

Comments

@brucedlg
Copy link

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:]

@mattklein123 mattklein123 added enhancement Feature requests. Not bugs or questions. help wanted Needs help! labels Jul 20, 2019
@mattklein123
Copy link
Member

Marking help wanted. I agree we can/should do better here.

@antoniovicente
Copy link
Contributor

I think the current issue is related to max_host_weight so #7877 should fix the issue.

About rq_active, I think there is currently no way to disable host stats. In the future we may want to add a way to disable or otherwise reduce the memory burden of those stats.

@mattklein123
Copy link
Member

Fixed by #7877

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature requests. Not bugs or questions. help wanted Needs help!
Projects
None yet
Development

No branches or pull requests

3 participants