Forum Discussion
Narendra_26827
Apr 17, 2012Nimbostratus
Universal Persistence Issue
Hello, We have an custom iRule in which we are doing universal persistence on the value present in the http header. The iRule is : when HTTP_REQUEST { ...
hooleylist
Apr 17, 2012Cirrostratus
Hi Narenda,
Can you try this with persistence set to none for the last pool and additional debug logging? Can you also add a OneConnect profile to the virtual server? If you're using SNAT you can use the default OneConnect profile with a /0 source mask. If you're not doing serverside source address translation, create a custom OneConnect profile with a /32 source mask and add that to the virtual server.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/api/channel*" {
pool "umps-gus1-chan-pool"
persist uie [HTTP::header "orgId"] 300
log local0. "[IP::client_addr]:[TCP::client_port]: Using umps-gus1-chan-pool"
}
"/api/presence*" {
pool "umps-gus1-prsn-pool"
persist uie [HTTP::header "orgId"] 300
log local0. "[IP::client_addr]:[TCP::client_port]: Using umps-gus1-prsn-pool"
}
default {
pool "umps-gus1-nginx-pool"
log local0. "[IP::client_addr]:[TCP::client_port]: Using umps-gus1-nginx-pool"
persist none
}
}
}
when LB_SELECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: Selected [LB::server]"
}
when SERVER_CONNECTED {
log local0. "[IP::client_addr]:[TCP::client_port]: Connected: [IP::server_addr]:[TCP::server_port], [LB::server]"
}
Aaron
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