Load Balancing

Round-Robin DNS

One popular choice for load balancing is round-robin DNS. In a round-robin competition, each player has a match against every other competitor. Similarly, with this method of load balancing, you set up your DNS server to deliver more than one possible IP address for the same domain name. Each time a DNS server is queried, it hands out the next IP on the list and then cycles back again to the first entry. Because a local machine asks for the address only once, it goes back to the same machine on each subsequent request.

Round-robin DNS has the advantage that it's cheap and easy to set up. The problem with it, however, is that it doesn't deal well with situations in which one server is getting overloaded or dies. ...

Get MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.