Can balancer_by_lua see how many connections on the backends?

42 views
Skip to first unread message

thattommyhall

unread,
Sep 28, 2021, 3:58:52 AM9/28/21
to openresty-en

I cant see it in the docs, but it feels like it should be possible to re-implement least connections (or use the information for more complex algorithms

Tom

Cong Wu

unread,
Nov 5, 2021, 3:07:54 AM11/5/21
to openresty-en
I have just exactly the same question here... it seems that you could use get_primary_peers to get this information, but I'm not sure.
I have asked in apisix community https://the-asf.slack.com/archives/CUC5MN17A/p1635134231004300,but the response just makes me more confused.
Reply all
Reply to author
Forward
0 new messages