Forum Discussion

zak_thompson_86's avatar
zak_thompson_86
Icon for Nimbostratus rankNimbostratus
Sep 04, 2007

Simple 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.
  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    I'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
  • 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_12's avatar
    Colin_Walker_12
    Historic F5 Account
    If 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