Adding cluster configuration template
This commit is contained in:
parent
9ab3cffb63
commit
7410c53ff8
@ -4,7 +4,11 @@ Début des travaux pour l'utilisation de mariadb
|
||||
dans Eole avec des fonctionalitées avancées du type
|
||||
mise en clustter
|
||||
|
||||
# How-to for Eole 2.6.2
|
||||
# How-to for Eole 2.6.2 (using this repo dico and templates)
|
||||
|
||||
### FIXME
|
||||
|
||||
# How-to for Eole 2.6.2 (From scratch)
|
||||
|
||||
## Sources
|
||||
* https://mariadb.com/kb/en/library/getting-started-with-mariadb-galera-cluster/
|
||||
@ -12,6 +16,7 @@ mise en clustter
|
||||
* https://downloads.mariadb.org/mariadb/repositories/#mirror=ovh&distro=Ubuntu&distro_release=xenial--ubuntu_xenial&version=10.2
|
||||
* http://galeracluster.com/documentation-webpages/?id=galera_parameters_0.8
|
||||
* https://mariadb.com/kb/en/library/mariadb-galera-cluster-known-limitations/
|
||||
* https://www.howtoforge.com/tutorial/how-to-install-and-configure-galera-cluster-on-ubuntu-1604/
|
||||
|
||||
## Requirements
|
||||
* 2 eolebase 2.6.2 servers
|
||||
|
@ -40,8 +40,26 @@
|
||||
</family>
|
||||
<family name="Database Cluster">
|
||||
<variable name='ifDBCluster' type='string' description="Interface réseau dédiée à la grappe BDD"/>
|
||||
|
||||
<!-- FIXME : Fill this variable with nom_machine -->
|
||||
<variable name='nodeName' type='string' description="Nom du noeud local"/>
|
||||
|
||||
<variable name='dbClusterMember' type='String' description="Membre de la grappe BDD"/>
|
||||
<variable name='dbClusterMemberIP' type='ip' description="Adresse IP"/>
|
||||
<!-- Expert Variables -->
|
||||
<variable name='dbClusterName' type='string' description='Nom de la grappe'>
|
||||
<value>galera_cluster</value>
|
||||
</variable>
|
||||
<variable name='dbBinLogFormat' type='string' mode='expert' description='Format du binlog'>
|
||||
<value>ROW</value>
|
||||
</variable>
|
||||
<variable name='dbDefaultStorage' type='string' mode='expert' description='Default storage engine'>
|
||||
<value>innodb</value>
|
||||
</variable>
|
||||
<variable name='dbSSTMethod' type='string' mode='expert' description='Méthode SST'>
|
||||
<value>rsync</value>
|
||||
</variable>
|
||||
<!-- End -->
|
||||
</family>
|
||||
<separators>
|
||||
<separator name='dbCreateFixAdmin'>Comptes d'administration supplémentaires</separator>
|
||||
|
23
tmpl/galera.cnf
Normal file
23
tmpl/galera.cnf
Normal file
@ -0,0 +1,23 @@
|
||||
[mysqld]
|
||||
binlog_format=%%dbBinLogFormat
|
||||
default-storage-engine=%%dbDefaultStorage
|
||||
innodb_autoinc_lock_mode=2
|
||||
bind-address=0.0.0.0
|
||||
# Galera Provider Configuration
|
||||
wsrep_on=ON
|
||||
wsrep_provider=/usr/lib/galera/libgalera_smm.so
|
||||
# Galera Cluster Configuration
|
||||
wsrep_cluster_name="%%dbClusterName"
|
||||
%set %%nodeIP = %%getVar('adresse_ip_%%ifDBCluster', '')
|
||||
wsrep_cluster_address="gcomm://%%nodeIP%slurp
|
||||
%for %%node in %%dbClusterMember
|
||||
,%%node.dbClusterMemberIP %slurp
|
||||
%end for
|
||||
|
||||
|
||||
# Galera Synchronization Configuration
|
||||
wsrep_sst_method=%%dbSSTMethod
|
||||
|
||||
# Galera Node Configuration
|
||||
wsrep_node_address="%%nodeIP"
|
||||
wsrep_node_name="%%nodeName"
|
Loading…
Reference in New Issue
Block a user