fuel-library/deployment/puppet/galera
Andrey Korolyov c72ef226a3 ubuntu for 3.2 support 2013-09-30 18:49:32 +04:00
..
files later is better for quorum 2013-07-29 15:23:23 +04:00
lib/facter cleaning up galera manifests: docs and obsolete code 2013-06-28 18:15:40 +04:00
manifests ubuntu for 3.2 support 2013-09-30 18:49:32 +04:00
templates FUEL-682 Added syslog logging to Horizon and MySQL/Galera 2013-07-05 18:45:22 +04:00
.gitignore Allow metadata.json 2013-01-10 15:18:41 +04:00
.project cleaning up galera manifests: docs and obsolete code 2013-06-28 18:15:40 +04:00
Modulefile Modulefile 2012-11-07 21:37:34 +04:00
README Initial commit 2012-09-07 17:38:58 -07:00

README

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
    }
}