Forum Discussion
Yado_52136
Nimbostratus
Nov 19, 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 to supervise first. (When FLG is changed into "1", it escapes from a loop)
Next, iRules-B is started by Communication B and FLG of a global variable is changed into "1." (Communication A escapes from a loop at this time)
Is performing the above processings possible?
Under the present circumstances, although iRules-A is that which moves satisfactorily (the loop of the communication A is carried out), while carrying out loop processing, iRules-B does not move. (After processing of Communication A is completed by timeout etc., iRules-B moves)
Can't iRules-A and iRules-B be moved simultaneously?
14 Replies
- hoolio
Cirrostratus
Do you want rule-A to loop constantly until an event happens in rule-B on a different virtual server? I think technically, you could do this using a global variable which both rules reference. I have no idea what impact this would have on TMM though. Are you able to test this? If so, can you post the rules you're using? - Yado_52136
Nimbostratus
Thank you for the answer. - Joe_Hsy_45207
Nimbostratus
- Yado_52136
Nimbostratus
Thank you for the answer. - Joe_Hsy_45207
Nimbostratus
Are you looking to verify that you've configured the F5 device correctly such that it is effectively controlling the bandwidth? If so, I think the virtual server statistics (and pool stats) may give you enough data to calculate actual bandwidth. Specifically, client bytes in and out and server bytes in and out. - Yado_52136
Nimbostratus
Thank you for the answer. - Joe_Hsy_45207
Nimbostratus
Sounds llike you want the application server to decide what bandwidth reservation is granted but you want to use an iRule on the BIG-IP to actually grant or reject the request? Is it really a bandwidth reservation or do you just want to dynamically enable and disable incoming requests at the BIG-IP? - Joe_Hsy_45207
Nimbostratus
Oops - posted prematurely. The iRule could be something like the following: - Yado_52136
Nimbostratus
Thank you for the answer. - Joe_Hsy_45207
Nimbostratus
I 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.
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