Forum Discussion

_Dmi_'s avatar
_Dmi_
Icon for Altostratus rankAltostratus
Nov 17, 2023
Solved

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.

1 Reply

  • 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.