Forum Discussion
jan_de_wachter_
Nimbostratus
Feb 24, 2014LTM - irule : how can we set mirrot persistence in an irule
I am a real novice in F5. Until now we alway worked with ACE.
We should switch pool and sticky definitions depending on the HOST name:
when CLIENT_ACCEPTED { Save the name of the VS default pool set default_pool [LB::server pool] } when HTTP_REQUEST {
switch -exact "[string tolower [HTTP::host]]" {
"acc-search.infrabel.be" { pool /Common/a1185-acc-search.app/a1185-acc-search_pool
persist none }
"acc-mediaservice.infrabel.be" { pool /Common/a1185-acc-mediaservice
persist source_addr 255.255.255.255 180 }
"acc-my.infrabel.be" { pool /Common/a1185-acc-my
persist none}
"acc-officeweb.infrabel.be" { pool /Common/a1185-acc-officeweb
persist source_addr 255.255.255.255 180 }
default { pool $default_pool }
}
}
We would not also set mirror persistence . The backup LB should take over sticky definitions whwhen needed.
How can we do this?
I can create a new (own) persistence profile with all in it. But how can we activate it in a our irule (using the GUY)
Thanks
No RepliesBe the first to reply
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