HAProxy: session stickiness triggered by response header possible?
Posted
by
zoli
on Server Fault
See other posts from Server Fault
or by zoli
Published on 2012-09-08T00:45:45Z
Indexed on
2012/09/08
3:39 UTC
Read the original article
Hit count: 587
I'm investigating HAProxy as a possible replacement for F5. F5 is capable of persisting a session based on a response header value:
when HTTP_RESPONSE {
set session [HTTP::header X-Session]
if {$session ne ""} {
persist add uie $session
}
}
and then route all subsequent requests which contain the same session ID in a header, query parameter, path, etc. to the same machine, eg:
when HTTP_REQUEST {
set session [findstr [HTTP::path] "/session/" 9 /
if {$session} {
persist uie $session
}
}
I'm wondering if this is even possible to do with HAProxy?
© Server Fault or respective owner