Forum Discussion
Delete Persistence record by iRule command
Hi Francis,
the option "Match Across Services" allows you to use shared persistence records, if the involved virtuals server and/or pool members (of the same pool) are sharing the same IP addresses.
To be clear:
If the individual virtual servers are pointing to the same pool, you would see just a single persistence record getting created for each clients.
client_addr -> virtual address:* -> pool_a -> node_a:*
If the the virtuals using multiple or independent pools, each pool would still have its own persistence record.
client_addr -> virtual address:* -> pool_a -> node_a:*
client_addr -> virtual address:* -> pool_b -> node_a:*
The command
persist delete source_addr [IP::client_addr] would not delete all persistence records for the given client_addr. It would just delete the records related to the current session.
client_addr -> virtual address:* -> pool_a
or
client_addr -> virtual address:* -> pool_b
To remove additional records outside of the current session, you may pass additional options to the
[persist] command. The options are...
persist delete source_addr [list [IP::client_addr] any virtual]
persist delete source_addr [list [IP::client_addr] any service]
persist delete source_addr [list [IP::client_addr] any pool]
persist delete source_addr [list [IP::client_addr] any]
... or even a combination of those ...
persist delete source_addr [list [IP::client_addr] any service any pool]
In addition its noteworthy to mention, that the
[persist delete] command will only delete a single record per execution. So if you need to remove more than one record, then you have to use a [while], [for] or [foreach] loop.
Hope this helps...
Cheers, Kai
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