MariaDB galera
Links
- Bespielsetup mit keepalived (failover IP) auf zwei haproxy-Instanzen (die ein frontend + backend auf die galera-nodes aufmacht)
Installation
Cluster OK
SHOW STATUS LIKE 'wsrep%';
SHOW STATUS LIKE 'wsrep_cluster_size'; +--------------------+-------+ | Variable_name | VALUE | +--------------------+-------+ | wsrep_cluster_size | 3 | +--------------------+-------+ SHOW STATUS LIKE 'wsrep_cluster_status'; +----------------------+---------+ | Variable_name | VALUE | +----------------------+---------+ | wsrep_cluster_status | PRIMARY | +----------------------+---------+ SHOW STATUS LIKE 'wsrep_local_state_comment'; +---------------------------+--------+ | Variable_name | VALUE | +---------------------------+--------+ | wsrep_local_state_comment | Synced | +---------------------------+--------+ SHOW STATUS LIKE 'wsrep_last_committed'; +----------------------+---------+ | Variable_name | VALUE | +----------------------+---------+ | wsrep_last_committed | 7560036 | +----------------------+---------+
Recovery
interesting files: cat /var/lib/mysql/grastate.dat
/etc/mysql/conf.d/galera.cnf → wsrep_cluster_address