On Thu, Apr 18, 2013 at 1:13 PM, <[email protected]> wrote:

> Hi All,
>
> We have HAPROXY 1.4.22 running in our environment, one issue that I have
> encountered during testing concerns source IP address affinity, we are
> trying to achieve a form of Sticky Session persistence. I noticed that if
> we have the following configuration in place then we experience problems
> with web pages not loading:
>
> #---------------------------------------------------------------------
> # NSD which proxys to the NSD Application Servers on port 8081
> #---------------------------------------------------------------------
>
> frontend http-nsd
>     mode http
>     bind *:8081
>         default_backend nsd
>
> #---------------------------------------------------------------------
> # round robin balancing between the various backends
> #---------------------------------------------------------------------
> backend nsd
>      mode http
>      balance     roundrobin
>       cookie SERVERID insert indirect nocache
>       server server01 xxx.xxx.xxx.xxxx:8081 check cookie s1
>       server server02 xxx.xxx.xxxx.xxx:8081 check cookie s2
>
> If we then change the balance mode to source then the web page loads
> successfully.
>
> Is this the correct way to be achieving 'stickiness' or is there a better
> more elegant way of achieving this?.
>
>

Using cookies for persistence is certainly common and usually works but
without knowing more about the specifics of your problem I don't think
anyone can help.  "pages not loading" is not enough detail.

-Bryan

Reply via email to