Forum Discussion

Robert_47833's avatar
Robert_47833
Icon for Altostratus rankAltostratus
Mar 25, 2014

Does iControl have cache

hello,team does iControl have cache? such as ,client call api1 ,which get result 1 after 2 seconds,client call api1 again,F5 respond with 1 which is stored in F5 memory or cache?

 

8 Replies

  • Hi Robbie

     

    The information you get is taken from the memory. I've never gotten cached information on the iControl calls. Even the changes you make are stored in memory and has to be written to disk with another iControl call.

     

    /Patrik

     

  • The iControl server side code was implemented to only update the running configuration in memory. Unlike the GUI, which does a disk flush each operation, we found that the overhead of doing that for large configurations was too long and effected API based applications negatively. The best practice is to make the various changes you want and then issue a System.ConfigSync.save_configuration() method to flush it to disk.

     

    -Joe

     

  • hmm,this api call is to get pool status

     

    Develpoer found that in 1th second,pool A status is green then we shutdown pool A,the issue an iControl call,but pool A status is still green.....

     

  • Did you shut down the pool member with the help of a failed monitor, or did you disable it? A pool member can be available (green) while disabled.

     

    /Patrik

     

  • it is in our prod env

     

    we use icontrol to get status of pools and display them in webpage

     

    yesterday when I use monitor to make pool A down,however,I refresh the webpage,pool A is still green(refresh webpage will make a new api call to get pool status from F5 LTM)

     

    • Patrik_Jonsson's avatar
      Patrik_Jonsson
      Icon for MVP rankMVP
      And you refresh just a second after marking it as down? All the changes or checks I have made with iControl so far has been instantaneous. Perhaps Joe can provide an answer to this, but I can't. Sorry. /Patrik
    • Patrik_Jonsson's avatar
      Patrik_Jonsson
      Icon for MVP rankMVP
      Send a message through his profile or wait for him to see this (he probably subscribes to the thread since he answered it earlier). Check out Joe Pruitts profile above.