├── .gitignore ├── Readme.rst ├── Vagrantfile ├── Vagrantfile.bare_cluster ├── Vagrantfile.master_slave ├── baseline.pl ├── instructions ├── Auto Increments.rst ├── Avoiding SST.rst ├── Cluster Limitations.rst ├── Essential Topics.rst ├── Load Balancing.rst ├── Migrate Master Slave to Cluster.rst ├── Multicast Replication.rst ├── Node Failure and Arbitration.rst ├── Other SST Methods.rst ├── SSL Replication.rst ├── Tuning Replication.rst └── olddoc │ ├── 00-Setup-Quick.rst │ ├── 00-Tutorial-Process.rst │ ├── 01-Progressive Setup.rst │ ├── 02-Application Interaction.rst │ ├── 03-SST and the Donor Node.rst │ ├── 04-IST.rst │ ├── 05-Node Failure.rst │ ├── 06-HAProxy.rst │ ├── 07-Arbitration Daemon.rst │ ├── 08-Online Schema Changes.rst │ └── 09-Two Node Clusters.rst ├── manifests ├── bare_cluster.pp ├── full_cluster.pp └── master_slave.pp └── modules ├── galera ├── files │ └── glb-0.7.4-3.0.x86_64.rpm └── manifests │ ├── glb.pp │ └── glb │ ├── packages.pp │ └── service.pp ├── haproxy ├── files │ └── xtradb_cluster.cfg └── manifests │ ├── config.pp │ ├── init.pp │ ├── packages.pp │ └── service.pp ├── misc ├── files │ ├── baseline.sh │ ├── baseline_haproxy.sh │ ├── quick_update.pl │ └── sysbench-0.5-3.el6.i386.rpm └── manifests │ └── init.pp ├── mysql ├── lib │ ├── facter │ │ └── mysql.rb │ └── puppet │ │ ├── parser │ │ └── functions │ │ │ └── mysql_password.rb │ │ ├── provider │ │ ├── mysql_database │ │ │ └── mysql.rb │ │ ├── mysql_grant │ │ │ └── mysql.rb │ │ └── mysql_user │ │ │ └── mysql.rb │ │ └── type │ │ ├── mysql_database.rb │ │ ├── mysql_grant.rb │ │ └── mysql_user.rb ├── manifests │ ├── database.pp │ └── rights.pp └── templates │ └── my.cnf.erb ├── percona ├── files │ ├── percona-cluster-galera-sync.pp │ ├── percona-cluster-galera.pp │ └── percona-cluster.pp ├── manifests │ ├── cluster.pp │ ├── cluster │ │ ├── bootstrap.pp │ │ ├── config.pp │ │ ├── packages.pp │ │ ├── remove_server.pp │ │ └── service.pp │ ├── repository.pp │ ├── server.pp │ ├── server │ │ ├── config.pp │ │ ├── packages.pp │ │ └── service.pp │ ├── toolkit.pp │ └── xtrabackup.pp └── templates │ ├── cluster │ └── my.cnf.erb │ └── my.cnf.erb └── xinet ├── files └── mysqlchk └── manifests ├── config.pp ├── init.pp ├── packages.pp └── service.pp /.gitignore: -------------------------------------------------------------------------------- 1 | .vagrant 2 | .DS_Store 3 | ._* 4 | -------------------------------------------------------------------------------- /Readme.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/Readme.rst -------------------------------------------------------------------------------- /Vagrantfile: -------------------------------------------------------------------------------- 1 | Vagrantfile.master_slave -------------------------------------------------------------------------------- /Vagrantfile.bare_cluster: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/Vagrantfile.bare_cluster -------------------------------------------------------------------------------- /Vagrantfile.master_slave: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/Vagrantfile.master_slave -------------------------------------------------------------------------------- /baseline.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/baseline.pl -------------------------------------------------------------------------------- /instructions/Auto Increments.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Auto Increments.rst -------------------------------------------------------------------------------- /instructions/Avoiding SST.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Avoiding SST.rst -------------------------------------------------------------------------------- /instructions/Cluster Limitations.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Cluster Limitations.rst -------------------------------------------------------------------------------- /instructions/Essential Topics.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Essential Topics.rst -------------------------------------------------------------------------------- /instructions/Load Balancing.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Load Balancing.rst -------------------------------------------------------------------------------- /instructions/Migrate Master Slave to Cluster.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Migrate Master Slave to Cluster.rst -------------------------------------------------------------------------------- /instructions/Multicast Replication.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Multicast Replication.rst -------------------------------------------------------------------------------- /instructions/Node Failure and Arbitration.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Node Failure and Arbitration.rst -------------------------------------------------------------------------------- /instructions/Other SST Methods.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Other SST Methods.rst -------------------------------------------------------------------------------- /instructions/SSL Replication.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/SSL Replication.rst -------------------------------------------------------------------------------- /instructions/Tuning Replication.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/Tuning Replication.rst -------------------------------------------------------------------------------- /instructions/olddoc/00-Setup-Quick.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/00-Setup-Quick.rst -------------------------------------------------------------------------------- /instructions/olddoc/00-Tutorial-Process.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/00-Tutorial-Process.rst -------------------------------------------------------------------------------- /instructions/olddoc/01-Progressive Setup.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/01-Progressive Setup.rst -------------------------------------------------------------------------------- /instructions/olddoc/02-Application Interaction.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/02-Application Interaction.rst -------------------------------------------------------------------------------- /instructions/olddoc/03-SST and the Donor Node.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/03-SST and the Donor Node.rst -------------------------------------------------------------------------------- /instructions/olddoc/04-IST.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/04-IST.rst -------------------------------------------------------------------------------- /instructions/olddoc/05-Node Failure.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/05-Node Failure.rst -------------------------------------------------------------------------------- /instructions/olddoc/06-HAProxy.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/06-HAProxy.rst -------------------------------------------------------------------------------- /instructions/olddoc/07-Arbitration Daemon.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/07-Arbitration Daemon.rst -------------------------------------------------------------------------------- /instructions/olddoc/08-Online Schema Changes.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/08-Online Schema Changes.rst -------------------------------------------------------------------------------- /instructions/olddoc/09-Two Node Clusters.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/instructions/olddoc/09-Two Node Clusters.rst -------------------------------------------------------------------------------- /manifests/bare_cluster.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/manifests/bare_cluster.pp -------------------------------------------------------------------------------- /manifests/full_cluster.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/manifests/full_cluster.pp -------------------------------------------------------------------------------- /manifests/master_slave.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/manifests/master_slave.pp -------------------------------------------------------------------------------- /modules/galera/files/glb-0.7.4-3.0.x86_64.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/galera/files/glb-0.7.4-3.0.x86_64.rpm -------------------------------------------------------------------------------- /modules/galera/manifests/glb.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/galera/manifests/glb.pp -------------------------------------------------------------------------------- /modules/galera/manifests/glb/packages.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/galera/manifests/glb/packages.pp -------------------------------------------------------------------------------- /modules/galera/manifests/glb/service.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/galera/manifests/glb/service.pp -------------------------------------------------------------------------------- /modules/haproxy/files/xtradb_cluster.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/haproxy/files/xtradb_cluster.cfg -------------------------------------------------------------------------------- /modules/haproxy/manifests/config.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/haproxy/manifests/config.pp -------------------------------------------------------------------------------- /modules/haproxy/manifests/init.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/haproxy/manifests/init.pp -------------------------------------------------------------------------------- /modules/haproxy/manifests/packages.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/haproxy/manifests/packages.pp -------------------------------------------------------------------------------- /modules/haproxy/manifests/service.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/haproxy/manifests/service.pp -------------------------------------------------------------------------------- /modules/misc/files/baseline.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/misc/files/baseline.sh -------------------------------------------------------------------------------- /modules/misc/files/baseline_haproxy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/misc/files/baseline_haproxy.sh -------------------------------------------------------------------------------- /modules/misc/files/quick_update.pl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/misc/files/quick_update.pl -------------------------------------------------------------------------------- /modules/misc/files/sysbench-0.5-3.el6.i386.rpm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/misc/files/sysbench-0.5-3.el6.i386.rpm -------------------------------------------------------------------------------- /modules/misc/manifests/init.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/misc/manifests/init.pp -------------------------------------------------------------------------------- /modules/mysql/lib/facter/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/lib/facter/mysql.rb -------------------------------------------------------------------------------- /modules/mysql/lib/puppet/parser/functions/mysql_password.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/lib/puppet/parser/functions/mysql_password.rb -------------------------------------------------------------------------------- /modules/mysql/lib/puppet/provider/mysql_database/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/lib/puppet/provider/mysql_database/mysql.rb -------------------------------------------------------------------------------- /modules/mysql/lib/puppet/provider/mysql_grant/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/lib/puppet/provider/mysql_grant/mysql.rb -------------------------------------------------------------------------------- /modules/mysql/lib/puppet/provider/mysql_user/mysql.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/lib/puppet/provider/mysql_user/mysql.rb -------------------------------------------------------------------------------- /modules/mysql/lib/puppet/type/mysql_database.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/lib/puppet/type/mysql_database.rb -------------------------------------------------------------------------------- /modules/mysql/lib/puppet/type/mysql_grant.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/lib/puppet/type/mysql_grant.rb -------------------------------------------------------------------------------- /modules/mysql/lib/puppet/type/mysql_user.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/lib/puppet/type/mysql_user.rb -------------------------------------------------------------------------------- /modules/mysql/manifests/database.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/manifests/database.pp -------------------------------------------------------------------------------- /modules/mysql/manifests/rights.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/manifests/rights.pp -------------------------------------------------------------------------------- /modules/mysql/templates/my.cnf.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/mysql/templates/my.cnf.erb -------------------------------------------------------------------------------- /modules/percona/files/percona-cluster-galera-sync.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/files/percona-cluster-galera-sync.pp -------------------------------------------------------------------------------- /modules/percona/files/percona-cluster-galera.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/files/percona-cluster-galera.pp -------------------------------------------------------------------------------- /modules/percona/files/percona-cluster.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/files/percona-cluster.pp -------------------------------------------------------------------------------- /modules/percona/manifests/cluster.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/cluster.pp -------------------------------------------------------------------------------- /modules/percona/manifests/cluster/bootstrap.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/cluster/bootstrap.pp -------------------------------------------------------------------------------- /modules/percona/manifests/cluster/config.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/cluster/config.pp -------------------------------------------------------------------------------- /modules/percona/manifests/cluster/packages.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/cluster/packages.pp -------------------------------------------------------------------------------- /modules/percona/manifests/cluster/remove_server.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/cluster/remove_server.pp -------------------------------------------------------------------------------- /modules/percona/manifests/cluster/service.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/cluster/service.pp -------------------------------------------------------------------------------- /modules/percona/manifests/repository.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/repository.pp -------------------------------------------------------------------------------- /modules/percona/manifests/server.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/server.pp -------------------------------------------------------------------------------- /modules/percona/manifests/server/config.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/server/config.pp -------------------------------------------------------------------------------- /modules/percona/manifests/server/packages.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/server/packages.pp -------------------------------------------------------------------------------- /modules/percona/manifests/server/service.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/server/service.pp -------------------------------------------------------------------------------- /modules/percona/manifests/toolkit.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/toolkit.pp -------------------------------------------------------------------------------- /modules/percona/manifests/xtrabackup.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/manifests/xtrabackup.pp -------------------------------------------------------------------------------- /modules/percona/templates/cluster/my.cnf.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/templates/cluster/my.cnf.erb -------------------------------------------------------------------------------- /modules/percona/templates/my.cnf.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/percona/templates/my.cnf.erb -------------------------------------------------------------------------------- /modules/xinet/files/mysqlchk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/xinet/files/mysqlchk -------------------------------------------------------------------------------- /modules/xinet/manifests/config.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/xinet/manifests/config.pp -------------------------------------------------------------------------------- /modules/xinet/manifests/init.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/xinet/manifests/init.pp -------------------------------------------------------------------------------- /modules/xinet/manifests/packages.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/xinet/manifests/packages.pp -------------------------------------------------------------------------------- /modules/xinet/manifests/service.pp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jayjanssen/percona-xtradb-cluster-tutorial/HEAD/modules/xinet/manifests/service.pp --------------------------------------------------------------------------------