473,471 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 8632
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Max | last post by:
Frankly, i need session variables to persist regardless of load balancing. My hoster says save them in files, yuk. Are there any other thoughts The problem is that the session variables are lost...
2
by: yagish | last post by:
Hi Techies, Am really new with the Oracle 9i Forms and am searching for a way to perform Load Balancing in Oracle 9i Forms Application. Its not a J2EE application, so cannot go the OC4J way. I...
3
by: Shabam | last post by:
When a web application becomes overloaded with traffic, one can offload it by load balancing and clustering the front end web servers. What happens when the back-end MSSQL database becomes...
2
by: Christopher D. Wiederspan | last post by:
I'm wondering if anybody could give me some tips on a good webfarm load-balancing solution for an ASP.NET application. Here's the rundown: we've got 3 identical servers that each have identical...
10
by: GeekBoy | last post by:
Okay, I have two identical web servers running Windows 2003 web server. I have an ASP.NET application which runs great on one of them. Dedicated IP address, behind our firewall, etc. Everyone's...
6
by: Andrew Robinson | last post by:
I am running two servers with a hardware network load balancing device. I know that to share session information between the two servers I need to implement some type of SQL based session...
0
by: HK | last post by:
I'm wanting to get rid of a hardware load balancer and just use the Windows 2003 software load balancing with 2003 Server Web Edition. I'm wondering if anyone here uploads ASP.NET code to 2 or...
2
by: RahulBose | last post by:
I am trying to implement Load Balancing but facing some problems: A Web farm usually consists of 2 or more computers, orchestrated by some form of load balancing. Consider my scenario: 1. I...
1
by: m.a | last post by:
Hello, I am looking for a hosting solution for my asp.net application. I found that some ISP stated that session states are not preserved in a load balancing system. As I know, if the asp.net is...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.