fuel-library/deployment/puppet/galera
Bartłomiej Piotrowski 7f8d0047e0 Increate try_sleep to 10 for Galera wait-initial-sync
Deployment can fail under high load due to slow MySQL start.

Change-Id: I491f4eed6c12b960f34f1b0ce45d72c62f48ab60
Closes-Bug: 1522350
2015-12-03 11:37:34 +01:00
..
lib/facter Tune mysql and galera backend settings on scale 2014-03-19 14:36:03 +02:00
manifests Increate try_sleep to 10 for Galera wait-initial-sync 2015-12-03 11:37:34 +01:00
spec Initial Percona cluster support added 2015-07-07 11:53:17 -05:00
templates Use 'mgmt/database' network for Galera cluster 2015-09-04 11:18:30 +03:00
.fixtures.yml Define galera gcache option 2015-07-16 13:14:31 +03:00
.gitignore Initial Percona cluster support added 2015-07-07 11:53:17 -05:00
.project cleaning up galera manifests: docs and obsolete code 2013-06-28 18:15:40 +04:00
Gemfile Create Rakefile to execute lint and spec tasks 2015-10-21 22:19:56 -05:00
Modulefile Remove vendor/downstream specific code 2015-11-24 13:51:11 +00:00
Rakefile Initial Percona cluster support added 2015-07-07 11:53:17 -05: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
    }
}