Question: Can Envoy handle HAproxy's aloha protocol, and also do meta load-balancing?
#27,678 opened on 2023年5月30日
Repository metrics
- Stars
- (27,997 stars)
- PR merge metrics
- (平均マージ 8d) (30d で 378 merged PRs)
説明
Title: Can Envoy do meta load-balancing?
Description:
We've got a number of CDN servers, and we want to set up Envoy as a load balancer that calls their healthcheck endpoints and perform all the usual load-balancing calculations, but instead of proxying the traffic, we want Envoy to return the ip address of the server it would have proxied the traffic to. The client would then bypass Envoy and connect to the server directly; which is why I called it "meta" load-balancing.
One idea was to have the healthcheck endpoint on each server return one of the strings (down, up, maint, ready, 50%, maxconn: 30) (stolen wholesale from haproxy), but if there's a better way to communicate how much load a server is willing to accept, great!
Relevant Links:
https://www.haproxy.com/documentation/aloha/latest/load-balancing/health-checks/agent-checks/ Varnish and Nginx only have a binary healthy/not-healthy approach, it seems.
Thanks for any insight you could lend!