Forum Discussion
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
- Robert_47833
Altostratus
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
- Robert_47833
Altostratus
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)
- 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
- Robert_47833
Altostratus
how to contact Joe?
- 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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com