Provisioning and Automating High Availability Postgres on AWS EC2

Slides:



Advertisements
Similar presentations
How We Manage SaaS Infrastructure Knowledge Track
Advertisements

© 2014 Persistent Systems Ltd Enabling DraaS on OpenStack Speakers: Haribabu Kasturi, Amitabh Shukla.
POC Security System High security system combining PIN-on-Card, information security, physical access, control and alarm – all in one system.
Infrastructure as a Service (IaaS) Amazon EC2
COMS E Cloud Computing and Data Center Networking
Running Your Database in the Cloud Eran Levin VP R&D - Xeround.
AUTO- CONFIGURATION IN CLOUD 1. Why we need automate something? What we need to automate? How we can do that? Scripting languages vs Frameworks Most popular.
Experiences with AWS and RightScale By: Max Gribov Presented at New York PHP, March 22, 2011
Oracle Application Server 10g (9.0.4) Recommended Topologies Pavana Jain.
Module 13: Configuring Availability of Network Resources and Content.
Mastering Amazon RDS Data Masters. Special Thanks To… Miami Innovation Center for Entrepreneurship
Maintaining a Mirrored Database Tips and Tricks by Paul G. Hiles.
Microsoft and Community Tour 2011 – Infrastrutture in evoluzione Community Tour 2011 Infrastrutture in evoluzione.
The Art and Zen of Managing Nagios with Puppet Michael Merideth - VictorOps
Module 10: Maintaining High-Availability. Overview Introduction to Availability Increasing Availability Using Failover Clustering Standby Servers and.
1 Week #10Business Continuity Backing Up Data Configuring Shadow Copies Providing Server and Service Availability.
OSIsoft High Availability PI Replication
BE-com.eu Brussel, 26 april 2016 EXCHANGE 2010 HYBRID (IN THE EXCHANGE 2016 WORLD)
Deploying Highly Available SQL Server in Windows Azure A Presentation and Demonstration by Microsoft Cluster MVP David Bermingham.
Alfresco Enterprise on Azure Shah Rahman Founder and CEO, CloudlyIO.
Scope - Goals AB Report Server database (DB) is what exactly? In Native mode the DB is actually 2 SQL Server DBs. In SharePoint mode it is a set of 3.
Cloud Installation & Configuration Management. Outline  Definitions  Tools, “Comparison”  References.
Information Initiative Center, Hokkaido University North 11, West 5, Sapporo , Japan Tel, Fax: General.
Plesk 8 for Linux/UNIX Server Automation SWSOFT GLOBAL HOSTING SUMMIT 2006 Todd L. Crumpler May 30-June 1, 2006.
INTRODUCTION TO AMAZON WEB SERVICES (EC2). AMAZON WEB SERVICES  Services  Storage (Glacier, S3)  Compute (Elastic Compute Cloud, EC2)  Databases (Redshift,
OSIsoft High Availability PI Replication Colin Breck, PI Server Team Dave Oda, PI SDK Team.
Introduction to Ansible
October 2014 HYBRIS ARCHITECTURE & TECHNOLOGY 01 OVERVIEW.
Configuration Management, Continuous Integration, Continuous Delivery Revealed.
Calgary Oracle User Group
Amazon Web Services RDS with SQL Server
SQL Saturday #573 - BSB Azure SQL Database Vs. Amazon RDS
Configuration Management using Ansible
@ Bucharest DevOps Hacker Meetup
Amazon Web Services RDS with SQL Server
Azure, PowerShell, and SQL Server Virtual Machines
Secrets to Fast, Easy High Availability for SQL Server in AWS
pg_rewind Michael Paquier Tokyo2013/07/13
Infrastructure Orchestration to Optimize Testing
MANAGE AWS INFRASTRUCTURE AS CODE USING TERRAFORM
Bridges and Clouds Sergiu Sanielevici, PSC Director of User Support for Scientific Applications October 12, 2017 © 2017 Pittsburgh Supercomputing Center.
IT Atoumation / Conf. Mgmt...
Dmytro Mykhailov How HashiCorp platform tools can make the difference in development and deployment Target and goal of HashiCorp.
Continuous Deployment tool
[Company Name] Veeam Offerings
Drupal VM and Docker4Drupal For Drupal Development Platform
Amazon Web Services RDS with SQL Server
Drupal VM and Docker4Drupal as Consistent Drupal Development Platform
2018 Amazon AWS DevOps Engineer Professional Dumps - DumpsProfessor
Get Microsoft Exam PDF Braindumps With Verified Question Answers By Realexamdumps.com
Ease OpenStack : Non-Containerized to Containerized
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Amazon Web Services RDS with SQL Server
Introduction to Ansible
Amazon Web Services RDS with SQL Server
Presented By - Avinash Pawar
GBIF CESP Workshop, Madrid 2018 Dave Martin
In this session… Introduce what we’re talking about
Cloud Computing.
The Ops side of DevOps Manager Microsoft
Cloud Security AWS as an example.
Windows Azure Hybrid Architectures and Patterns
Cloud Security AWS as an example.
Amazon Web Services RDS with SQL Server
Securing IaaS in the cloud
Nolan Leake Co-Founder, Cumulus Networks Paul Speciale
Setting up PostgreSQL for Production in AWS
UpgradeX and CloudSuite
Microsoft Virtual Academy
Presentation transcript:

Provisioning and Automating High Availability Postgres on AWS EC2 Payal Singh DBA@OmniTI 1

Who am I? DBA@OmniTI Github: payals Blog: http://penningpence.blogspot.com Twitter: @pallureshu Email: payal@omniti.com 2

Agenda vs Design Automation 3

Why EC2 over RDS? Control Debugging Third party tools Resources Flexibility Migration - globals Compatibility with non-AWS resources Monitoring 4

If you’re going from RDS to EC2... More administration Less handholding Security Basic monitoring 5

Automation Tools 6

Popular Automation Tools http://www.infoworld.com/article/2609482/data-center/data-center-review-puppet-vs-chef-vs-ansible-vs-salt.html 7

Types of Tools 8

What is Terraform? Tool for building, changing and versioning infrastructure Specializes in cloud infrastructure management 9

10

Why I chose Ansible Simple Learning curve Galaxy and modules Push - more convenient Clarity - YAML 11

Design 12

What to Design? EC2 Setup Installs and reinstalls, dependencies Tuning and customization Replication Backups Monitoring Failover 13

Is there any such thing as a In Postgres automation? 14

YES 15

16

17

18

19

20

21

Setup and Initialization 22

EC2 Setup - variables 23

EC2 Setup - main.tf 24

EC2 Setup - main.tf optionals 25

Terraform apply

Terraform applied!

Installs Get the repository: Installing postgres and supporting packages: postgresql_version: "9.6" 28

Re-installs 29

Customization $PGDATA Extensions 30

Tuning - postgresql.conf Template files: Attributes: 31

Tuning - pg_hba.conf Template: 32

Tuning pg_hba.conf Values: File: 33

Ansible-playbook main.yml

Replication 37

Replication – recovery.conf

Ansible and replication Groups: 39

Backups and restores - Setup PITR: S3: 42

Backups 43

Restores 44

Configure PITR 45

WAL-e dependencies 46

Custom Monitoring http://docs.ansible.com/ansible/list_of_monitoring_modules.html

CloudWatch Monitoring

Failover Boolean parameter: promote_slave: False 49

Completely Automated Failover 51

Pgpool

PgPool

Watchdog

Watchdog

PgPool + Watchdog

Virtual IPs Elastic IP in AWS: 57

Pgpass file 58

Slave Rebuild Switch Base backup 59

pg_rewind Synchronize a PostgreSQL cluster with another copy of the same cluster, after the clusters' timelines have diverged 9.5 and above Superuser access wal_log_hints = 'on' or enable data checksums 60

Cronjobs 61

Useful Links https://github.com/payals/postgresql_automation https://galaxy.ansible.com/ http://docs.ansible.com/ https://www.terraform.io/docs/ 62

Questions? 63