Re: Load balance CakePHP between 2 EC2 instances

2014-03-20 Thread Anthony Baron
Hi John,

I'm reaching out to you because we have a cakephp site with daily page 
views in the 30-50k region. We have a number of issues with the site 
relating to database sessions, configuring our load balancer, setting up 
additional nodes, persistent session issues, and so on.

I would like to find out if you are interested in helping out with this 
site and I would be very happy to pay you for your services.

Is this something you'd be interested in?

Anthony


On Thursday, February 16, 2012 6:31:13 AM UTC+11, ibejohn818 wrote:

 No sticky sessions, through my experience with load balancing my 
 particular cakePHP application ( and various others ) I've found that 
 sticky sessions does not evenly balance the load across machines, 
 particularly if they are all serving site assets IE: images, style sheets, 
 javascripts

 However, the application that I run serves over 1 million pages a day and 
 300k in unique users. 

 The biggest performance gain I've seen was when I moved caching ( 
 Including schema caching ) over to a dedicated memcached server.

 I've also moved over my PHP session to memcache VS database sessions and 
 seen a significant performance gain.

 If you have any other questions feel free to ask and I'll try and advise 
 where I can.

 On Feb 15, 2012, at 8:28 AM, Andres Montiel, CUA wrote:

 Thanks John. I also see that you're using HAProxy for the cluster. Sticky 
 sessions for CakePHP?

 On Thu, Feb 16, 2012 at 12:08 AM, John Hardy john.c...@gmail.comjavascript:
  wrote:

 Yes.

 I have a cluster of 6 nodes serving my site. 

 Screen Shot 2012-02-15 at 8.08.20 AM.png

 On Feb 14, 2012, at 5:19 PM, kyutums wrote:

 We are currently using CodeIgniter in another project. To handle large
 traffic (we get around 60k pageviews per day), we load balance between
 2 EC2 instances.

 Is it possible to load balance using CakePHP as well? Also, would it
 be easy to add another server in the cluster using CakePHP?

 -- 
 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+u...@googlegroups.com javascript: 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+u...@googlegroups.com javascript: 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+u...@googlegroups.com javascript: For more options, visit this 
 group at http://groups.google.com/group/cake-php




-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.


Load balance CakePHP between 2 EC2 instances

2012-02-15 Thread kyutums
We are currently using CodeIgniter in another project. To handle large
traffic (we get around 60k pageviews per day), we load balance between
2 EC2 instances.

Is it possible to load balance using CakePHP as well? Also, would it
be easy to add another server in the cluster using CakePHP?

-- 
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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Load balance CakePHP between 2 EC2 instances

2012-02-15 Thread John Hardy
No sticky sessions, through my experience with load balancing my particular 
cakePHP application ( and various others ) I've found that sticky sessions does 
not evenly balance the load across machines, particularly if they are all 
serving site assets IE: images, style sheets, javascripts

However, the application that I run serves over 1 million pages a day and 300k 
in unique users. 

The biggest performance gain I've seen was when I moved caching ( Including 
schema caching ) over to a dedicated memcached server.

I've also moved over my PHP session to memcache VS database sessions and seen a 
significant performance gain.

If you have any other questions feel free to ask and I'll try and advise where 
I can.

On Feb 15, 2012, at 8:28 AM, Andres Montiel, CUA wrote:

 Thanks John. I also see that you're using HAProxy for the cluster. Sticky 
 sessions for CakePHP?
 
 On Thu, Feb 16, 2012 at 12:08 AM, John Hardy john.c.ha...@gmail.com wrote:
 Yes.
 
 I have a cluster of 6 nodes serving my site. 
 
 Screen Shot 2012-02-15 at 8.08.20 AM.png
 
 On Feb 14, 2012, at 5:19 PM, kyutums wrote:
 
 We are currently using CodeIgniter in another project. To handle large
 traffic (we get around 60k pageviews per day), we load balance between
 2 EC2 instances.
 
 Is it possible to load balance using CakePHP as well? Also, would it
 be easy to add another server in the cluster using CakePHP?
 
 -- 
 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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Load balance CakePHP between 2 EC2 instances

2012-02-15 Thread Andres Montiel, CUA
Thanks John. These inputs are already a VERY big help. I'll holler again
should I need any clarification. :)


On Thu, Feb 16, 2012 at 3:31 AM, John Hardy john.c.ha...@gmail.com wrote:

 No sticky sessions, through my experience with load balancing my
 particular cakePHP application ( and various others ) I've found that
 sticky sessions does not evenly balance the load across machines,
 particularly if they are all serving site assets IE: images, style sheets,
 javascripts

 However, the application that I run serves over 1 million pages a day and
 300k in unique users.

 The biggest performance gain I've seen was when I moved caching (
 Including schema caching ) over to a dedicated memcached server.

 I've also moved over my PHP session to memcache VS database sessions and
 seen a significant performance gain.

 If you have any other questions feel free to ask and I'll try and advise
 where I can.

 On Feb 15, 2012, at 8:28 AM, Andres Montiel, CUA wrote:

 Thanks John. I also see that you're using HAProxy for the cluster. Sticky
 sessions for CakePHP?

 On Thu, Feb 16, 2012 at 12:08 AM, John Hardy john.c.ha...@gmail.comwrote:

 Yes.

 I have a cluster of 6 nodes serving my site.

 Screen Shot 2012-02-15 at 8.08.20 AM.png

 On Feb 14, 2012, at 5:19 PM, kyutums wrote:

 We are currently using CodeIgniter in another project. To handle large
 traffic (we get around 60k pageviews per day), we load balance between
 2 EC2 instances.

 Is it possible to load balance using CakePHP as well? Also, would it
 be easy to add another server in the cluster using CakePHP?

 --
 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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php