Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

OpenStack Trove Essentials
OpenStack Trove Essentials
OpenStack Trove Essentials
Ebook337 pages1 hour

OpenStack Trove Essentials

Rating: 0 out of 5 stars

()

Read preview

About this ebook

Build your own cloud based Database as a Service using OpenStack Trove

About This Book

- Familiarize yourself with the concept of Database as a Service and make your existing system scalable and efficient with OpenStack Trove
- Minimize the administrative tasks and complexities of managing your cloud infrastructure
- This is a fast-paced guide to datastore management on the OpenStack platform using OpenStack Trove

Who This Book Is For

If you are a DBA / system administrator / architect, or a student who wants to build a Database as a Service based on OpenStack, this book is for you. You should have a basic knowledge of OpenStack components, RDBMS/NoSQL, IaaS, and cloud computing.

What You Will Learn

- Get to grips with the basics of OpenStack and the prerequisites to install Trove
- Understand the expectations of DBaaS and how Trove can help you achieve them
- Set up a basic installation of DevStack (Development Stack) in a virtual box
- Install Trove and utilize its configuration groups to manage and tune databases
- Use Image builder to create guest images for Trove
- Utilize Trove to provision your first database instance
- Back up and restore your databases with the help of Trove

In Detail

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.

Style and approach

This fast-paced, step-by-step guide introduces you to DBaaS, OpenStack Trove, and its components, leading you through building your own Cloud-based DBaaS. Using the DevStack deployment method, you will spend less time on installing OpenStack so you can devote more time to learning how to provision and manage databases in a DBaaS environment.
LanguageEnglish
Release dateMar 30, 2016
ISBN9781785288739
OpenStack Trove Essentials

Related to OpenStack Trove Essentials

Related ebooks

System Administration For You

View More

Related articles

Reviews for OpenStack Trove Essentials

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    OpenStack Trove Essentials - Shrivastwa Alok

    Table of Contents

    OpenStack Trove Essentials

    Credits

    About the Authors

    About the Reviewer

    www.PacktPub.com

    eBooks, discount offers, and more

    Why subscribe?

    Preface

    What this book covers

    What you need for this book

    Who this book is for

    Conventions

    Reader feedback

    Customer support

    Errata

    Piracy

    Questions

    1. Introducing OpenStack Trove

    Database as a Service

    Advantages

    Reduced database management costs

    Faster provisioning and standardization

    Easier administration

    Scaling and efficiency

    Trove

    Architecture

    Shared components

    The message bus

    MySQL/MariaDB

    API

    The task manager

    The guest agent

    The conductor

    Terminology

    Datastore

    Datastore version

    Instance

    Configuration group

    Flavor

    Database

    A multi-datastore scenario

    Database software distribution support

    Putting it all together

    Use cases

    Dev/test databases

    Web application databases

    Features

    The Juno release

    The Kilo release

    The Liberty release

    Summary

    2. Setting up Trove with DevStack in a Box

    Requirements

    Operating system

    Database

    Messaging queue

    Web server

    Internet connection

    Preparing the server

    Minimum configuration required

    Server configuration

    Setting the IP address

    Installing prerequisites

    Adding a user

    Installing packages

    DevStack

    Downloading the DevStack script

    Using a proxy with GitHub

    Understanding the DevStack files

    stack.sh

    unstack.sh

    rejoin-stack.sh

    run_test.sh

    exercise.sh

    clean.sh

    local.sh

    Configuring the DevStack installation

    Step 1 – copy the local.conf file from the samples directory to the base directory

    Step 2 – modify the localrc section

    Step 3 – modify the local.conf to install Trove and Swift

    Installing DevStack

    Using a proxy server

    Verifying the installation

    Troubleshooting the install

    Working with screen

    Screen control key

    Useful commands

    DevStack and screen

    Killing DevStack

    Restarting DevStack services

    Summary

    3. Installing Trove in an Existing OpenStack Environment

    Different methods of deploying OpenStack

    Required OpenStack services

    Planning the install

    Where to install the Trove components

    Take a backup

    Installing Trove

    Installing Trove from source

    Installing with the Ubuntu OpenStack repository

    Configuring Trove

    Setting up the MySQL database

    Keystone configuration

    Modifying the configuration files

    trove.conf

    trove-taskmanager.conf and trove-conductor.conf

    trove-guestagent.conf

    Initializing the Trove database

    Restarting the services

    Summary

    4. Preparing the Guest Images

    Structure of a guest image

    Instance creation using the guest image

    Creating the Trove guest image

    Installation using configuration management systems

    Installation using templates

    Disk Image Builder

    Installing the DIB

    Basic working of the DIB

    Installing Trove-integration scripts and TripleO

    SSH keys

    Install Percona keys (only if using proxies)

    Creating your own DIB elements (optional)

    Creating images using the DIB

    Exporting environment variables

    Building the QCOW2 image

    Red stack scripts

    Uploading the Trove images

    Modify QCOW2 images using guestfish

    Installing guestfish

    Loading the images

    Modify the files on the image

    Send commands

    Example: Adding a user to the Ubuntu QCOW2 image

    Summary

    5. Provisioning Database Instances

    Checking for prerequisites

    Launching our first instance

    Logging into the instance via SSH

    Launching the instance using the GUI

    Connect to the database instance

    Instance operations

    Resize

    Terminate the Trove instances

    Troubleshooting

    Summary

    6. Configuring the Trove Instances

    Default datastore and version configuration

    Modifying the instance configuration

    Configuration groups

    Defining configuration parameters

    Uploading configuration parameters

    Creating a configuration

    Applying the configuration to an instance

    Verification

    Viewing the configuration

    Patching the configuration

    Updating the configuration

    Removing the configuration

    Verification

    Adding a new parameter

    Summary

    7. Database Backup and Restore

    Formulating a backup and recovery plan

    Backing up/restoring in Trove

    The concept of strategies in Trove

    The backup/restore strategy in action

    Configuring the backup strategies

    Configuring the storage strategies

    Backup prerequisites

    Backups and restores

    Full backup

    Incremental backup

    Viewing the backup

    Restoring backups

    Deleting backups

    Summary

    8. Advanced Database Features

    Replication and clustering

    Replication

    Clustering

    Replication in Trove

    Supported data stores

    Setting up replications

    Creating a replicated pair

    Verifying replication

    Failover options

    Promote to the replica master

    Eject the master

    Detach replica

    Clustering in Trove

    Supported data store

    Creating and uploading the MongoDB image

    Creating a cluster

    Summary

    Index

    OpenStack Trove Essentials


    OpenStack Trove Essentials

    Copyright © 2016 Packt Publishing

    All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

    Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

    Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

    First published: March 2016

    Production reference: 1220316

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham B3 2PB, UK.

    ISBN 978-1-78528-561-5

    www.packtpub.com

    Credits

    Authors

    Alok Shrivastwa

    Sunil Sarat

    Reviewer

    Denys Makogon

    Commissioning Editor

    Dipika Gaonkar

    Acquisition Editor

    Rahul Nair

    Content Development Editor

    Viranchi Shetty

    Technical Editor

    Nirant Carvalho

    Copy Editors

    Jonathan Todd

    Madhusudan Uchil

    Project Coordinator

    Izzat Contractor

    Proofreader

    Safis Editing

    Indexer

    Hemangini Bari

    Graphics

    Kirk D'Penha

    Production Coordinator

    Shantanu N. Zagade

    Cover Work

    Shantanu N. Zagade

    About the Authors

    Alok Shrivastwa is a technologist from India, currently working as the director of cloud services for Microland Ltd. in their Center of Innovation. He has a keen interest in all things physical and metaphysical and is an innovator at heart. He has worked with multiple large- and medium-sized enterprises, designing and implementing their network security solutions, automation solutions, databases, VoIP environments, datacenter designs, public and private clouds, and integrations.

    He has also created several tools and intellectual properties in the field of operationalization of emerging technologies. He has authored a book, Learning OpenStack, with Packt Publishing, and has authored several whitepapers and blogs on technology and metaphysical topics, in addition to writing poems in Hindi. Also, he has been a guest speaker for undergraduate engineering students in Chennai.

    You can connect with him at https://in.linkedin.com/in/alokas or follow him on Twitter at @alok_as.

    We are like the fire at the end of the matchstick, we appear when we are needed, and once our work here is completed, we disappear into the same nothingness we all came from. I thank that nothingness we all fondly call God. I thank my mother, Seema, for making me who I am today; my lovely sisters, Kawshiki and Abhabya; my beautiful wife, Priyanka, for tolerating the insanity; and my father for supporting me throughout.

    I thank the reviewers who were patient in reviewing the work and shaped the flow of the book. I thank all the editors at Packt for being extremely helpful and understanding and finally Packt Publishing for allowing me to share whatever little I know.

    Sunil Sarat is the vice president of cloud and mobility services at Microland Ltd., an India-based global hybrid IT infrastructure services provider.

    He played a key role in setting up and running the emerging technologies practice, dealing with areas such as public/private cloud (AWS and Azure, VMware vCloud Suite, Microsoft, and OpenStack), hybrid IT (VMware vRealize automation/orchestration, Chef, and Puppet), enterprise mobility (Citrix Xenmobile and VMware Airwatch), VDI /app virtualization (VMware Horizon Suite, Citrix XenDesktop/XenApp, Microsoft RDS, and AppV), and associated transformation services.

    He is a technologist and a business leader with expertise in creating new practices and service portfolios, building and managing high-performance teams, strategy definition, technological roadmaps, and 24/7 global remote infrastructure operations. He has varied experience in handling diverse functions such as innovation/technology, service delivery, transition, presales/solutions, and automation.

    He has authored whitepapers, blogs, and articles on various technologies and service-related areas, is a speaker at cloud-related events, and reviews technical books. He has authored Learning OpenStack and reviewed Learning AirWatch and Mastering VMware Horizon 6, all by Packt Publishing.

    He holds various industry certifications in the areas of compute, storage, and security and holds an MBA in marketing.

    Besides technology and business, he is passionate about filmmaking and is a part-time filmmaker as well.

    For more information, you can visit his LinkedIn profile at https://www.linkedin.com/in/sunilsarat or follow him on Twitter at @sunilsarat.

    Firstly, I would like to thank the Existence for enabling me to write this book. I would like to thank my family—my mother, Ratna; wife, Abhaya; and my twins, Advika and Agnika—for supporting me throughout. Thanks to my friends Karthieyan K., Syed, Samina, and Mayank for their encouragement.

    I thank Microland for all the exposure and support provided, which was instrumental for me to write this book. My gratitude to my co-author Alok Shrivastwa and, last but not least, to Packt Publishing for the opportunity and guidance.

    About the Reviewer

    Denys Makogon is a senior Python software engineer at EPAM and works in Kharkiv, Ukraine. He is a writer and developer by day and a reader by night. His passion is helping people bring their technical skills up to the next level along with developing skills that would become key features in obtaining a story of success for both sides—developers and customers. He is an IT tough guy, cloud-native application developer, and has started work as a software architect in cloud-based solutions. He is the founder of the Project Invader open source organization, mainly focused on developing and designing platform and software as a service applications for OpenStack. He is a contributor to the OpenStack DBaaS and the CloudValidation open source framework. He is a founder and technical project lead of the BeeDB project. He has worked on OpenStack Cloud Applications Development (http://as.wiley.com/WileyCDA/WileyTitle/productCd-1119194318.html).

    I would like to say thank you to the entire team that helped me get the work done in time and at an appropriate level and supported me within this project and to my family that helped me stay concentrated on this book.

    www.PacktPub.com

    eBooks, discount offers, and more

    Did you

    Enjoying the preview?
    Page 1 of 1