Load balancing web servers

Posted on 2012-09-04
Last Modified: 2012-09-07
I know next to nothing about load balancing web servers.
I am trying to distribute load of a web app across multiple servers in multiple locations.

Because of the nature of the web app it has to be on a dedicated server (or virtual instance).
It can't be on shared hosting.

My thought is to have one central web server on Amazon EC2 that does nothing but load balancing and then sends the request to one of the multiple servers.

I can't afford to have all the servers at Amazon so I am trying to take advantage of multiple office locations where I can host the web servers at minimal cost.  All web servers would contain same information sync'd up nightly so it wouldn't matter which server a user was directed to.

Does this sound like a potential solution?
If not, can someone suggest a better alternative that would still be cost effective.


Question by:kevinvw1
    LVL 6

    Accepted Solution


    i once tried to configure a simple webserver loadbalancing...
    Have a look on this page... Maybe it is what you are looking for...
    LVL 32

    Assisted Solution

    this is great idea.
    You can't use the Amazon load balancer because your servers are not in EC2. so you will we using a software LB like Apache httpd, or nginx or HAproxy (there are also other open source and lots of commercial ).
    I used apache and HAProxy and both are solid solutions.

    Another option is to use DNS round robin. A simple DNS round robin setup can probably be had at your current DNS service for free.
    A more complex DNS load balancer, with weights and geolocation, and with a heartbeat test, is provided as a service by companies like UltraDNS. I used  their service in a previous incarnation and they are expensive but do deliver.

    Costs for our server in amazon include cpu costs and traffic costs. Storage cost is negligent in your case, unless you decide to store the http logs.

    You will pay for traffic 2X the amount coming into the web site and going out of it.
    Depending on your site's popularity, you may need a server with lots of memory which also can be pretty costly.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
    If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now