If your concern is processing power, distribute your load through many servers (you can use a load balancer, apache, lighttpd, nginx or cherokee) and use mysql or a cache backend for your session storage.
If your concern is database usage (IO), cache most of your data (memcached would be the best here). You can also use a master and slave database setup. Make all of your reads from your slave and your writes to your master.
If you distribute your load between servers, you will need to make sure files are synchronized, If you have file upload you need to make sure that you force users to upload to one server and then rsync your data out from that server to your others.
You can also host your data off of an NFS mount so that you don't need to synchronize your data.
On Wed, Feb 8, 2012 at 9:03 AM, byqsri <marco.rizzetto@gmail.com> wrote:
Hi
I have a web application where users can uplaod file,images and work
with some datas in db
I use CakePHP ,MySQL,Memcache.
I have a server with Apache and for the file's uploading ( I use Media
Plugin of David Persson).
I have another server with MySQL
For the moment I have 500 users and all works fine.
My problem is that in the next months I can have a very fast increment
of users and this configuration is not sufficient for me.
I have tried to search on Google about how scaling a web app with
CakePHP with scaling of MySql and scaling CDN but I didn't find
anything really concrete I would ask if someone with experience about
this if he can suggest to me something resources (books,articles,code
suggestions) ffrom which I can begin to work.
Many Thanks
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment