We have 2 squid servers (each one with a public IP) and 2 web servers.
We have 2 DNS records published so users will load balance across the 2 squid servers, but how do I load balance the squid servers across the 2 web servers?
for example, users go to www.test.com
they arrive at either cache1 or cache2.
How do I tell cache1 to load balance between web1 and web2? same with cache2?
We are doing this through multiple DNS entries which our local DNS server respond with both web server IP addresses; but what happens if one web server goes down?
How can I tell squid to load balance across multiple web servers for the same domain and if one of the web servers go down to easily take it of the configuration? We have implemented round robin DNS but the problem is that if a server goes down DNS won't know about it and even if we remove it from DNS the cache server will have that IP address in dns cache
What's the better way to do this?