Forum Discussion
universal protocol persistence
We are having one iRule which is used to persist (Universal persistence) both http and websocket (ws, wss) protocols persistence.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/api/channel*" {
pool "istumps2-chan-pool"
persist uie [HTTP::header "objectId"] 300
}
"/api/presence*" {
pool "istumps2-prsn-pool"
persist uie [HTTP::header "objectId"] 300
}
default {
pool "istumps2-nginx-pool"
persist none
}
}
}
Somehow for the above two (http & ws or wss) protocols the request are going to different nodes in the pool. For troubleshooting we had added the log statements in the above iRule to confirm this behaviour.
Is it possible that we can persist these connections both http and websockets to the same node in the pool.
Thanks in advance.
- Richard__HarlanHistoric F5 AccountIn the persist profile there are some check boxes about match across pools and match across services.You should be able to check match across pools and as long as the same members are in the pool it should send both requests to the same member.
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