Issue link: https://read.uberflip.com/i/1334488
Chapter 11 231 12. We now have all our databases, users, and privileges set up, ready for our OpenStack environment. How it works... Galera replication is a synchronous multi-master plugin for InnoDB. It has the advantage that any client can write to any node in the cluster and not suffer from write conflicts or a data replication lag. There are some caveats to a Galera-backed MySQL cluster that must be considered though. Any database write is only as fast as the slowest node, to maintain synchronicity. As the number of nodes in a Galera cluster increases, the time to write to the database can increase. And finally, given that each node maintains a copy of the database on its local storage, it isn't as space-efficient as using a cluster based on shared storage. Setting up a highly available MySQL cluster with Galera for data replication is easily achieved using the freely available online configuration tool from SeveralNines. By following the process, we end up with four nodes, of which three are assigned to running MySQL with Galera and the fourth allows us to manage the cluster. With the automatic routine installation complete, we can create our databases and users and can assign privileges using the ClusterControl interface, without needing to think about any replication issues. In fact, we can create these by attaching to any one of the three MySQL servers we would normally treat independently, and the data will automatically sync to the other nodes. For OpenStack, we create three databases (nova, glance, and keystone) and assign appropriate users and privileges to these databases. We can then use this information to put into the appropriate configuration files for OpenStack. www.it-ebooks.info

