updates to galera
This commit is contained in:
parent
442dc5a909
commit
991c2a2913
35
70-galera.conf
Normal file
35
70-galera.conf
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#
|
||||||
|
# * Galera-related settings
|
||||||
|
#
|
||||||
|
# See the examples of server wsrep.cnf files in /usr/share/mysql
|
||||||
|
# and read more at https://mariadb.com/kb/en/galera-cluster/
|
||||||
|
|
||||||
|
[galera]
|
||||||
|
#[mysqld]
|
||||||
|
# Mandatory settings
|
||||||
|
wsrep_on = ON
|
||||||
|
wsrep_cluster_name = "NGDB-GALERA"
|
||||||
|
wsrep_cluster_address = "gcomm://192.168.44.9,192.168.44.10,192.168.44.11,192.168.44.12,192.168.44.13"
|
||||||
|
binlog_format = row
|
||||||
|
default_storage_engine = InnoDB
|
||||||
|
wsrep_sst_method =rsync
|
||||||
|
innodb_autoinc_lock_mode = 2
|
||||||
|
wsrep_provider =/usr/lib/galera/libgalera_smm.so
|
||||||
|
|
||||||
|
|
||||||
|
# Galera Node Configuration
|
||||||
|
wsrep_node_address="192.168.44.12"
|
||||||
|
wsrep_node_name="{{ galera_cluster_name }}"
|
||||||
|
|
||||||
|
# Allow server to accept connections on all interfaces.
|
||||||
|
#bind-address = <OPTIONAL_BIND_ADDR>
|
||||||
|
|
||||||
|
# Configure TLS
|
||||||
|
# Change/uncomment accoridingly
|
||||||
|
#wsrep_provider_options="socket.ssl_key=/etc/mysql/ssl/server-key.pem;socket.ssl_cert=/etc/mysql/ssl/server-cert.pem;socket.ssl_ca=/etc/mysql/ssl/ca-cert.pem"
|
||||||
|
#wsrep_provider_options = "socket.checksum=2"
|
||||||
|
#wsrep_provider_options = "socket.ssl_cipher=ALL:!EXP:!NULL:!ADH:!LOW:!SSLv2:!SSLv3:!MD5:!RC4:!RSA"
|
||||||
|
|
||||||
|
# Optional settings
|
||||||
|
#wsrep_slave_threads = 1
|
||||||
|
#innodb_flush_log_at_trx_commit = 0
|
@ -1,3 +1,7 @@
|
|||||||
---
|
---
|
||||||
vars1: "1"
|
galera_cluster_name: "GALERA-TEST"
|
||||||
vars2: "2"
|
vars2: "2"
|
||||||
|
hosts:
|
||||||
|
- 1.1.1.1
|
||||||
|
- 2.2.2.2
|
||||||
|
- 3.3.3.3
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
- name: Install galera cluster
|
- name: Install galera cluster
|
||||||
|
|
||||||
hosts: 1.2.3.4
|
hosts: 1.1.1.1, 2.2.2.2, 3.3.3.3
|
||||||
become: yes
|
become: yes
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
vars_files:
|
vars_files:
|
||||||
@ -27,6 +27,8 @@
|
|||||||
autoremove: true
|
autoremove: true
|
||||||
autoclean: true
|
autoclean: true
|
||||||
|
|
||||||
|
- name: prepare file
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
apt:
|
apt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user