How does Envoy Load balancing Weighted least request work

455 views
Skip to first unread message

sasinda...@gmail.com

unread,
Jan 24, 2018, 4:58:23 PM1/24/18
to envoy-users
Does Envoy Loadbalancing "Weighted least request"  work on a global level when there are multiple client envoys accessing same dest service. I mean does each of the clients share information on how many active requests are for each target on a global level, or just know how many active requests are there by self (locally).
It would be nice if the documentation (https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/load_balancing#weighted-least-request) had more info on how envoy does it. 
Thanks

Cheers,
Sasinda.

Christian Posta

unread,
Jan 24, 2018, 8:36:38 PM1/24/18
to sasinda...@gmail.com, envoy-users
I believe this is per proxy -- the proxies do not coordinate with each other and try to come to consensus around what the global rates are... at least afaict.

--
You received this message because you are subscribed to the Google Groups "envoy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to envoy-users+unsubscribe@googlegroups.com.
To post to this group, send email to envoy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/envoy-users/3d3c9aef-2c22-43aa-a9b1-c649aa153af3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Christian Posta
twitter: @christianposta



Matt Klein

unread,
Jan 25, 2018, 11:57:31 AM1/25/18
to Christian Posta, sasinda...@gmail.com, envoy-users
Correct, load balancing is fully distributed. PRs appreciated to the documentation: https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/load_balancing

Thanks,
Matt


For more options, visit https://groups.google.com/d/optout.

sasinda rukshan

unread,
Jan 25, 2018, 4:09:36 PM1/25/18
to Matt Klein, Christian Posta, envoy-users
Hi Matt, Christian,
Thanks for the info! So there is no global knowledge on which services may be actually getting heavy loads and incurring latencies, under weighted least request.
Also then these load balancing weights coming from SDS, means envoy proxies consider them individually to weight on random selection or round robin etc; isn't it?
SDS, /v1/loadbalancing/:service/:ip_address
{
     "az": "...",
     "region": "...",
     "instance_id": "...",
     "canary": false,
     "load_balancing_weight": 1
  }

Cheers,
Sasinda.
--
Best Regards,
Sasinda Rukshan.

Matt Klein

unread,
Jan 25, 2018, 5:23:54 PM1/25/18
to Sasinda Rukshan, Christian Posta, envoy-users
Correct, everything is distributed in the current load balancing implementations.
Reply all
Reply to author
Forward
0 new messages