O'Reilly logo

Learning OpenStack High Availability by Rishabh Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The load balancing of high availability MySQL

Many OpenStack services use MySQL as the default database server. Load balancing is necessary when any of the nodes is overloaded or fails due to some reason. To manage this failover situation, we need to exploit a solution called high availability as follows. To make this MySQL database server highly available, it requires configuring the distributed replicated block service as explained in the following sections.

DRBD replicated storage

Replications of data between disks are done with DRDB; in our case, the /dev/sdb disk on controller_1 and controller_2. We need to edit the configuration file of DRDB with the following command:

sudo gedit /etc/drbd.conf

The configuration file looks like the following: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required