Forum Discussion
irule help - disable persistence
I have a VS configured with session cookie persistence profile. So all the requests from users & middleware receive session cookie. users receives session cookie is fine but all the requests from middleware routed to only one server in load balancing pool which is not desired. I need to configure a irule so that all the POST messages from middleware should not receive a cookie & get loadbalanced more efficiently. This is the i-rule i came up with. Would it work ?
when CLIENT_ACCEPTED {
switch [IP::client_addr] {
"10.27.15.231" { persist none }
"10.27.15.236" { persist none }
"10.27.15.238" { persist none }
}
}
1 Reply
- Simon_Blakely
Employee
That should work, although you might want to create a data-group of type address, and use class match
when CLIENT_ACCEPTED { if {[class match [IP::client_addr] equals "middleware-ip_dg"]} { persist none } }
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