envoyproxy / envoyproxy/envoy

Question: Can Envoy handle HAproxy's aloha protocol, and also do meta load-balancing?

Open
#27,678 8 comments 0 reactions 0 assignees View on GitHub
area/load balancing enhancement help wanted
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 20h
Merged PRs (30d)
437

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](https://www.haproxy.com/documentation/aloha/latest/load-balancing/health-checks/agent-checks/)), 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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.