Jump to content
Welcome to our new Citrix community!

Percentage LB method between two services

Recommended Posts

You can use weighted load balancing (and or connection/request limits).


So, when you bind a service to the lb vserver, you can specify a weight for weighted load balancing.  Bind one service with weight 3 and the other with weight 1. And you will get your 75%:25% split.  Depending your traffic method roundrobin, will do a stright traffic split. For methods like leastconnections or other, then the traffic is balanced so that the service with weight 3 is 1/3 less as expensive as the other service, so it will receive 3x more traffic than without the weight.  Since you're load balancing routers, your likely using roundrobin and not leastconnections (see admin guide for link load balancing as well).


It can be slightly more efficient to set max connections or max bandwidth as alternatives, if its about actual scalability of servers that the service represent.


Basic example (weighted lb for router/):

add service svc_rtr1 <IP1> any *

add service svc_rtr2 <IP2> any *

add lb vsever lb_vsrv_llb any <vip1> * -lbmethod roundrobin

bind lb vserver lb_vsrv_rtr1 svc_rtr1 -weight 3

bind lb vserver lb_vsrv_rtr2 svc_rtr2 -weight 1


Sum of services by weight is 4.  rtr1 gets 3/4 and rtr2 gets 1/4 cycles of transactions.

Adjust persistence as needed for traffic handling.  Weights will only affect new load balancing decisions and not persistence. Limits on max connections can limit max new traffic as well to prevent "overloads" of backend services.


Weighted Least Connections is explained here:  https://docs.citrix.com/en-us/citrix-adc/current-release/load-balancing/load-balancing-customizing-algorithms/leastconnection-method.html

Weighted roundrobin:  https://docs.citrix.com/en-us/citrix-adc/current-release/load-balancing/load-balancing-customizing-algorithms/roundrobin-method.html

Link Load Balancing:  https://docs.citrix.com/en-us/citrix-adc/current-release/link-load-balancing.html





Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...