Stack overflow, serverfault and co will also pile on ideas..
To scale, it boils down to this
1) Cache everywhere. For example, each of the following entries is a caching/service layer (and reduces the amount of traffic to the next layer)
 -  Use reverse proxies.
 - Use dedicated servers for static media (nginx or lighttpd)
 - Use memcached instead of hitting the db.
 - Use as much memory in the db as you can afford
2) RAM in the db helps alot. Of course, this requires you to tweak your db settings, index your tables, set up a replication service where readers read from replicated slaves... etc
3) Build you service to share nothing. (Are all your requests hitting the db? If so, this will eventually be your bottleneck) This will allow you to scale out.
4) Automate everything.... Really!
 -> Your code should be in a git/hg repo somewhere, .
 -> You should have a build environment  (or at least unit tests).
 -> You should deploy your application in an audit-able manner (package it into whatever archive your os uses).
 -> Use cfengine et al to help you with these tasks.
5) YCFIIYCSI (You can't fix it if you can't see it). I can only show you the door: <door>http://graphite.readthedocs.org/en/latest/index.html</door> and a window: <window>http://square.github.com/cubism/</window> into a new world :)


See:
http://serverfault.com/questions/272567/setting-up-a-high-speed-load-balancing-server-cluster-web-db-nfs



On Mon, Jul 9, 2012 at 8:32 PM, Calvin Omari <calvinebarongo@gmail.com> wrote:
@peter Thanks so much

On Mon, Jul 9, 2012 at 3:45 PM, Peter Karunyu <pkarunyu@gmail.com> wrote:
@Calvin,

Once upon a time, there was a discussion on this list on how KNEC can optimize their setup for checking results, that thread contained a wealth of information on performance issues from a number of skunks, I highly recommend you dig up that thread and learn from it.

 

On Mon, Jul 9, 2012 at 2:27 PM, TheMburu George <themburu@gmail.com> wrote:
Some concerns here:

Is it for production purposes, if so you would consider having MySQL in its own separate server, then DB is tweak and scarifice options for tables mostly on engines i.e. MYISAM & INNODB choose on application and access or load.
To improve perfomance consider having only the necessary services running and disable the unnecessary ones (this is also for security purposes - chkconfig will assist here)
Another option would change the runlevel to 3 if defaults to 5 with GUI.

Those are some of the options off my head...

./TheMburu


On Mon, Jul 9, 2012 at 1:21 PM, Calvin Omari <calvinebarongo@gmail.com> wrote:
Hi Skunks,
 
 
How ca I optimize the performance of a Lamp server to increase it sperfromance
 
Please if you can give in terms like
1.memory (What is the optmimum memory user and what is cirtical)
2.CPU Usage
3. Config files (my.conf and Appache2d,conf
 
 
With Kind Regards
./Cal


--
Our greatest fear is not that we are inadequate,
but that we are powerful beyond measure.
It is our light, not our darkness, that frightens us.

Calvin Omari Systems Software Developer
http://www.facebook.com/barongo

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



--
Conservatism is the adherence to the old tried against the new untried.

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



--
Regards,
Peter Karunyu
-------------------


_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



--
Our greatest fear is not that we are inadequate,
but that we are powerful beyond measure.
It is our light, not our darkness, that frightens us.

Calvin Omari Systems Software Developer
http://www.facebook.com/barongo

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke