fuel-library/deployment/puppet/galera
2013-03-18 22:36:41 +04:00
..
files Made init script a bit more POSIX compatible. 2013-02-11 19:04:38 +04:00
lib Added split by endline to avoid grep fail on restricted symbols. 2013-03-18 22:36:41 +04:00
manifests unhardcode wsrep version for Ubuntu 2013-03-15 05:04:59 +04:00
templates workaround too many mysql connections problem 2013-03-12 22:46:09 +04:00
.gitignore Allow metadata.json 2013-01-10 15:18:41 +04:00
.project Add project files 2013-01-10 18:37:05 +04:00
Modulefile Modulefile 2012-11-07 21:37:34 +04:00
README Initial commit 2012-09-07 17:38:58 -07:00

This is a good start to play around with the galera multi-master mysql synchronous replication (http://www.codership.com/products/mysql_galera)

HOWTO:

 * play around (add a database and data, chaos-monkey nodes etc.)


WARNING

Change the mysql root password in production and limit access to galera cluster members!

TODO

 * naming: master -> donor
 * put a load balancer in front of the cluster
 * make cluster "masterless"

nodes.pp

# nodes
$cluster_name = 'wsrep_galera_cluster'

node /mysql-db-01/ {
    class { 'galera' :
        cluster_name => $cluster_name
    }
}

node /mysql-db-0([2-9])/ {
    $master_ip = '172.18.67.254'
    class { 'galera' :
        cluster_name => $cluster_name,
        master_ip    => $master_ip
    }
}