Forum Discussion
Hamish
Apr 03, 2012Cirrocumulus
BigIP LTM and Nexus 7k NX-OS
Does anyone out there run BigIP (Viprion) connected to Cisco Nexus 7k switches? Do you use vPC's? Or just 1:1 port-channels? Any problems? (Sorry, we're looking at this in de...
Robert_47833
Jul 31, 2011Altostratus
Hi,Bhattman
Thank u for your reply
sorry to not to tell u the whole story
what I am trying to acieve is:
for some specific uri,I want to send them to two pool with ration
for example :
pool cjj1 20% traffic
pool cjj2 80% traffic
and for the traffic hit pool cjj1,make them hit cjj1 always during the session,for pool cjj2,do the same
so I use:
1:when HTTP_REQUEST timing on {
if {[class match $uri starts_with gen3abURLs_SRWD29]} {
if {[HTTP::cookie valueA_cookie] == 1}{
pool cjj1
return
}
if {[HTTP::cookie value B_cookie] == 1}{
pool cjj2
return
}
if { rand() <0.2 } {
pool cjj1
set A_cookie 1
return
}
else {
pool cjj2
set B_cookie 1
return
}
when HTTP_RESPONSE {
if { $A_cookie == 1 }{
HTTP::cookie insert name A_cookie value 1 path "/"
}
if { $B_cookie == 1 }{
HTTP::cookie insert name B_cookie value 1 path "/"
}
this irule do meet my requirement,but I checked the performance,it is not good,I think it is rand() make the performance bad,but I don't know how to optimize it
that is why I am trying to work around this
2:so I want to put members in cjj1 and cjj2 to a single pool ,we suppose cjjall and use ratio method in pool
the next step is to persist the request to the same pool member without profile
the link http://devcentral.f5.com/wiki/iRules.ElectionHashLoadBalancingAndPersistence.ashx show us how to lb to pool members ,but not to ratio
do u have some metod to work around this?
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects