473,396 Members | 1,921 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

largest php site

What is the largest site that use PHP?
By large site I mean a havy trafic site?
How do you scale up a php site when you have a lot of traffic?
Jul 17 '05 #1
4 2406
"mickeyg" <mi********@verizon.net> wrote in message
news:KQ8le.21$zb.10@trndny02...
What is the largest site that use PHP?
By large site I mean a havy trafic site?
Don't quote me on this, but I believe Yahoo use alot of PHP
How do you scale up a php site when you have a lot of traffic?


http://talks.php.net/show/perf_tunning

That should get you started.

HTH
Jul 17 '05 #2
There are a number of ways to scale. There are several factors to consider
on the network level and on the application level, some of which are:

1. The load on the php engine - how much processing is required per visitor,
what are the respective frequencies of different processing tasks, and how
many concurrent users will you have? For most applications, server and
application optimization are sufficient (Zend Caneveral or Zend Optimizer,
efficient application code). However, optimization will only buy you one
order of magnitude, and there are those situations where this is
insufficient. In such cases, hardware solutions must be found. The first
step is to use state-preserving load balancing hardware and several
identical application servers. You will have to separate your data storage
and database server from your application server for this to work, but this
is rarely a challenge.

2. The load on the database - are there many reads? many writes? In many
cases you can cache common read queries - applications that don't have many
writes will scale more easily than applications that store a lot of new
data. You may be able to get away with using a single MySQL database server
and a SAN; the next level would probably be a more versatile enterprise
database solution. Don't give up on MySQL though, it has a lot of potential
and there are scalable solutions emerging these days. Check the MySQL web
site - I believe there was a seminar a couple of months ago about such a
solution. It's not free, but niether is Oracle.

3. Database design. It is imperative that you design your database well.
This is not difficult, but happens so rarely that I must mention it. The
statistics are shocking. If you are developing a scalable application that
uses a database, I implore you to read (or review) one or two good books on
relational databases. A good start is "Relational Database Design Clearly
Explained, Second Edition" by Jan L. Harrington, with whom I am not in any
way affiliated.

4. Storage - how much data do you plan to store/collect/use per visitor? If
each visitor has just 10MB of storage, and there are 100,000 active users,
you will need a terrabyte of storage - which may be possible on a single
machine. But how often are the files accessed? If each user accessed just
500kB per day, you would need 1.5 terrabytes of bandwidth per month. To give
you some perspective, a T1 line (at $500-700 per month) would yield some
500GB of total bandwidth. The result - you may need a bandwidth solution
before a you need a storage solution.

5. Type of access. It may be that many scripts or files (or more challenging
still, the same script or file) are accessed simultaneously at a particular
time and rarely at others - this interesting scenario can be seen in online
ticket sales for events such as concerts or games. Several solutions exist,
and vary significantly in effectiveness and reliablity. You will need to
account for peaks in bandwidth and ensure that there is sufficient slack in
the bandwidth available to you to handle the overload. Application
processing during such peaks may also pose problems.

As you can infer, the cost and solution can vary substantially depending on
your application, and it is only through rigorous analysis of a specific
situation that an ideal solution can be found. Often exact usage metrics are
not known prior to deployment and in such cases historical analysis of
similar functionality must be used to quantify predictions. Moreover, in
these situations measures must be taken to verify the conformity of
estimates to actual usage and alternative infrastructures must be designed
for rapid deployment in the event of unpredictable variations from the
projected load.

Do you have a site that needs scaling? We would be happy to consult with you
to determine if this is indeed the case and if so what the best course of
action is. Scalable systems are not inexpensive, but the cost per visitor
tends to be a lot lower with larger systems - I challenge you to find anyone
who thinks that $25k per month is a major cost when there are a million
people who frequent their web site.

ECRIA
http://www.ecria.com
Jul 17 '05 #3
On Thu, 26 May 2005 00:34:50 +0000, mickeyg wrote:
What is the largest site that use PHP?
Who knows?
By large site I mean a havy trafic site?
Renault's uk site seems to cope ok running php

http://toolbar.netcraft.com/site_rep....renault.co.uk
How do you scale up a php site when you have a lot of traffic?


Find out where the bottlenecks are and then address them.

Anything that doesn't have to be dynamic, convert to static html.

Avoid doing on the fly graphics generation if possible.

Ensure programming libraries are cleanly coded and only load the code that
is really needed to produce a page.

Put graphic/flash etc files on different servers.

Buy a faster server with dual processors more memory, faster disks.

Split the application and database onto different servers.

Ensure database design is efficient, follow third form normalisation
rules.

Learn to use stored procedures and views instead of simple SQL statements.

Ensure tables are correctly indexed.

Ensure quiries only return nessecary rows.

Minimise the number of SQL queries used per page.

Use a website testing tool to analyse how your site reacts to varying
levels of requests.

Avoid using network functions such as DNS lookups, RSS readers, FTP etc.
If you do need to access remote sites have a management program that
operates seperately from the main site and cache the results.
Jul 17 '05 #4
The difficult question is "how do I get a lot of traffic?" I once
worked on a site for a government agency. They were anticipating
"millions" of visitors. On a good day we get maybe ten.

Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Mudge | last post by:
This thread is hereby dubbed PHP Purpose, or PHPP. It has the following purposes: 1. To bring together PHPers and programmers around the world to become organized. 2. To dicuss purposes of...
2
by: news1.on.sympatico.ca | last post by:
what is the literal for the largest character value in java? ie. 111 in binary is representing 7 (4+2+1) <-- this is 3 bit now java is 32 or 64 bit what is the largest character value ? ...
2
by: Keke922 | last post by:
I have to write a program that allows the user to enter a series of integers and -99 when they want to exit the loop. How do I display the largest and smallest number the user entered?
20
by: Rajesh | last post by:
Hello Everybody, Can anybody help me to write a C program for finding the second largest element in an array. without using any sort algo. The array may conatin duplicate elements. The algo...
19
by: ramu | last post by:
Hi, I have, suppose 1000 numbers, in a file. I have to find out 5 largest numbers among them without sorting. Can you please give me an efficient idea to do this? My idea is to put those numbers...
3
by: HEMH6 | last post by:
Who can help solve this problem??? Finding the Largest Value (a) write a function, largest(), that returns the largest value in a signed integer array. The array and its size are passed as...
38
by: bele_harshad2006 | last post by:
how can i pick up largest no from 5 rows by 5 column matrix????
4
by: sonia.sardana | last post by:
I know how how to retrive the largest & second largest salary. tell me how to retrive the 3,4,5,...............Largest salary. Create table empl(empid int, empname varchar,salary int) insert...
8
crystal2005
by: crystal2005 | last post by:
I am writing a program that receive maximum of 25 line of string each has 20 characters maximum. The program will print the smallest and the largest string. However the following program gives me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.