Forum Discussion
zak_thompson_86
Nimbostratus
Sep 04, 2007Simple persistence problem
when HTTP_REQUEST {
LB::detach
HTTP::header insert ORIG_CLIENT_IP [IP::remote_addr]
HTTP::header insert X_FWD_IP_ADDR [IP::remote_addr]
pool my-www
persist source_addr 255.255.255.0 3600
}
yet the requests goto every other server on every other request. am I missing somthing? sadly this isn't as simple as the old 4.x code.
3 Replies
- Colin_Walker_12Historic F5 AccountI'm not sure I'm quite clear on what it is you're trying to accomplish the the LB::detach. Could you explain your requirements a little more please?
Thanks,
Colin - zak_thompson_86
Nimbostratus
lb::detatch.. i picked that up off another thread thinking it would help but it doesn't.
i'm dealing with a few php servers that use sessions. so I need to make sure the user returns back to the correct server. pretty simple just need him to return to the server he's been dealing with. - Colin_Walker_12Historic F5 AccountIf that's the case, then all you need is the persistence line. You don't need to add the LB command at all.
Actually, if all you need is simple persistence, then you really shouldn't be using an iRule at all. All you really need is to enable a default persistence profile and you should be set.
Colin
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
