Baji Shaik and Avinash Vallarapu
Beginning PostgreSQL on the CloudSimplifying Database as a Service on Cloud Platforms
Baji Shaik
Hyderabad, Andhra Pradesh, India
Avinash Vallarapu
Hyderabad, Andhra Pradesh, India
ISBN 978-1-4842-3446-4e-ISBN 978-1-4842-3447-1
Library of Congress Control Number: 2018937882
© Baji Shaik, Avinash Vallarapu 2018
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein.
Printed on acid-free paper
Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail [email protected], or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation.

“Dedicated to our be-loved parents and family”

Introduction

Gone are the days where we had to use our own data centers to create our database infrastructure. We have seen a lot of progress in the cloud computing arena. We can now peacefully deploy our databases or applications on the cloud and avoid the cost and pain of managing the infrastructure. Likewise, most organizations have special projects in place to migrate their proprietary license databases to Open Source databases like PostgreSQL. Most such organizations consider it the right time to migrate to a PostgreSQL database deployed on the cloud, because doing so can save them money and effort. Thus, we knew it was time to write a book that helps users understand the advantages and limitations of all the existing cloud vendors available for deploying PostgreSQL on their platforms.

This book contains the details about the major vendors available to deploy a PostgreSQL database on the cloud. It starts with an introduction to DBaaS and IaaS and a brief description of the criteria considered by organizations when deploying databases as a service. We talk about the major concerns and issues you might come across while deploying databases on the cloud. We included steps and procedures involved in migrating from on-premise to the cloud. As this book is mainly written to address the process of deploying a PostgreSQL database on the cloud, we include a detailed architecture of PostgreSQL in one of the chapters. The architecture of PostgreSQL should help you understand most of the parameters that are needed to better tune your PostgreSQL environment.

The main part of the book is a beginner’s guide to deploying PostgreSQL as a service on Amazon Web Services, Microsoft Azure, the Google cloud platform, and the Rackspace cloud platform. You will read an introduction to the services offered by each of these vendors for PostgreSQL, along with the steps to create your first PostgreSQL instance in a production environment. This book focuses on helping novice PostgreSQL users deploy a production PostgreSQL database as a service on any of these cloud vendors.

The book covers major aspects of this process—such as security, high availability, encryption, replication, monitoring, and connection pooling. All these topics are discussed about every cloud vendor, along with the services each of these vendors offers to satisfy the requirements.

Acknowledgments

From Baji Shaik: I have many people to thank, as without them, this book would not have been possible. Thanks to Apress Media for believing in this book and providing us this opportunity. Thanks to Sanchita Mandal for referring us to this book. Thanks to Avinash Vallarapu for being a wonderful co-author. Thanks to Nikhil Karkal and Divya Modi for working with us and giving us extended time in busy schedules. Thanks to my Guru, Dinesh Kumar. Thanks to Jobin Augustine for reviewing the book. And thanks to my loving parents—Lalu Saheb Shaik and Nasar Bee—because of them, I am who I am today.

From Avinash Vallarapu: A special thanks to Apress Media for believing in me and giving me the great opportunity to write this book. Nikhil Karkal and Divya Modi from Apress have been very helpful in making the process very seamless for the authors. I want to thank Baji for collaborating with me and introducing me as an author. I want to thank my wife Samhitha Garudadri for all her support during the days of writing this book. Thanks to my dad, Srinivas Vallarapu, and mom, Padmavathi, for all the encouragement. The technical discussions I had with my wife and my brother Rajesh Vallarapu helped me a lot while writing this book. Many thanks to my guru, Jobin Augustine, who also reviewed this book.

Table of Contents

Index373

About the Authors and About the Technical Reviewer

About the Authors

Baji Shaik
../images/456897_1_En_BookFrontmatter_Figb_HTML.jpg

is a database administrator and developer, working as a senior database consultant at OpenSCG, Hyderabad, India. He was introduced to databases in 2011 and over the years, has worked with Oracle, PostgreSQL, and Greenplum. He has a wide range of expertise and experience in SQL/NoSQL databases and has developed many successful database solutions addressing challenging business requirements. He has been working with a database service in Predix cloud from GE, where he continuously supports databases in automation and helps in developing features, fixing and testing defects of the service. Baji has organized a number of PostgreSQL meet-ups and maintains his own technical blog at bajis-postgres.blogspot.in , where he likes to share his knowledge with the community. He co-authored PostgreSQL Development Essentials, released in September 2016.

 
Avinash Vallarapu
../images/456897_1_En_BookFrontmatter_Figc_HTML.jpg

works as a database architect/trainer for one of PostgreSQL’s parent companies—OpenSCG. He has over 11 years of experience in various database technologies such as Oracle, PostgreSQL, MySQL, MariaDB, and MongoDB and is an avid Python developer. He is also an author of pgPulse that enables features like AWR and Snapshotting on PostgreSQL 9.2 and above. He has been a speaker at a number of PostgreSQL conferences and meet-ups and holds expertise in migrations from Oracle to PostgreSQL and cloud deployments of PostgreSQL. He holds vast experience in performing architectural health checks of PostgreSQL and MySQL environments for customers across the globe. Apart from being an expert with databases, Avinash has won several hackathons. His interest toward simplifying complex issues using automation makes him a unique addition to the Open Source community.

 

About the Technical Reviewer

Jobin Augustine
../images/456897_1_En_BookFrontmatter_Figd_HTML.jpg

is an industry expert in database systems, with more than 16 years of experience. He has technical expertise in handling the planning, development, and set up of large infrastructure setups and is an expert in consolidation environments. His experience is with a variety of database systems, including PostgreSQL, Oracle, MySQL, PostgreSQL, SQL Server, and MongoDB. He developed award-winning tools and automations ranging from plugins, scripts, and self-service portals for DBAs and developers (DevOps), DBA tools, and more. He is a contributor to various Open Source projects and an advocate of Open Source. Jobin is among the top bloggers in the Postgres community. He also regularly presents at meet-ups and Postgres conferences.

 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.77.21