views:

38

answers:

1

I need to implement master/slave/load balancing into an existing site.

Does anyone use these (or other) implementations for master/slave switching?

The resources I found on how to implement master/slave into Cake:.

  • (preferable) gamephase.net/posts/view/master-slave-datasource-behavior-cakephp
  • bakery.cakephp.org/articles/view/master-slave-support-also-with-multiple-slave-support
  • bakery.cakephp.org/articles/view/load-balancing-and-mysql-master-and-slaves-2

I'm getting number 1) to work most of the times but it has trouble with some of the joins.

I welcome new sources, hacks or mods for master/slave implementation as for now I can't get my head around it.

*(Cake version I am using atm is 1.2) (I'm cross posting this on CakePHP's google groups http://groups.google.co.uk/group/cake-php/browse_thread/thread/4b77af429759e08f)*

A: 

Take a look at this tutorial in regards to Master/Slave over several nodes.

http://www.howtoforge.com/setting-up-master-master-replication-on-four-nodes-with-mysql-5-on-debian-etch

This may help you understand better.

RobertPitt
Hi Robert, thank you for the link.What I am looking for is specifically how to either implement the master/slave based on the 3 sources I gave or a total new implementation into CakePHP. As it seems to have some difficulty deeper within Cake.
Kana

related questions