Hi, On Tue, Nov 29, 2011 at 01:52:31PM +0800, wsq003 wrote: > > We add a new keyword 'vgroup' under 'server' key word. > server wsqa 0.0.0.0 vgroup subproxy1 weight 32 check inter 4000 rise 3 > fall 3 > means request assigned to this server will be treated as set backend > 'subproxy1'. Then in backend 'subproxy1' you can configure any load balance > strategy. This can be recursive. > > In source code: > At the end of assign_server(), if we found that a server has 'vgroup' > property, we will set backend of cur_proxy and call assign_server() again.
Your trick sounds interesting but I'm not sure I completely understand how it works. There was a feature I wanted to implement some time ago, it would be sort of an internal server which would directly map to a frontend (or maybe just a backend) without passing via a TCP connection. It looks like your trick does something similar but I just fail to understand how the LB params are assigned to multiple backends for a given server. Regards, Willy