Re: Load balanced web servers with CakePHP

2007-11-28 Thread dericknwq

Woah. I attest for the ease of setting up memcached. I've gotten it
working via Cake within hours. Tested with failing nodes etc. to see
the behaviour. Pretty cool!

Now what I have to do next is to replace my element calls with a new
helper which utilise memcached instead. cache() still writes to the
tmp folder as of now. :(

On Nov 28, 9:32 am, dericknwq [EMAIL PROTECTED] wrote:
 @Sean: I would think memcached is faster though both runs through the
 network.

 I have got no spare servers at the moment but I could steal 512MB off
 each of the servers running which should be more than enough for the
 cache from what I see now. I'm basing on that the current cache folder
 is just less than 10MB so with memcached I'll probably take like less
 than double the amount?

 I have briefly read bout memcached through my usual feeds just lacking
 the chance to try it out. Do not really have much time so the good
 thing is memcached seems relatively easy to setup.

  We've recently moved our sessions from the db over to the memcached
  cluster too and have had a nice speed boost so you might consider that
  also.

 I'm curious about this, did you have to rewrite/extend the session
 component?

 What other nifty tricks could you share about your current setup?

 On Nov 28, 12:06 am, bgmill [EMAIL PROTECTED] wrote:

  Yes I'm usingmemcacheextensively across a large (cake 1.1) app
  running on 5 web servers and its been rock solid so far.

  We've recently moved our sessions from the db over to the memcached
  cluster too and have had a nice speed boost so you might consider that
  also.

  On Nov 27, 1:19 pm, dericknwq [EMAIL PROTECTED] wrote:

   I have read about it but nope, never consider it yet. Seems like a
   pretty good replacement though since it's meant to be a global cache.
   How is Cake's support formemcache? You tried it personally?

   On Nov 27, 7:05 pm, bgmill [EMAIL PROTECTED] wrote:

Have you considered using memcached?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Load balanced web servers with CakePHP

2007-11-28 Thread bgmill

On Nov 28, 1:32 am, dericknwq [EMAIL PROTECTED] wrote:
snip
 I'm curious about this, did you have to rewrite/extend the session
 component?

 What other nifty tricks could you share about your current setup?

Setting up sessions to use memcached is easy, and all done in your
php.ini (see http://uk2.php.net/memcache for more info). Then you can
just set Cake back to using PHP sessions.

We aren't doing anything special with Cake to scale, just using the
same techniques any app would use.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Load balanced web servers with CakePHP

2007-11-27 Thread bgmill

Have you considered using memcached?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Load balanced web servers with CakePHP

2007-11-27 Thread dericknwq

I have read about it but nope, never consider it yet. Seems like a
pretty good replacement though since it's meant to be a global cache.
How is Cake's support for memcache? You tried it personally?

On Nov 27, 7:05 pm, bgmill [EMAIL PROTECTED] wrote:
 Have you considered using memcached?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Load balanced web servers with CakePHP

2007-11-27 Thread SeanW

Cake seems to use the PECL memcache extensions, which I've used
elsewhere, and they're solid.  I'd look at caching in memcache before
NFS mounted disk.

Sean

On Nov 27, 7:19 am, dericknwq [EMAIL PROTECTED] wrote:
 I have read about it but nope, never consider it yet. Seems like a
 pretty good replacement though since it's meant to be a global cache.
 How is Cake's support for memcache? You tried it personally?

 On Nov 27, 7:05 pm, bgmill [EMAIL PROTECTED] wrote:

  Have you considered using memcached?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Load balanced web servers with CakePHP

2007-11-27 Thread bgmill

Yes I'm using memcache extensively across a large (cake 1.1) app
running on 5 web servers and its been rock solid so far.

We've recently moved our sessions from the db over to the memcached
cluster too and have had a nice speed boost so you might consider that
also.


On Nov 27, 1:19 pm, dericknwq [EMAIL PROTECTED] wrote:
 I have read about it but nope, never consider it yet. Seems like a
 pretty good replacement though since it's meant to be a global cache.
 How is Cake's support for memcache? You tried it personally?

 On Nov 27, 7:05 pm, bgmill [EMAIL PROTECTED] wrote:

  Have you considered using memcached?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Load balanced web servers with CakePHP

2007-11-27 Thread dericknwq

@Sean: I would think memcached is faster though both runs through the
network.

I have got no spare servers at the moment but I could steal 512MB off
each of the servers running which should be more than enough for the
cache from what I see now. I'm basing on that the current cache folder
is just less than 10MB so with memcached I'll probably take like less
than double the amount?

I have briefly read bout memcached through my usual feeds just lacking
the chance to try it out. Do not really have much time so the good
thing is memcached seems relatively easy to setup.

 We've recently moved our sessions from the db over to the memcached
 cluster too and have had a nice speed boost so you might consider that
 also.

I'm curious about this, did you have to rewrite/extend the session
component?

What other nifty tricks could you share about your current setup?

On Nov 28, 12:06 am, bgmill [EMAIL PROTECTED] wrote:
 Yes I'm using memcache extensively across a large (cake 1.1) app
 running on 5 web servers and its been rock solid so far.

 We've recently moved our sessions from the db over to the memcached
 cluster too and have had a nice speed boost so you might consider that
 also.

 On Nov 27, 1:19 pm, dericknwq [EMAIL PROTECTED] wrote:

  I have read about it but nope, never consider it yet. Seems like a
  pretty good replacement though since it's meant to be a global cache.
  How is Cake's support for memcache? You tried it personally?

  On Nov 27, 7:05 pm, bgmill [EMAIL PROTECTED] wrote:

   Have you considered using memcached?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---