Book Image

OpenStack Trove Essentials

By : Alok Shrivastwa, Sunil Sarat, Doug Shelley, Amrith Kumar
Book Image

OpenStack Trove Essentials

By: Alok Shrivastwa, Sunil Sarat, Doug Shelley, Amrith Kumar

Overview of this book

OpenStack has become an extremely popular solution to build public and private clouds with. Database as a Service (DBaaS) enables the delivery of more agile database services at lower costs. Some other benefits of DBaaS are secure database deployments and compliance to standards and best practices. Trove is a DBaaS built on OpenStack and is becoming more popular by the day. Since Trove is one of the most recent projects of OpenStack, DBAs and system administrators can find it difficult to set up and run a DBaaS using OpenStack Trove. This book helps DBAs make that step. We start by introducing you to the concepts of DBaaS and how is it implemented using OpenStack Trove. Following this, we look at implementing OpenStack and deploying Trove. Moving on, you will learn to create guest images to be used with Trove. We then look at how to provision databases in self-service mode, and how to perform administration tasks such as backup and recovery, and fine-tuning databases. At the end of the book, we will examine some advanced features of Trove such as replication.
Table of Contents (15 chapters)
OpenStack Trove Essentials
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Preface
Index

Launching our first instance


We will launch our first Trove instance with one simple command. We will discuss the command format in detail in the coming section. However, the simplest command will need the following information:

  • Flavor ID: The ID of the flavor. Say we are spinning up an m1.small, we will use the ID 2.

  • Name: This will be the name of the instance; you can choose it to describe the instance. In our case, let us say mytest.

  • Size of the volume: As we have discussed earlier in the book, Trove installs and moves the data volumes to the cinder volume. Therefore, we will need to provide the size for it.

  • Datastore: The name of the datastore, in our case MySQL.

  • Datastore version: The version of the datastore, in our case 5.6.

Now that we have all the information we need, let us take a look at the command:

trove create mytest 2 --size 1 --datastore mysql --datastore_version 5.6

This will return the ID of the instance being created.

This instance will be ready in a while; we can track...