SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: load balancing

  1. #1
    SitePoint Zealot
    Join Date
    Jun 2000
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    load balancing

    The horrible world of apache modules:

    When a request hits 'server a', if I want to redirect half of the users to another server while keeping the url the same in the browser, I think I'd use mod_rewrite.
    i.e. I want one website to be using 2 or more servers.

    Am I barking up the right tree? More specifically, do you know what apache directives are needed for this? I've read copious amounts of apache documentation, but there's so much there, and it's not easy. If I can tip-toe around the modules and achieve the desired goal, then this would be great.

    Many thanks if you can assist.

    Regards,

    Jason

  2. #2
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you don't want to do load true balancing where the visitor is direct to the least busy server then a better bet is to look at round robin DNS with Bind.

    Thank you,
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2000
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Interesting thanks - this could provide a short-term workaround.

    For the more involved approach, what's needed please?

  4. #4
    SitePoint Addict
    Join Date
    Feb 2001
    Location
    -
    Posts
    389
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make 2 A records in your DNS server, have "yourdomain.com" point to the server 1 IP address, and have "yourdomain.com" also point to the server 2 IP address.

    - Matt


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •