DNS Priority Loadbalancing

This evening I was fiddling around with the new proxy setup at work. We use DNS roundrobin to spread the load among our two proxy servers. I was wondering if there was any possibility to specify priorities for these 2 servers. As they are different in specifications. Then the following idea came into my mind:

- Give the 2 A records for proxy different TTLs
- e.g. proxy1 has a ttl of 600 and proxy2 a ttl of 1200
- proxy2 is the big box, proxy1 the smaller box

Why will this give priorities ? Well clients that resolve proxy and use proxy1 will refetch the proxy record after 600 seconds. And thus making use of this proxy for a minimum of 600 seconds. The same is true for proxy2 but this proxy will be used for a minimum of 1200 seconds. As the selection of A record for proxy is almost random, this will provide some sort of prioritizing.

I've configured this setup for our proxy round-robin setup and will see the results tomorrow as all customers start bashing our proxy servers. I'll keep you posted!

UPDATE 07-04-04

It seems the current TTL settings of 600 for proxy1 and 1200 for proxy2 don't have the desired effect. Loadbalancing seems almost 50/50 at the moment. I have now adjusted the TTL's to 600 for proxy1 and 3600 for proxy2. Tomorrow evening I'll have more info if this approach is effective.

UPDATE 09-04-04

Ok, using TTL's for DNS prioritizing does NOT work. Our proxies are both evenly loaded (approx 5% difference). So using TTL's for DNS priority loadbalancing will not work in practice. I'll write a new article summarizing this issue after I get back home.
Do you use any type of switching equipment to do the load balancing? The reason I’m asking is one of my current projects at work is installing Cisco’s CSS 11500 series switches to do load balancing for a cluster of windows servers for Web applications and I am looking for as much info as I can on this, as Content Switching is not a strong point of mine.
Thanks!

Jason () (URL) - 15 April '04 - 05:50

Nope, we aren’t using any loadbalancing hardware yet. Pure DNS roundrobin with low TTL’s to remove entries when a machine dies. In the future we may try some hardware loadbalancing like the Foundry ServerIron, the F5 BigIP or an Alteon box. Also Riverstone Router Switches are good loadbalancers according some people I know.

Dimmu () (URL) - 15 April '04 - 08:12

Currently we are using an Alteon 180 loadbalancer to balance the load over our 2 proxy servers. This works just fine even concerning prioritization.

Cliff () (URL) - 10 March '05 - 10:51

How about adding multiple entries in DNS for the box that will take the heaviest load? 10 entrise for heavybox, 3 entrise for light box. Should work.
Erik

Erik Schlytter-Henrichsen - 13 September '06 - 20:53


Name:  
Remember personal info?

Email:
URL:
Comment:Emoticons / Textile

  ( Register your username / Log in )

Notify: Yes, send me email when someone replies.  

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.