Forum Discussion
iRule variable
Hi All,
I need variable which can be set at RULE_INIT and can be modified outside of the RULE_INIT. It must be propagated to each TMM instance.
Which type of variable i can use?
I need variable as flag which must be the same for all connections and can be fodified.
I think you will need to use the session table to store global variables. However, when using a session table there's no need to use RULE_INIT because you can set it any time you want.
See: https://my.f5.com/manage/s/article/K13033
If you need to share non-static global data across CMP-enabled virtual servers, you can use the session table to store and reference the data. Session table data is shared among all TMM instances. Using the session table requires more operational overhead, but the benefit of preserving CMP processing for the virtual server typically outweighs this impact.
I think you will need to use the session table to store global variables. However, when using a session table there's no need to use RULE_INIT because you can set it any time you want.
See: https://my.f5.com/manage/s/article/K13033
If you need to share non-static global data across CMP-enabled virtual servers, you can use the session table to store and reference the data. Session table data is shared among all TMM instances. Using the session table requires more operational overhead, but the benefit of preserving CMP processing for the virtual server typically outweighs this impact.
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