Forum Discussion

Andy_Herrman_22's avatar
Andy_Herrman_22
Icon for Nimbostratus rankNimbostratus
Jul 10, 2006

Remove persistence value from table

I have a situation where our servers (running Tomcat) will need to use iControl to remove a particular value from the persistence table. Basically, when a particular application instance is closed we want it to tell BIG-IP to remove the persistence record for the UID of the instance, so if a new request for that same UID comes in it can be load balanced again (since it would create a new instance). I haven't been able to find the methods I'd need to use in the iControl SDK for this. Does anyone know how I could do this (or if it's even possible)? Thanks!

2 Replies

  • From what I see, the only way to remove persistence records is at the Pool or Virtual Server level. I'll double check, but I don't believe there are methods to remove an individual persistence record based a single record identifier.

     

     

    -Joe
  • Yea, both the Pool and VirtualServer objects seem to have delete_persistence_record methods, but they seem to delete *all* records for the pool/vs, not just an individual one.

     

     

    The only idea I've had for a way to do this would be to make an iRule that detects a specially crafted URI and then uses the `persist delete` call. I'd much rather use iControl to do this though as it seems much cleaner.