On Mon, Nov 17, 2014 at 11:37 AM, Yosef Amir <amir.yo...@comverse.com> wrote: > Lets say that the DNS is configure with s1.domain.com which has 5 ips: > 10.0.0.1 > 10.0.0.2 > 10.0.0.3 > 10.0.0.4 > 10.0.0.5 > > The DNS respond for the first DNS query 10.0.0.1 for the second 10.0.0.2 and > so on...(roundrobin) > That's mean the for each health check (DNS query) HAProxy will get different > ip. > Probably for TCP mode (stateless sessions) it is fine but I guess it will not > proper configuration for HTTP (statefull sessions), right ? >
Actually, your DNS server will answer with all the IPs, but in different orders: IE, response 1: 10.0.0.1 10.0.0.2 10.0.0.3 10.0.0.4 10.0.0.5 response 2: 10.0.0.2 10.0.0.3 10.0.0.4 10.0.0.5 10.0.0.1 response 3: 10.0.0.3 10.0.0.4 10.0.0.5 10.0.0.1 10.0.0.2 and so on. The IP of the server won't change as long as its current IP belongs to the list. If you think your DNS server has a different behavior, please let me know which one you're using and how it is configured, so I can give it a try. Baptiste