PHP Load balancing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anthony Smith

    #1

    PHP Load balancing

    Can someone point me to a resource or something were I can set this up
    cleanly. I don't want to re-invest the wheel. I just want the most
    common way to do this. I know there is a database option and a non-
    database option. I prefer the none-database option.

    I will have 2 web servers with PHP installed.

  • Schraalhans Keukenmeester

    #2
    Re: PHP Load balancing

    At Mon, 11 Jun 2007 09:36:40 -0700, Anthony Smith let h(is|er) monkeys
    type:
    Can someone point me to a resource or something were I can set this up
    cleanly. I don't want to re-invest the wheel. I just want the most
    common way to do this. I know there is a database option and a non-
    database option. I prefer the none-database option.
    >
    I will have 2 web servers with PHP installed.
    Do you specifically want to balance PHP scripts being executed between
    machines or are you after load balancing the entire web service? The
    latter is easier I'd think. Apache provides the tools, you may want to
    look up "round robin DNS" in Google. (Dunno about IIS's features in this
    area)

    I am not sure how I would fork off parts of a PHP script sensibly to
    another machine in an easy way. Never thought of doing it really.

    HTH

    --
    Schraalhans Keukenmeester - schraalhans@the .Spamtrapexampl e.nl
    [Remove the lowercase part of Spamtrap to send me a message]

    "strcmp('apples ','oranges') < 0"

    Comment

    • Anthony Smith

      #3
      Re: PHP Load balancing

      On Jun 11, 2:18 pm, Schraalhans Keukenmeester
      <Schraalh...@th e.spamtrapexamp le.nlwrote:
      At Mon, 11 Jun 2007 09:36:40 -0700, Anthony Smith let h(is|er) monkeys
      type:
      >
      Can someone point me to a resource or something were I can set this up
      cleanly. I don't want to re-invest the wheel. I just want the most
      common way to do this. I know there is a database option and a non-
      database option. I prefer the none-database option.
      >
      I will have 2 web servers with PHP installed.
      >
      Do you specifically want to balance PHP scripts being executed between
      machines or are you after load balancing the entire web service? The
      latter is easier I'd think. Apache provides the tools, you may want to
      look up "round robin DNS" in Google. (Dunno about IIS's features in this
      area)
      >
      I am not sure how I would fork off parts of a PHP script sensibly to
      another machine in an easy way. Never thought of doing it really.
      >
      HTH
      >
      --
      Schraalhans Keukenmeester - schraalh...@the .Spamtrapexampl e.nl
      [Remove the lowercase part of Spamtrap to send me a message]
      >
      "strcmp('apples ','oranges') < 0"
      I would like to load balance the entire application. It justs seems as
      if this should be common among PHP by now...

      Comment

      • Sjoerd

        #4
        Re: PHP Load balancing

        On Jun 11, 6:36 pm, Anthony Smith <mrsmi...@hotma il.comwrote:
        Can someone point me to a resource or something were I can set [load balancing] up cleanly.
        Load balancing is not PHP-specific, except maybe for session data when
        multiple requests for one user are directed to multiple servers. In
        the simplest case, you put your script on two servers and that's it.
        Some things which might be worth looking into:
        Round robin DNS
        MySQL replication
        mod_backhand
        mod_rewrite load balancing
        mod_proxy_balan cer
        Linux Virtual Server
        SSL offloading
        Zend Platform
        Barracuda load balancer

        As you can see, I am assuming that you are using Linux, Apache, MySQL,
        have enough access and knowledge to the server, use SSL, etc. etc. If
        you do not ask specific questions, you can not expect specific answers.

        Comment

        Working...