Question: Can Envoy handle HAproxy's aloha protocol, and also do meta load-balancing?
#27 678 ouverte le 30 mai 2023
Métriques du dépôt
- Stars
- (27 997 stars)
- Métriques de merge PR
- (Merge moyen 8j) (378 PRs mergées en 30 j)
Description
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!