Let me answer inline.

On Mon, Nov 17, 2014 at 2:48 PM, Yosef Amir <amir.yo...@comverse.com> wrote:
> Will HAProxy keep 10.0.0.1 session (since the session time out 7 minutes-
> not expired) for the second request from the HTTP client ?

an incoming connection won't trigger a name resolution.
the name resolution is simply used to update a server's IP address
upon time without restarting HAProxy.

> How HAproxy test / health check ips of exist sessions when configured
> working with DNS?

I've already explained this twice. I might be not clear enough.
Let me rephrase:
- server's health check triggers name resolution (after a 'valid'
period timeout has expired)
- if the IP address currently affected to the server is found in the
DNS response, then no changes
  otherwise, HAProxy will apply the first IP address returned by the DNS server

> I guess that new session will get ip from the latest DNS response by health
> check i.g 10.0.0.4, right ?

no, if the DNS server changes its response, it means the server has
change its IP address.
existing sessions will time out while new ones will be established to
the new IP.

It doesn't affect persistence at all.

Baptiste

Reply via email to