Forum Discussion

MQ_107747's avatar
MQ_107747
Icon for Nimbostratus rankNimbostratus
Mar 04, 2011

I-RULE HELP&ADVISE

i need to type i-rule check the client source address then check pool member available then go to pool , if not check second pool availability , and so on ...

 

 

when HTTP_REQUEST {

 

if { [class match [IP::client_addr] equals "UsersSubnet" ] }{

 

if { [active_members Pool1 ] > 0 }{

 

pool Pool1

 

}

 

 

elseif {[active_members Pool2 ] > 0 }{

 

pool Pool2

 

}

 

} End I-rule

 

 

 

 

 

 

 

 

  • i did not try it yet , i am jut looking for recommendation and advise.
  • How about just creating a pool that contains all the different servers and using priority group activation to make users go to the proper pools if there are available members. You'd still use the iRule to direct that network to the pool.