O'Reilly logo

MySQL™ and JSP™ Web Applications: Data-Driven Programming Using Tomcat and MySQL by James Turner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required