Book Image

OpenStack Cloud Computing Cookbook

By : Kevin Jackson
Book Image

OpenStack Cloud Computing Cookbook

By: Kevin Jackson

Overview of this book

<p>OpenStack is an open Source cloud operating stack born from Rackspace and NASA which is now a global success, developed and supported by scores of people around the globe and backed by some of the leading players in the cloud space today.<br /><br /><em>OpenStack Cloud Computing Cookbook</em> will show you exactly how to install the components that are required to make up a private cloud environment. You will learn how to set up an environment that you manage, just as you would do with AWS or Rackspace.<br /><br />The Cookbook starts by configuring Nova (Compute) and Swift (Storage) in a safe, virtual environment that builds on through the book, to provisioning and managing OpenStack in the Datacenter.<br /><br />From Installing Nova in a Virtual Environment to installing OpenStack in the Datacenter, from understanding logging to securing your OpenStack environment, whatever level of experience or interest you have with OpenStack there are recipes that guide you through the journey. Installation steps cover Compute, Swift, Keystone, Nova Volumes, Glance and Horizon.<br /><br /><em>OpenStack Cloud Computing Cookbook</em> gives you clear step-by-step instructions to installing and running your own private cloud successfully. It is full of practical and applicable recipes that enable you to use the latest capabilities of OpenStack and implement them.</p>
Table of Contents (20 chapters)
OpenStack Cloud Computing Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

MySQL clustering using Galera


OpenStack can be backed by a number of database backends, and one of the most common options is MySQL. There are a number of ways to make MySQL more resilient and available. The following approach uses a load balancer to front a multi-read/write master with Galera, taking care of the synchronous replication required in such a setup. The advantage of this is that we are adding resilience in the event of a database node failure, as each node is getting ready.

We'll be using a free online configuration tool from SeveralNines.com to configure a 3-node, multi-master MySQL setup with Galera, monitored using the free cluster management interface, cmon, using a fourth node. This implies we have four servers available, running Ubuntu (other platforms are supported) with enough memory and disk space for our environment and at least two CPUs available.

How to do it...

To cluster MySQL using Galera, carry out the following steps:

MySQL and Galera configuration

  1. We first use...