Forum Discussion

felix_candelari's avatar
felix_candelari
Icon for Nimbostratus rankNimbostratus
Aug 19, 2008

iRule to refuse connection

Hello all,

 

 

I notice that even if the nodes in a pool go down the virtual server in front of that pool both responds to pings and the client facing port remains up.

 

 

Is it possible to write an irule that rejects connections from clients if the nodes are down instead of the connection just timing out?

 

 

Something along the lines of:

 

 

if { {[active_members poolName] < 1} } {

 

TCP::close

 

}

 

 

-Felix
  • No Problem,

     

     

    Another solution to avoid an iRule would be to change the VS type. I guess you are in fastl4 virtual server type. With a standard virtual server your connection would be automatically rejected.

     

     

    To remain in fastL4 and use this iRule should switch your virtual server in assisted mode for the PVA which should still me more efficient than a standard virtual server

     

     

    You can have a look at this sol to understand the difference between the different vs: Click here