Forum Discussion
Yado_52136
Nimbostratus
Nov 18, 2007About the parallel processing of iRules
iRules-A and iRules-B are set as VirtualServerA and B, respectively.
The loop of the communication A is carried out by iRules-A (while sentence), and FLG of a global variable is made t...
Joe_Hsy_45207
Nimbostratus
Nov 21, 2007I would eliminate the loop altogether. If I understand what you're trying to accomplish, you simply need to set a global var to either allow incoming traffic to flow to the application server or to reject or redirect incoming traffic. You should not wait for the application server to decide for each request at request time and wait for that answer. In otherwords, just check the flag and reject traffic or alllow traffic depending on the state of the flag.
And to change the state of the flag, the code on your application server should make an http request to the same virtual server with two different URLs (e.g. http:///bandwidthcontrol_go and http:///bandwidthcontrol_stop) which will toggle the flag by triggering the appropriate section in the iRule.
Hope this does what you need. Again, if your application server can make web services calls, another way is to use iControl to for example enable and disable the node.
//Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects