Forum Discussion

milo's avatar
milo
Icon for Nimbostratus rankNimbostratus
Oct 02, 2012

Use a table instead of a cron job

I have source address persistence configured on a virtual server with a 15 minute timeout for a few caching servers. I'm using a cron job, "b persist pool www.abc.com delete", to force a new load balancing decision every 15 minutes to ensure traffic is distributed to all servers in case a server goes down temporarily. Is there a way to use the table commands to perform this same action? It looks like there should be, I'm just having a problem understanding how to delete the connections every 15 minutes using the table commands.

 

  • i never tried session/table command to delete persistence record. anyway, i think you may create a new virtual server with session/table command irule, create a pool with virtual server as a member and then assign health monitor with 15 minutes interval to the pool. so, health monitor packet will trigger the session/table command irule.

     

     

    by the way, since you are load balancing cache servers, don't you want to use carp instead of source address persistence?

     

     

    sol11362: Overview of the CARP hash algorithm

     

    http://support.f5.com/kb/en-us/solutions/public/11000/300/sol11362.html
  • milo's avatar
    milo
    Icon for Nimbostratus rankNimbostratus
    Using CARP sounds like a great idea. Thanks for the information!!