Forum Discussion
nickzml_306327
Nimbostratus
Jan 17, 2017Hash Persistence based on HTTP Header "SV" tag
Hello, I am looking for the way how to implement the hash persistence based on http header "SV" tag with iRule. We have one virtual server with few servers mapped to one pool.
Currently we are ...
Jan 17, 2017
Worked like a charm. Here's how it looked like on my unit:
curl -k -H "sv: test" -H "Host: www.mysite.com" https://VIP-IP/en/
Sys::Persistent Connections
universal test VIP-IP:443 SERVERIP:4000 (tmm: 0)
Total records returned: 1
The default timeout is 180 seconds. Are you sure you tested before that?
If the sv header is set in the response as well as the request, please add an irule event from for
when HTTP_RESPONSE like this:
when HTTP_REQUEST {
if { [HTTP::header exists "sv"] } {
persist uie [HTTP::header value "sv"]
}
}
when HTTP_RESPONSE {
if { [HTTP::header exists "sv"] } {
persist add uie [HTTP::header value "sv"]
}
}
/Patrik
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
