Forum Discussion

lucadentella_55's avatar
lucadentella_55
Icon for Nimbostratus rankNimbostratus
Jun 30, 2008

BigIP 9: Clear RAM cache?

Hello!

 

 

I'm working with a BigIP (version BIG-IP 9.4.4 Build 73.1 Hotfix HF1).

 

I need a way (best using a script, I've already written a script to enable/disable nodes during nightly deployes) to clear RAM cache, as when we change static contents on web servers behind F5, clients still reiceve old versions of pages/images.

 

 

A workaround I'm using is to change, after migration, HTTP profile in our virtual servers.

 

 

Thanks!
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    Hi,

     

     

    You could use a bigpipe command to clear the existing entries from the command line. You can check the 'b profile http help' output for details on the commands. Something like this might work to clear all entries:

     

     

    b profile http http_profile_name ramcache entry all delete

     

     

    Aaron
  • hoolio's avatar
    hoolio
    Icon for Cirrostratus rankCirrostratus
    It looks like iControl provides this functionality as of 9.0.5. I haven't used these methods before though so I don't know if there is anything special to be aware of.

     

     

    http://devcentral.f5.com/wiki/default.aspx/iControl/LocalLB__RAMCacheInformation.html

     

     

    Aaron
  • Hi Aaron!

     

     

    Update: I was able to write a perl script to call "evict_all_ramcache_entries" which seems to work fine.

     

    My boss asked me to find a way to clear cache only for a single http_profile, like the shell command you suggested.

     

     

    In iControl, VirtualServer object, I can't find a suitable method:

     

    http://devcentral.f5.com/wiki/default.aspx/iControl/GlobalLB__VirtualServer.html

     

     

    Am I missing anything or is it still unimplemented in iControl?

     

     

    Thanks for your support!
  • I'd suggest posting that question to the iControl forum, it will get greater scrutiny there.
  • you're right! thanks

     

     

    http://devcentral.f5.com/Default.aspx?tabid=53&forumid=1&postid=25637&view=topic