Skip to content

tldr-devops/mariadb-galera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mariadb Galera

Currently this just a test setup and info collection

Time spent:

  • 02.02.2021 11:40-00:20
  • 03.02.2021 19:00-19:30 19:40-20:10
  • 04.02.2021 00:00-00:40 17:10-18:30
  • 06.02.2021 17:30-19:30
  • 07.02.2021 16:15-18:15 19:50-21:50
  • 12.02.2021 01:00-02:00 12:40-15:00
  • 17.02.2021 20:50-22:20 22:50-23:50
  • 18.02.2021 00:50-03:20

monitoring

SHOW GLOBAL STATUS LIKE 'wsrep%';

Important

| wsrep_cluster_size| 1
| wsrep_cluster_state_uuid| 044c5dd8-694f-11eb-8911-970a826f77a7
| wsrep_cluster_status| Primary
| wsrep_connected | ON
| wsrep_ready | ON

Fail resistance

1 nodes cluster

Works as usual database

2 nodes cluster

One time I got Deadlock found when trying to get lock; try restarting transaction on Primary when Secondary went down. Other tries Primary and Secondary instances worked fine when other node was down, and it be able to reconnect to worked instance after shutdow.

3 nodes cluster (2 nodes + arbiter)

  • Primary node with arbiter works fine. Secondary can reconnect to cluster and get updates after offline. Secondary can reconnect to cluster and get updates after being recreated from zero.
  • Primary and Secondary nodes can work without Arbiter. Arbiter can reconnect to cluster and get updates after being recreated from zero.
  • Primary can work even without Secondary and Arbiter. Secondary and Arbiter can reconnect to Primary after being recreated from zero.

Links

mariadb galera

Arbitrator

percona xtradb

load balance

docker

k8s

percona xtrabackup

About

Notes about Mariadb Galera setup

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published