Many Thanks for your answers.
It seems to me that you have experience with how scale a cakephp
system

About DB : I have find this to configure Master and Slaves
http://bakery.cakephp.org/articles/gman.php/2009/01/20/master-slave-support-also-with-multiple-slave-support.
But it seems very simple perhaps there is some hidden complications.
Another question about this : What is the best practise to replicate
the data instantly from Master to Slaves when there is a write
operation?


About CakePHP : What is the best practise to deploy the cakephp code
updates on many servers instantly? Rsync?
Exists a configurable automatic tool to do this?


Many Thanks

On 8 Feb, 17:05, Justin Edwards <[email protected]> wrote:
> If your concern is bandwidth, host all of your static files on a CDN.
>
> 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 <[email protected]> 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 sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > [email protected] For more options, visit this group
> > athttp://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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to