Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Galera Cluster and MariaDB MySQL Replication
Rating: 4.2 out of 5(662 ratings)
2,661 students

Galera Cluster and MariaDB MySQL Replication

MySQL and MariaDB Replication and High Availability
Created byHadi Alnabriss
Last updated 11/2026
English
English [Auto],Italian [Auto],

What you'll learn

  • After taking this course students will be able to build a high available Database Cluster with multi master database system
  • Students will gain the required knowledge to load balance mysql queries to the database cluster nodes

Course content

6 sections • 27 lectures • 2h 17m total length
  • Welcome to the Course3:12

    What Galera Cluster is, why you would use it, and the cluster we will build on real Ubuntu 24.04 servers: three MariaDB 11.4 nodes that all accept writes, a fourth node we add and remove, and an HAProxy load balancer in front.

  • Database Replication and ACID5:45

    Why we keep copies of a database (availability, read scaling, disaster recovery), and the four ACID guarantees every copy must respect: atomicity, consistency, isolation and durability, each shown with an animated example.

  • Master/Slave vs Multi-Master Replication4:39

    Who is allowed to take the writes. Master/slave (primary/replica) replication with one writer and read-only copies, failover and its risks, then multi-master replication where every node accepts writes, and the conflicts that creates.

  • Asynchronous, Synchronous and Semi-Synchronous Replication6:28

    When is a change sent to the other nodes, and when does the client hear OK? Asynchronous replication and its lost transactions, fully synchronous replication and its cost, semi-synchronous replication, and where Galera's virtually synchronous replication fits.

  • Statement-Based vs Row-Based Replication3:33

    What exactly travels to the other nodes: the SQL statement, or the changed rows. Why non-deterministic statements break statement-based replication, and why Galera always replicates rows.

Requirements

  • To complete this course you must be familiar with, or at least have basic knowledge about MySQL queries, Linux CentOS and building Virtual machines for practical sections

Description

In this course the students will learn many topics about database replication, this course includes learning theoretical concepts and practical tasks. In this course the students will learn about the following topics:

Database Replication

Synchronous and Asynchronous Replication

Statement Based Replication and Row Based Replication

Group Communications, Write Sets and Certification Based Replication

Building 3 nodes Galera Cluster (Practical)

Testing Potential Nodes Failures (Practical)

Joining New Nodes to The Cluster (Practical)

Weighted Quorum Concepts

Load Balancing

Checking The Cluster Status


Eventually, this will be a continuous course I am going to add any additional topics I think they are important, and any topics requested by students.

So, if you think that this course can be improved by adding any topics, then please let me know.

Who this course is for:

  • Students interested in Mysql or MariaDB replication and Database High Availability