Replication MariaDB
Replication MariaDB
Availability – Wikipedia
Up time / total time
Approach to High Availability
Strategies for High Availability
Other
5
~ 99.99%
52.6 min / year ~ 99.999%
< 99.9% Replication / Automatic
failover
4 5.3 min / year
Galera Cluster
3 – 7 days / year
Backup / restore
3
2
1
~ 99.9%
8.8 Hs / year
simple replication /
manual failover
High Availability Components
High availability is a system design protocol and associated implementation that ensures a
certain degree of operational continuity during a measurement period.
Failover or
Monitoring and Data
Switchover
Management Redundancy
Solution
Availability of the services needs to Some mechanism to redirect traffic For Stateful services, we need to
be monitored, to take action when from the failed server or datacenter to make sure that data is made
there is failure or even to prevent a working one redundant. It is not a replacement for
them backup!
Synchronous Replication
(Galera)
• Load Balancing
• Query Routing
• High Availability
• Scalability
• Security
• Protocol Conversion
• Query Caching
Preparation
Prepare 4 VM :
Node1 :192.168.174.130 (192.168.174.130 node1.example.com node1)
Node2 :192.168.174.131 (192.168.174.131 node2.example.com node2)
Max :192.168.174.132 (192.168.174.132 max.example.com max)
Mon :192.168.174.129 (192.168.174.129 mon.example.com mon)
Disk partitioning:
/data
/backup
/log
/tools
System (/boot, /swap, /)
Global Transaction ID (GTID)