Email to friend
Your name: *
Your email: *
Friend's email: *
Comment:


How do I calculate least connection (lc) method threshold granularity and real server weight?

Threshold granularity is 10, and real servers weight 5, 15, and 5.

Below sample configuration with round robin = no

slb group method “test” lc 10 no
slb group member “test” “real1” 5
slb group member “test” “real2” 15
slb group member “test” “real3” 5



1st   client : real1 The list become: real1(1/5=0), real2(0), real3(0)

2nd   client : real1 The list become: real1(2/5=0), real2(0), real3(0)
.
.
.
49th  client : real1 The list become: real1(49/5=9), real2(0), real3(0)


50th  client : real1 The list is divided in two.  List1:real2(0), real3(0).  List2:real1(50/5=10)

51st  client : real2      List1:real2(1/15=0), real3(0).  List2:real1(50/5=10)

52nd  client : real2     List1:real2(2/15=0), real3(0).  List2:real1(50/5=10)
.
.
.   
199th client : real2     List1:real2(149/15=9), real3(0).   List2:real1(50/5=10)

200th client : real2     List1:real3(0).     List2:real1(50/5=10), real2(150/15=10)


201st client : real3    List1:real3(1/5=0).      List2:real1(50/5=10), real2(150/15=10)

202nd client : real3   List1:real3(2/5=0).      List2:real1(50/5=10), real2(150/15=10)
.
.
.
249th client : real3    List1:real3(49/5=9).     List2:real1(50/5=10), real2(150/15=10)

250th client : real3     List1:                                List2:real1(50/5=10), real2(150/15=10) ,real3(50/5=10)


looping back
251st client : real1     The list become: real1(1/5=0), real2(0), real3(0)
252nd client : real1    The list become: real1(2/5=0), real2(0), real3(0)

 

 

Below sample configuration with round robin = yes:

slb group method “test” lc 10 yes
slb group member “test” “real1” 5
slb group member “test” “real2” 15
slb group member “test” “real3” 5

1st   client : real1     The list become: real1(1/5=0), real2(0), real3(0) 

2nd   client : real1    The list become: real1(2/5=0), real2(0), real3(0)
.
.
.
5th   client : real1     The list become: real2(0), real3(0) ,real1(5/5=1)

6th   client : real2      The list become: real2(1/0=0), real3(0), real1(5/5=1)
.
.
.
19th  client : real2     The list become: real2(14/0=0), real3(0),       real1(5/5=1)

20th  client : real2      The list become: real3(0),      real1(5/5=1),   real2(15/15=1)

21th  client : real3     The list become: real3(1/5=0),  real1(5/5=1),   real2(15/15=1)
.
.
.
24th  client  : real3     The list become: real3(4/5=0),  real1(5/5=1),   real2(15/15=1)

25th  client : real3      The list become: real1(5/5=1),  real2(15/15=1), real3(5/5=1)

looping back
26th  client : real1     The list become: real1(1/5=0), real2(0), real3(0)