Forum Discussion

kamat_48975's avatar
kamat_48975
Icon for Nimbostratus rankNimbostratus
Jan 15, 2009

How to limit traffic to a particular node

Hello,

 

 

I have 6 nodes and the requirement is that 5% of the traffic should go node 6 and rest of all the 5 nodes should divide the remaining traffic(95%) equally. Please let me know how to configure it?

 

 

Thanks,

 

Kamat

3 Replies

  • You'll need to use the ratio loadbalancing mode and assign a weight of 5 to the one node and weights of 19 (95/5) to the others.

     

     

    Denny
  • Hello Denny,

     

     

    Thank you for yor reply. If i understand correctly is the following configuration is what you are suggesting?

     

     

    b node 172.20.1.122 '{

     

    screen www01

     

    ratio 19

     

    }'

     

    b node 172.20.1.123 '{

     

    screen www02

     

    ratio 19

     

    }'

     

    b node 172.20.1.124 '{

     

    screen www03

     

    ratio 19

     

    }'

     

    b node 172.20.1.125 '{

     

    screen www04

     

    ratio 19

     

    }'

     

    b node 172.20.1.126 '{

     

    screen www05

     

    ratio 19

     

    }'

     

    b node 172.20.1.128 '{

     

    screen www06

     

    ratio 5

     

    }'

     

     

    b pool www_http_pool '{

     

    lb method member ratio

     

    monitor all http

     

    member 172.20.1.122:http ratio 19

     

    member 172.20.1.123:http ratio 19

     

    member 172.20.1.124:http ratio 19

     

    member 172.20.1.125:http ratio 19

     

    member 172.20.1.126:http ratio 19

     

    member 172.20.1.128:http ratio 5

     

    }'

     

    b pool www_https_pool '{

     

    lb method member ratio

     

    monitor all https

     

    member 172.20.1.122:https ratio 19

     

    member 172.20.1.123:https ratio 19

     

    member 172.20.1.124:https ratio 19

     

    member 172.20.1.125:https ratio 19

     

    member 172.20.1.126:https ratio 19

     

    member 172.20.1.128:https ratio 5

     

    }'

     

     

    Thanks,

     

    Kamat.

     

  • I wouldn't worry about putting ratios on the nodes themselves, the ratio in the pool member definition is all you need. Looks fine though.

     

     

    Denny