Forum Discussion

MuthuS_225864's avatar
MuthuS_225864
Icon for Nimbostratus rankNimbostratus
Mar 16, 2016

if the Session ID is already in a Clone Pool member. then it sends all of the packets associated with that Session ID to the same Clone Pool member.

if the Session ID is already in a Clone Pool member. then it sends all of the packets associated with that Session ID to the same Clone Pool member. If the Session ID is not known to the Clone Pool, then it randomly picks one of the clone pool members and adds a row for that Session ID with the chosen Clone Pool member … thus all packets for a Session will be sent to the same clone pool member. Kindly help me to correct the below irule.

 

set csession [session lookup ssl [SSL::sessionid]] if { $csession != “” } { set target 1 set cserver [lindex [active_members -list MY_CLONEPOOL] [expr {int(rand()[active_members MY_CLONEPOOL])}]] set ip [lindex $cserver 0] set port [lindex $cserver 1] set cserver $ip:$port clone pool MY_CLONEPOOL member $ip } Else { Set target 0 set cserver [lindex [active_members -list MY_CLONEPOOL] [expr {int(rand()[active_members MY_CLONEPOOL])}]] set ip [lindex $cserver 0] set port [lindex $cserver 1] set cserver $ip:$port clone pool MY_CLONEPOOL member $ip }

 

No RepliesBe the first to reply