469,927 Members | 1,901 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,927 developers. It's quick & easy.

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.

Jun 11 '07 #1
3 8337
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 - sc*********@the.Spamtrapexample.nl
[Remove the lowercase part of Spamtrap to send me a message]

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

Jun 11 '07 #2
On Jun 11, 2:18 pm, Schraalhans Keukenmeester
<Schraalh...@the.spamtrapexample.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.Spamtrapexample.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...

Jun 11 '07 #3
On Jun 11, 6:36 pm, Anthony Smith <mrsmi...@hotmail.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_balancer
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.

Jun 11 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Shabam | last post: by
2 posts views Thread by Christopher D. Wiederspan | last post: by
10 posts views Thread by GeekBoy | last post: by
6 posts views Thread by Andrew Robinson | last post: by
2 posts views Thread by RahulBose | last post: by
1 post views Thread by m.a | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.