Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Introduction

Currently Cloud Stack has only one active master DB setup. Going forward it should support multiple Master/Slave cluster setup to enable High Availability of the Database.

...

  1. MariaDB
  2. Percona Xtra DB (uses Galera cluster)
  3. MHA provided by SkySql
  4. Mysql Cluster
  5. Mysql Active/Active setup with connector specific configuration to read from slaves in case of master goes down

...

  • It is very hard to install this and also need to write our own scripts to switch between master and slave either using VIP concept or some other way of LB

Mysql Cluster

It has the following limitations

Mysql Active/Active Setup

...

  • Added the following properties to db.properties

#High Availability And Cluster Properties
db.ha.enabled=false (change it to true to enable db ha)
db.ha.loadBalanceStrategy=com.cloud.utils.db.StaticStrategy

...

  • We can achieve multiple nodes set up(2 master max and remaining would be slaves) with chain way of replication configuration


another way is circular chaining where all can act as master

  • This is tested against mysql version 5.5.x

...