Forum Discussion

ed_vanpetten's avatar
ed_vanpetten
Icon for Nimbostratus rankNimbostratus
Feb 04, 2010

Deleting a member from a Pool from an irule

I have an application which uses Cookie Persistence, which means that you can't stop the traffic flow to a pool member without removing the member from the pool - deactivating it doesn't work.

 

 

In order to stop the flow of traffic to one pool member at a time, I need to do the same thing from within an irule that a command like "bigpipe pool member delete" does from the command line. And, of course, to re-add the member when I have completed teh things that I need to do with it out of the rotation.

 

 

I found the TCL "exec" command, but the irule editor (which rocks, btw) bars its use with 'command is disabled: "exec"'.

 

 

Is there any way to either remove a pool member from a pool or to execute the bigpipe command from within an irule to that end?

 

 

Thanks in advance for the help.

 

1 Reply

  • This is by design, for pretty obvious security reasons. Have you considered doing something like:

     

     

    1) Check if the pool members are active. If so, send the traffic on.

     

    2) If not, delete the persistence cookie, re-select a member, and re-insert the cookie.

     

     

    On the surface this may meet your requirements but I could be wrong.

     

    -Matt