custom DNS based load balancing
Posted on 2006-10-29
I have N content servers at different providers that can each serve up to 50mbps of traffic. I want to distribute incoming requests equally so that they each get about 1/N of all incoming requests. The margin is 10%, so each node should get between 0.90/N and 1.10/N of all requests.
One scalable solution I'm considering is using our own custom DNS server. Each query will return the A record for a randomly selected node.
My question to you guys is: do you think this scheme will help achieve the distribution accuracy I'm looking for, given a large number of requests? If so, are there any premade (open source) packages to achieve this and which TTL would be ideal?