OpenStack supports a number of database backends—an internal SQLite database (the default), MySQL, and Postgres. SQLite is used only for testing and is not supported and should not be used in a production environment. Ultimately, the choice of using MySQL or PostgreSQL is down to the experience of the database staff. As discussed at the beginning of this book, we will be using MariaDB.
We will configure our OpenStack controller services to use MariaDB as the database backend, so this needs to be installed prior to configuring our OpenStack Compute environment.
For instructions on setting up MariaDB, follow the recipe on our companion website: http://bit.ly/OpenStackCookbookPreReqs. To configure MariaDB for high availability, refer to Installing the MariaDB Galera cluster of Chapter 11, Production OpenStack.
If you are not already logged into the OpenStack Controller,
ssh into it now.