SlideShare a Scribd company logo
Jignesh Shah, Amazon RDS
PGConf India 2019
Deep Dive on Amazon RDS
PostgreSQL
PostgreSQL
Robust feature sets and
extensions
Multi-Version Concurrency
Control (MVCC), point in time
recovery, granular access controls,
tablespaces, asynchronous
replication, nested transactions,
online/hot backups, a refined
query planner/optimizer, and
write ahead logging
Supports international character
sets, multi-byte character
encodings, Unicode, and it is
locale-aware for sorting, case-
sensitivity, and formatting
Reliable
High fault tolerance, ACID
compliance, and full support for
foreign keys, joins, views, triggers,
and stored procedures
Standards-compliant
Includes most SQL:2008 data
types, including INTEGER,
NUMERIC, BOOLEAN, CHAR,
VARCHAR, DATE, INTERVAL, and
TIMESTAMP. Supports storage of
binary large objects, including
pictures, sounds, or video
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
PostgreSQL Deployment Options
On-Premises Hosted
EC2 DB Services
Managed
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Full control over parameters of server, OS, and database
Remote access to host via ssh
Customer can install 3rd party applications and extensions
Self Managed PostgreSQL
• Customer has full responsibility for upgrades and backup
• Customer has major responsibility for security
• High Availability and replication are expensive, complex, and
require a lot of engineering
Running PostgreSQL on EC2
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Relational Database Service
Multi-engine support: Amazon Aurora, MySQL,
MariaDB, PostgreSQL, Oracle, SQL Server
Automated provisioning, patching, scaling,
replicas, backup/restore, failover
High availability with RDS Multi-AZ and Amazon
Aurora
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security and Compliance
Cloud security at AWS is the highest
priority
Compliance is important to meet
industry and local regulations
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Security Groups
Database IP firewall protection
Protocol Port Range Source
TCP 3306 172.31.0.0/16
TCP 3306 “Application
security group”
Corporate address admins
Application tier
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Virtual Private Cloud (Amazon VPC)
Private Network
Security Group for fine grained
control
Availability Zone
AWS Region
10.1.0.0/16
10.1.1.0/24
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
At Rest Encryption
Default key available for encryption
• Cannot share outside account
Recommended to security use separate keys for
each instances
Benefits:
• Ability to share encrypted snapshots across
accounts
• Limited risks of a compromised key
Leveraging AWS Key Management Service (KMS)
Data key 1 Data key 2 Data key 3 Data key 4
Customer master
key(s)
Amazon
RDS
instance 3
Amazon
RDS
instance 2
Amazon
RDS
instance 1
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Forcing SSL on all connections
DB
Instance
Snapshot
Application
Host
SSL
Log Backups
Security Group
VPC
Encryption at Rest
ssl_mode=disable
rds.force_ssl=1 (default 0)
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
IAM Governed Access
Use AWS Identity and Access Management
(IAM) to control who can perform actions on
RDS using web console or “aws” command
line interface
Examples:
1. Deploy, Modify, delete instances
2. Create, delete, promote read replicas
3. Reboot, Start/Stop instance
DBA and Ops
RDS
Controlled with IAM
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database Users Access
Connects to the database instance using
PostgreSQL Clients
Examples:
CREATE USER foobar
ALTER DATABASE testdb RENAME to proddb
Your database
Users and DBAApplications
Controlled with database
grants
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Identity and Access Management (IAM)
authentication
PostgreSQL authentication is managed
externally using IAM
• Available for Amazon RDS PostgreSQL and
Aurora PostgreSQL
Authentication tokens are used to
validate the user
• Tokens have a lifetime of 15 minutes
• Generated using AWS Signature Version 4
New role rds_iam available when IAM
integration is enabled
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Restrict Password changes on PostgreSQL
instances Simplifies integration of home grown or
3rd party password management tools
New database parameter to restrict
password changes
• rds.restrict_password_commands =
on/off
Flexibility to assign a role to allow
certain users to
• GRANT rds_password TO tom;
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Compliance
Singapore MTCS
27001/9001
27017/27018
Aurora
SOC 1, 2, 3
ISO 20001/9001
ISO 27107/27018
PCI
HIPAA BAA
RDS
PostgreSQL
SOC 1, 2, 3
ISO 20001/9001
ISO 27107/27018
PCI
FedRAMP
HIPAA BAA
UK Gov. Programs
Singapore MTCS
EC2
SOC 1, 2, 3
ISO 20001/9001
ISO 27107/27018
PCI
FedRAMP
HIPAA BAA
UK Gov. Programs
Singapore MTCS
Details: https://aws.amazon.com/compliance/services-in-scope/
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database Parameter Groups
Create a standard group based on your
needs (IAM protected)
rds.force_ssl=true
shared_preload_libraries=pgaudit,
auto_explain,pg_stat_statements,pg_re
pack
pgaudit.role = rds_pgaudit
huge_pages = on
Use your standard group or copy to instance
specific parameter group
Avoid typos while editing parameters
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Database server instance types
General purpose (T2/T3)
• 1 vCPU / 1 GB RAM to
8 vCPU 32 GB RAM
• Moderate networking
performance
• Good for smaller or variable
workloads
• T2.micro is eligible for free
tier
General purpose
(M4/M5)
• 2 vCPU / 8 GiB RAM to
96 vCPU 384 GiB RAM
• High performance
networking
• Good for running CPU
intensive workloads (e.g.
WordPress)
Memory optimized
(R4/R5)
• 2 vCPU / 16 GiB RAM to
96 vCPU 768 GiB RAM
• High performance
networking
• Good for query intensive
workloads or high
connection counts
High performance database storage
General purpose (GP2)
• SSD storage
• Maximum of 32 TB
• Latency in milliseconds
• IOPS determined by volume
size
• Bursts to 3,000 IOPS
(applicable below 1.3 TB)
• Affordable performance
Provisioned IOPS (IO1)
• SSD storage
• Maximum of 32 TB
• Single digit millisecond
latencies
• Maximum of 40 K IOPS
• Delivers within 10% of
the IOPS performance
99.9% of the time
• High performance and
consistency
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Automated Backup Snapshots
RDS PostgreSQL Snapshots
• Scheduled daily volume backup of entire instance
• Archive database change logs (WAL)
• 35-day retention
• Multiple copies in each AZ when running multi-AZ
• Taken from standby when running multi-AZ
Aurora PostgreSQL Snapshots
• Automatic, continuous, incremental backups
• No impact on database performance
• 35-day retention
Every day during your
backup window, RDS
creates a storage
volume snapshot of
your database
Every five minutes,
RDS backs up the
transaction logs of
your database
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Availability – Read and Write – Multi-AZ
Physical
Synchronous
Replication
AZ1 AZ2
DNS
cname update
Primary Update
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Read Replicas
• Relieve pressure on your master
node with additional read
capacity
• Bring data close to your
applications in different regions
• Promote a Read Replica to a
master for faster recovery in the
event of disaster
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Read Replicas = Availability
Sync
Replication
Multi-AZ
Async Replication
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cross Region Replicas – Reduce Latency
AZ1 AZ2 AZ1
Async Replication
US-EAST-1 EU-WEST-1
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Cross Region Replicas – DR & Moves
AZ1 AZ2 AZ1
Async Replication
US-EAST-1 EU-WEST-1 EU-WEST-1
AZ2
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Minor version upgrade
Prod
10.1
Prod
10.3
reboot
Minor Versions upgrade on managed services
- Shutdown instance
- Replace version binaries
- Start instance
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Major version upgrade
Prod
9.6
Prod
10
pg_upgrade
Backup Backup
No PITR
Test
9.6
Test
10
pg_upgrade
Restore to a test instance
Application
Testing
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Upgrade with minimum downtime using DMS
Create new target instance
Create Schema on Target ( SCT)
Start a replication instance
Connect to source and target databases
Select tables, schemas, or databases
RDS PostgreSQL 9.5
Application Users
RDS PostgreSQL 10
Let the AWS Database Migration
Service truncate tables and load
data
Uses change data capture to keep
them in sync
Switch applications over to the
target at your convenience
AWS Database
Migration Service
Amazon RDS for PostgreSQL
Support for latest minor releases
• 10.6, 9.6.11, 9.5.15, 9.4.20
60+ extensions supported
• Pglogical, pg_similarity, orafce, pageinspect, amcheck
PostgreSQL Version 11 available in preview
https://aws.amazon.com/rds/databasepreview/
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
PostgreSQL Extensions/Modules Supported
Email: rds-postgres-extensions-request@amazon.com
9.3 Original - 32
9.3 Current - 35
9.4 Current - 39
9.5 Current - 46
Future - ???
9.6 Current - 58
10 Current - 60
New PostgreSQL Extensions Supported
Extensions Description
pglogical Support logical replication –for PostgreSQL 9.6 and PostgreSQL 10
pg_similarity Extension for supporting similar text queries
pageinspect Allows to inspect the contents of database pages at a low level
protobuf Enable Map Box Vector Tiles support in PostGIS
amcheck Allows verify the logical consistency of the structure of indexes
orafce Implements commonly used functions to ease migration from Oracle
prefix Makes it easy to match prefix using @> operator
Replication in Amazon RDS PostgreSQL
• Statement based
• Trigger BasedLogical - SQL
• Standard PostgreSQL
• Extension “pglogical”
• AWS DMS
• Third-party
Logical - Engine
• Read replicas
• Multi-AZPhysical - Engine
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Logical Replication Support
• Set rds.logical_replication parameter to 1
• As user who has rds_replication & rds_superuser role
SELECT * FROM pg_create_logical_replication_slot('test_slot',
'test_decoding');
pg_recvlogical -d postgres --slot test_slot -U master --host $rds_hostname -f - --
start
• Support for Event Triggers
• Now support
• Native Logical replication
• Pglogical
• wal2json
• decoder_raw
RDS
Postgres
RDS
Postgres
Logical
Replica
Redshift
EC2
Postgres
On
Premise
Postgres
DMS
RDS/Aurora
PostgreSQL
Custom
Logical
Handler
NoSQL
DB
Monitoring Amazon RDS
Performance
Insights
• Measures database load to help
you identify bottlenecks
• Top SQL/most intensive queries
• Adjustable timeframe: hour, day, week,
longer
• Compliments other key tools
• query execution plans
• pg_stat_statements
Monitoring Amazon RDS
Enhanced
Monitoring
Enhanced Monitoring for Amazon RDS
Access to over 50 CPU, memory, file
system, and disk I/O metrics
Access to top processes
As low as 1 second intervals
Monitoring Amazon RDS
Amazon
CloudWatch Amazon CloudWatch metrics
Displayed in the Amazon RDS Console or
personalized CloudWatch dashboards
As low as one minute intervals
Amazon CloudWatch alarms
Trigger actions based on a metric value
relative to a threshold you set
Upload PostgreSQL Logs to Amazon Cloudwatch
Amazon
CloudWatch Amazon CloudWatch
Upload PostgreSQL logs to CloudWatch
Export logs to S3 from CloudWatch
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Forums
EC2
• https://forums.aws.amazon.com/forum.jspa?forumID=30
Amazon RDS
• https://forums.aws.amazon.com/forum.jspa?forumID=60
Aurora with PostgreSQL compatibility
• https://forums.aws.amazon.com/forum.jspa?forumID=227
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon RDS PostgreSQL Customers
Thank you!
aws.amazon.com/rds/postgresql

More Related Content

What's hot

Postgres & Red Hat Cluster Suite
Postgres & Red Hat Cluster SuitePostgres & Red Hat Cluster Suite
Postgres & Red Hat Cluster Suite
EDB
 
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQLBlue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
Blue Medora
 
Postgres on OpenStack
Postgres on OpenStackPostgres on OpenStack
Postgres on OpenStack
EDB
 
PostreSQL HA and DR Setup & Use Cases
PostreSQL HA and DR Setup & Use CasesPostreSQL HA and DR Setup & Use Cases
PostreSQL HA and DR Setup & Use Cases
Ashnikbiz
 
PostgreSQL on Solaris
PostgreSQL on SolarisPostgreSQL on Solaris
PostgreSQL on Solaris
Theo Schlossnagle
 
NGENSTOR_ODA_P2V_V5
NGENSTOR_ODA_P2V_V5NGENSTOR_ODA_P2V_V5
NGENSTOR_ODA_P2V_V5UniFabric
 
5 Steps to PostgreSQL Performance
5 Steps to PostgreSQL Performance5 Steps to PostgreSQL Performance
5 Steps to PostgreSQL Performance
Command Prompt., Inc
 
SOUG_Deployment__Automation_DB
SOUG_Deployment__Automation_DBSOUG_Deployment__Automation_DB
SOUG_Deployment__Automation_DBUniFabric
 
Built-in Replication in PostgreSQL
Built-in Replication in PostgreSQLBuilt-in Replication in PostgreSQL
Built-in Replication in PostgreSQL
Masao Fujii
 
Replication Solutions for PostgreSQL
Replication Solutions for PostgreSQLReplication Solutions for PostgreSQL
Replication Solutions for PostgreSQLPeter Eisentraut
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
EDB
 
PostgreSQL Query Cache - "pqc"
PostgreSQL Query Cache - "pqc"PostgreSQL Query Cache - "pqc"
PostgreSQL Query Cache - "pqc"
Uptime Technologies LLC
 
PostgreSQL Disaster Recovery with Barman
PostgreSQL Disaster Recovery with BarmanPostgreSQL Disaster Recovery with Barman
PostgreSQL Disaster Recovery with BarmanGabriele Bartolini
 
Understanding PostgreSQL LW Locks
Understanding PostgreSQL LW LocksUnderstanding PostgreSQL LW Locks
Understanding PostgreSQL LW LocksJignesh Shah
 
PostgreSQL9.3 Switchover/Switchback
PostgreSQL9.3 Switchover/SwitchbackPostgreSQL9.3 Switchover/Switchback
PostgreSQL9.3 Switchover/Switchback
Vibhor Kumar
 
Postgres Plus Cloud Database on OpenStack
Postgres Plus Cloud Database on OpenStackPostgres Plus Cloud Database on OpenStack
Postgres Plus Cloud Database on OpenStack
Kamesh Pemmaraju
 
SQL Server vs Postgres
SQL Server vs PostgresSQL Server vs Postgres
Deploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQLDeploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQL
Denish Patel
 
Enterprise PostgreSQL - EDB's answer to conventional Databases
Enterprise PostgreSQL - EDB's answer to conventional DatabasesEnterprise PostgreSQL - EDB's answer to conventional Databases
Enterprise PostgreSQL - EDB's answer to conventional Databases
Ashnikbiz
 
PostgreSQL replication
PostgreSQL replicationPostgreSQL replication
PostgreSQL replication
Masao Fujii
 

What's hot (20)

Postgres & Red Hat Cluster Suite
Postgres & Red Hat Cluster SuitePostgres & Red Hat Cluster Suite
Postgres & Red Hat Cluster Suite
 
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQLBlue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
Blue Medora Oracle Enterprise Manager (EM12c) Plug-in for PostgreSQL
 
Postgres on OpenStack
Postgres on OpenStackPostgres on OpenStack
Postgres on OpenStack
 
PostreSQL HA and DR Setup & Use Cases
PostreSQL HA and DR Setup & Use CasesPostreSQL HA and DR Setup & Use Cases
PostreSQL HA and DR Setup & Use Cases
 
PostgreSQL on Solaris
PostgreSQL on SolarisPostgreSQL on Solaris
PostgreSQL on Solaris
 
NGENSTOR_ODA_P2V_V5
NGENSTOR_ODA_P2V_V5NGENSTOR_ODA_P2V_V5
NGENSTOR_ODA_P2V_V5
 
5 Steps to PostgreSQL Performance
5 Steps to PostgreSQL Performance5 Steps to PostgreSQL Performance
5 Steps to PostgreSQL Performance
 
SOUG_Deployment__Automation_DB
SOUG_Deployment__Automation_DBSOUG_Deployment__Automation_DB
SOUG_Deployment__Automation_DB
 
Built-in Replication in PostgreSQL
Built-in Replication in PostgreSQLBuilt-in Replication in PostgreSQL
Built-in Replication in PostgreSQL
 
Replication Solutions for PostgreSQL
Replication Solutions for PostgreSQLReplication Solutions for PostgreSQL
Replication Solutions for PostgreSQL
 
Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA Best Practices for Becoming an Exceptional Postgres DBA
Best Practices for Becoming an Exceptional Postgres DBA
 
PostgreSQL Query Cache - "pqc"
PostgreSQL Query Cache - "pqc"PostgreSQL Query Cache - "pqc"
PostgreSQL Query Cache - "pqc"
 
PostgreSQL Disaster Recovery with Barman
PostgreSQL Disaster Recovery with BarmanPostgreSQL Disaster Recovery with Barman
PostgreSQL Disaster Recovery with Barman
 
Understanding PostgreSQL LW Locks
Understanding PostgreSQL LW LocksUnderstanding PostgreSQL LW Locks
Understanding PostgreSQL LW Locks
 
PostgreSQL9.3 Switchover/Switchback
PostgreSQL9.3 Switchover/SwitchbackPostgreSQL9.3 Switchover/Switchback
PostgreSQL9.3 Switchover/Switchback
 
Postgres Plus Cloud Database on OpenStack
Postgres Plus Cloud Database on OpenStackPostgres Plus Cloud Database on OpenStack
Postgres Plus Cloud Database on OpenStack
 
SQL Server vs Postgres
SQL Server vs PostgresSQL Server vs Postgres
SQL Server vs Postgres
 
Deploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQLDeploying Maximum HA Architecture With PostgreSQL
Deploying Maximum HA Architecture With PostgreSQL
 
Enterprise PostgreSQL - EDB's answer to conventional Databases
Enterprise PostgreSQL - EDB's answer to conventional DatabasesEnterprise PostgreSQL - EDB's answer to conventional Databases
Enterprise PostgreSQL - EDB's answer to conventional Databases
 
PostgreSQL replication
PostgreSQL replicationPostgreSQL replication
PostgreSQL replication
 

Similar to Deep Dive into RDS PostgreSQL Universe

PostgreSQL
PostgreSQL PostgreSQL
PostgreSQL
Amazon Web Services
 
PostgreSQL
PostgreSQLPostgreSQL
Oracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San FranciscoOracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San Francisco
Amazon Web Services
 
Oracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SFOracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SF
Amazon Web Services
 
Oracle and SQL Server on the Cloud
Oracle and SQL Server on the CloudOracle and SQL Server on the Cloud
Oracle and SQL Server on the Cloud
Amazon Web Services
 
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth EagarRelational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
Amazon Web Services
 
Oracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill BaldwinOracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill Baldwin
Amazon Web Services
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
Amazon Web Services
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
Amazon Web Services
 
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
Amazon Web Services
 
Moving your commercial databases to Amazon RDS
Moving your commercial databases to Amazon RDSMoving your commercial databases to Amazon RDS
Moving your commercial databases to Amazon RDSAmazon Web Services
 
Amazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
Amazon RDS: Deep Dive - SRV310 - Chicago AWS SummitAmazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
Amazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
Amazon Web Services
 
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
Amazon Web Services
 
Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310 Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310
Amazon Web Services
 
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon Web Services
 
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
Amazon Web Services
 
Managed Relational Databases
Managed Relational DatabasesManaged Relational Databases
Managed Relational Databases
Amazon Web Services
 
What's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS SummitWhat's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS Summit
Amazon Web Services
 
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Amazon Web Services
 
Intro to Open Source Databases on AWS - AWS Online Tech Talks
Intro to Open Source Databases on AWS - AWS Online Tech TalksIntro to Open Source Databases on AWS - AWS Online Tech Talks
Intro to Open Source Databases on AWS - AWS Online Tech Talks
Amazon Web Services
 

Similar to Deep Dive into RDS PostgreSQL Universe (20)

PostgreSQL
PostgreSQL PostgreSQL
PostgreSQL
 
PostgreSQL
PostgreSQLPostgreSQL
PostgreSQL
 
Oracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San FranciscoOracle & SQL Server on the Cloud: Database Week San Francisco
Oracle & SQL Server on the Cloud: Database Week San Francisco
 
Oracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SFOracle & SQL Server on the Cloud: Database Week SF
Oracle & SQL Server on the Cloud: Database Week SF
 
Oracle and SQL Server on the Cloud
Oracle and SQL Server on the CloudOracle and SQL Server on the Cloud
Oracle and SQL Server on the Cloud
 
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth EagarRelational Database Services on AWS - Bill Baldwin, Gareth Eagar
Relational Database Services on AWS - Bill Baldwin, Gareth Eagar
 
Oracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill BaldwinOracle and SQL Server on the Cloud - Bill Baldwin
Oracle and SQL Server on the Cloud - Bill Baldwin
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
ENT305 Migrating Your Databases to AWS: Deep Dive on Amazon Relational Databa...
 
Moving your commercial databases to Amazon RDS
Moving your commercial databases to Amazon RDSMoving your commercial databases to Amazon RDS
Moving your commercial databases to Amazon RDS
 
Amazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
Amazon RDS: Deep Dive - SRV310 - Chicago AWS SummitAmazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
Amazon RDS: Deep Dive - SRV310 - Chicago AWS Summit
 
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
What's New in Amazon Relational Database Service (DAT203) - AWS re:Invent 2018
 
Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310 Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310
 
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
Amazon RDS & Amazon Aurora: Relational Databases on AWS - SRV206 - Atlanta AW...
 
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
10 Hacks for Optimizing MySQL in the Cloud - AWS Online Tech Talks
 
Managed Relational Databases
Managed Relational DatabasesManaged Relational Databases
Managed Relational Databases
 
What's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS SummitWhat's new in Amazon RDS - ADB206 - New York AWS Summit
What's new in Amazon RDS - ADB206 - New York AWS Summit
 
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
Best Practices for Running Oracle Databases on Amazon RDS (DAT317) - AWS re:I...
 
Intro to Open Source Databases on AWS - AWS Online Tech Talks
Intro to Open Source Databases on AWS - AWS Online Tech TalksIntro to Open Source Databases on AWS - AWS Online Tech Talks
Intro to Open Source Databases on AWS - AWS Online Tech Talks
 

More from Jignesh Shah

PostgreSQL Extensions: A deeper look
PostgreSQL Extensions:  A deeper lookPostgreSQL Extensions:  A deeper look
PostgreSQL Extensions: A deeper look
Jignesh Shah
 
PostgreSQL High Availability in a Containerized World
PostgreSQL High Availability in a Containerized WorldPostgreSQL High Availability in a Containerized World
PostgreSQL High Availability in a Containerized World
Jignesh Shah
 
SFPUG - DVDStore Performance Benchmark and PostgreSQL
SFPUG - DVDStore Performance Benchmark and PostgreSQLSFPUG - DVDStore Performance Benchmark and PostgreSQL
SFPUG - DVDStore Performance Benchmark and PostgreSQL
Jignesh Shah
 
Best Practices of running PostgreSQL in Virtual Environments
Best Practices of running PostgreSQL in Virtual EnvironmentsBest Practices of running PostgreSQL in Virtual Environments
Best Practices of running PostgreSQL in Virtual Environments
Jignesh Shah
 
OLTP Performance Benchmark Review
OLTP Performance Benchmark ReviewOLTP Performance Benchmark Review
OLTP Performance Benchmark ReviewJignesh Shah
 
Introduction to PostgreSQL for System Administrators
Introduction to PostgreSQL for System AdministratorsIntroduction to PostgreSQL for System Administrators
Introduction to PostgreSQL for System AdministratorsJignesh Shah
 

More from Jignesh Shah (6)

PostgreSQL Extensions: A deeper look
PostgreSQL Extensions:  A deeper lookPostgreSQL Extensions:  A deeper look
PostgreSQL Extensions: A deeper look
 
PostgreSQL High Availability in a Containerized World
PostgreSQL High Availability in a Containerized WorldPostgreSQL High Availability in a Containerized World
PostgreSQL High Availability in a Containerized World
 
SFPUG - DVDStore Performance Benchmark and PostgreSQL
SFPUG - DVDStore Performance Benchmark and PostgreSQLSFPUG - DVDStore Performance Benchmark and PostgreSQL
SFPUG - DVDStore Performance Benchmark and PostgreSQL
 
Best Practices of running PostgreSQL in Virtual Environments
Best Practices of running PostgreSQL in Virtual EnvironmentsBest Practices of running PostgreSQL in Virtual Environments
Best Practices of running PostgreSQL in Virtual Environments
 
OLTP Performance Benchmark Review
OLTP Performance Benchmark ReviewOLTP Performance Benchmark Review
OLTP Performance Benchmark Review
 
Introduction to PostgreSQL for System Administrators
Introduction to PostgreSQL for System AdministratorsIntroduction to PostgreSQL for System Administrators
Introduction to PostgreSQL for System Administrators
 

Recently uploaded

Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
Globus
 
Enterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptxEnterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptx
QuickwayInfoSystems3
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Neo4j
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
XfilesPro
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
Nidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, TipsNidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, Tips
vrstrong314
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
Globus
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
Google
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 

Recently uploaded (20)

Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Enhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdfEnhancing Research Orchestration Capabilities at ORNL.pdf
Enhancing Research Orchestration Capabilities at ORNL.pdf
 
Enterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptxEnterprise Software Development with No Code Solutions.pptx
Enterprise Software Development with No Code Solutions.pptx
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
Atelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissancesAtelier - Innover avec l’IA Générative et les graphes de connaissances
Atelier - Innover avec l’IA Générative et les graphes de connaissances
 
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, BetterWebinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
Webinar: Salesforce Document Management 2.0 - Smarter, Faster, Better
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
Nidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, TipsNidhi Software Price. Fact , Costs, Tips
Nidhi Software Price. Fact , Costs, Tips
 
Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024Globus Compute Introduction - GlobusWorld 2024
Globus Compute Introduction - GlobusWorld 2024
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 

Deep Dive into RDS PostgreSQL Universe

  • 1. Jignesh Shah, Amazon RDS PGConf India 2019 Deep Dive on Amazon RDS PostgreSQL
  • 2. PostgreSQL Robust feature sets and extensions Multi-Version Concurrency Control (MVCC), point in time recovery, granular access controls, tablespaces, asynchronous replication, nested transactions, online/hot backups, a refined query planner/optimizer, and write ahead logging Supports international character sets, multi-byte character encodings, Unicode, and it is locale-aware for sorting, case- sensitivity, and formatting Reliable High fault tolerance, ACID compliance, and full support for foreign keys, joins, views, triggers, and stored procedures Standards-compliant Includes most SQL:2008 data types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and TIMESTAMP. Supports storage of binary large objects, including pictures, sounds, or video
  • 3. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. PostgreSQL Deployment Options On-Premises Hosted EC2 DB Services Managed
  • 4. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Full control over parameters of server, OS, and database Remote access to host via ssh Customer can install 3rd party applications and extensions Self Managed PostgreSQL • Customer has full responsibility for upgrades and backup • Customer has major responsibility for security • High Availability and replication are expensive, complex, and require a lot of engineering Running PostgreSQL on EC2
  • 5. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Relational Database Service Multi-engine support: Amazon Aurora, MySQL, MariaDB, PostgreSQL, Oracle, SQL Server Automated provisioning, patching, scaling, replicas, backup/restore, failover High availability with RDS Multi-AZ and Amazon Aurora
  • 6. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Security and Compliance Cloud security at AWS is the highest priority Compliance is important to meet industry and local regulations
  • 7. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Security Groups Database IP firewall protection Protocol Port Range Source TCP 3306 172.31.0.0/16 TCP 3306 “Application security group” Corporate address admins Application tier
  • 8. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Virtual Private Cloud (Amazon VPC) Private Network Security Group for fine grained control Availability Zone AWS Region 10.1.0.0/16 10.1.1.0/24
  • 9. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. At Rest Encryption Default key available for encryption • Cannot share outside account Recommended to security use separate keys for each instances Benefits: • Ability to share encrypted snapshots across accounts • Limited risks of a compromised key Leveraging AWS Key Management Service (KMS) Data key 1 Data key 2 Data key 3 Data key 4 Customer master key(s) Amazon RDS instance 3 Amazon RDS instance 2 Amazon RDS instance 1
  • 10. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Forcing SSL on all connections DB Instance Snapshot Application Host SSL Log Backups Security Group VPC Encryption at Rest ssl_mode=disable rds.force_ssl=1 (default 0)
  • 11. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. IAM Governed Access Use AWS Identity and Access Management (IAM) to control who can perform actions on RDS using web console or “aws” command line interface Examples: 1. Deploy, Modify, delete instances 2. Create, delete, promote read replicas 3. Reboot, Start/Stop instance DBA and Ops RDS Controlled with IAM
  • 12. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Database Users Access Connects to the database instance using PostgreSQL Clients Examples: CREATE USER foobar ALTER DATABASE testdb RENAME to proddb Your database Users and DBAApplications Controlled with database grants
  • 13. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Identity and Access Management (IAM) authentication PostgreSQL authentication is managed externally using IAM • Available for Amazon RDS PostgreSQL and Aurora PostgreSQL Authentication tokens are used to validate the user • Tokens have a lifetime of 15 minutes • Generated using AWS Signature Version 4 New role rds_iam available when IAM integration is enabled
  • 14. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Restrict Password changes on PostgreSQL instances Simplifies integration of home grown or 3rd party password management tools New database parameter to restrict password changes • rds.restrict_password_commands = on/off Flexibility to assign a role to allow certain users to • GRANT rds_password TO tom;
  • 15. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Compliance Singapore MTCS 27001/9001 27017/27018 Aurora SOC 1, 2, 3 ISO 20001/9001 ISO 27107/27018 PCI HIPAA BAA RDS PostgreSQL SOC 1, 2, 3 ISO 20001/9001 ISO 27107/27018 PCI FedRAMP HIPAA BAA UK Gov. Programs Singapore MTCS EC2 SOC 1, 2, 3 ISO 20001/9001 ISO 27107/27018 PCI FedRAMP HIPAA BAA UK Gov. Programs Singapore MTCS Details: https://aws.amazon.com/compliance/services-in-scope/
  • 16. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Database Parameter Groups Create a standard group based on your needs (IAM protected) rds.force_ssl=true shared_preload_libraries=pgaudit, auto_explain,pg_stat_statements,pg_re pack pgaudit.role = rds_pgaudit huge_pages = on Use your standard group or copy to instance specific parameter group Avoid typos while editing parameters
  • 17. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Database server instance types General purpose (T2/T3) • 1 vCPU / 1 GB RAM to 8 vCPU 32 GB RAM • Moderate networking performance • Good for smaller or variable workloads • T2.micro is eligible for free tier General purpose (M4/M5) • 2 vCPU / 8 GiB RAM to 96 vCPU 384 GiB RAM • High performance networking • Good for running CPU intensive workloads (e.g. WordPress) Memory optimized (R4/R5) • 2 vCPU / 16 GiB RAM to 96 vCPU 768 GiB RAM • High performance networking • Good for query intensive workloads or high connection counts
  • 18. High performance database storage General purpose (GP2) • SSD storage • Maximum of 32 TB • Latency in milliseconds • IOPS determined by volume size • Bursts to 3,000 IOPS (applicable below 1.3 TB) • Affordable performance Provisioned IOPS (IO1) • SSD storage • Maximum of 32 TB • Single digit millisecond latencies • Maximum of 40 K IOPS • Delivers within 10% of the IOPS performance 99.9% of the time • High performance and consistency
  • 19. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Automated Backup Snapshots RDS PostgreSQL Snapshots • Scheduled daily volume backup of entire instance • Archive database change logs (WAL) • 35-day retention • Multiple copies in each AZ when running multi-AZ • Taken from standby when running multi-AZ Aurora PostgreSQL Snapshots • Automatic, continuous, incremental backups • No impact on database performance • 35-day retention Every day during your backup window, RDS creates a storage volume snapshot of your database Every five minutes, RDS backs up the transaction logs of your database
  • 20. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Availability – Read and Write – Multi-AZ Physical Synchronous Replication AZ1 AZ2 DNS cname update Primary Update
  • 21. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Read Replicas • Relieve pressure on your master node with additional read capacity • Bring data close to your applications in different regions • Promote a Read Replica to a master for faster recovery in the event of disaster
  • 22. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Read Replicas = Availability Sync Replication Multi-AZ Async Replication
  • 23. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cross Region Replicas – Reduce Latency AZ1 AZ2 AZ1 Async Replication US-EAST-1 EU-WEST-1
  • 24. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Cross Region Replicas – DR & Moves AZ1 AZ2 AZ1 Async Replication US-EAST-1 EU-WEST-1 EU-WEST-1 AZ2
  • 25. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Minor version upgrade Prod 10.1 Prod 10.3 reboot Minor Versions upgrade on managed services - Shutdown instance - Replace version binaries - Start instance
  • 26. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Major version upgrade Prod 9.6 Prod 10 pg_upgrade Backup Backup No PITR Test 9.6 Test 10 pg_upgrade Restore to a test instance Application Testing
  • 27. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Upgrade with minimum downtime using DMS Create new target instance Create Schema on Target ( SCT) Start a replication instance Connect to source and target databases Select tables, schemas, or databases RDS PostgreSQL 9.5 Application Users RDS PostgreSQL 10 Let the AWS Database Migration Service truncate tables and load data Uses change data capture to keep them in sync Switch applications over to the target at your convenience AWS Database Migration Service
  • 28. Amazon RDS for PostgreSQL Support for latest minor releases • 10.6, 9.6.11, 9.5.15, 9.4.20 60+ extensions supported • Pglogical, pg_similarity, orafce, pageinspect, amcheck PostgreSQL Version 11 available in preview https://aws.amazon.com/rds/databasepreview/
  • 29. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. PostgreSQL Extensions/Modules Supported Email: rds-postgres-extensions-request@amazon.com 9.3 Original - 32 9.3 Current - 35 9.4 Current - 39 9.5 Current - 46 Future - ??? 9.6 Current - 58 10 Current - 60
  • 30. New PostgreSQL Extensions Supported Extensions Description pglogical Support logical replication –for PostgreSQL 9.6 and PostgreSQL 10 pg_similarity Extension for supporting similar text queries pageinspect Allows to inspect the contents of database pages at a low level protobuf Enable Map Box Vector Tiles support in PostGIS amcheck Allows verify the logical consistency of the structure of indexes orafce Implements commonly used functions to ease migration from Oracle prefix Makes it easy to match prefix using @> operator
  • 31. Replication in Amazon RDS PostgreSQL • Statement based • Trigger BasedLogical - SQL • Standard PostgreSQL • Extension “pglogical” • AWS DMS • Third-party Logical - Engine • Read replicas • Multi-AZPhysical - Engine
  • 32. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Logical Replication Support • Set rds.logical_replication parameter to 1 • As user who has rds_replication & rds_superuser role SELECT * FROM pg_create_logical_replication_slot('test_slot', 'test_decoding'); pg_recvlogical -d postgres --slot test_slot -U master --host $rds_hostname -f - -- start • Support for Event Triggers • Now support • Native Logical replication • Pglogical • wal2json • decoder_raw RDS Postgres RDS Postgres Logical Replica Redshift EC2 Postgres On Premise Postgres DMS RDS/Aurora PostgreSQL Custom Logical Handler NoSQL DB
  • 33. Monitoring Amazon RDS Performance Insights • Measures database load to help you identify bottlenecks • Top SQL/most intensive queries • Adjustable timeframe: hour, day, week, longer • Compliments other key tools • query execution plans • pg_stat_statements
  • 34. Monitoring Amazon RDS Enhanced Monitoring Enhanced Monitoring for Amazon RDS Access to over 50 CPU, memory, file system, and disk I/O metrics Access to top processes As low as 1 second intervals
  • 35. Monitoring Amazon RDS Amazon CloudWatch Amazon CloudWatch metrics Displayed in the Amazon RDS Console or personalized CloudWatch dashboards As low as one minute intervals Amazon CloudWatch alarms Trigger actions based on a metric value relative to a threshold you set
  • 36. Upload PostgreSQL Logs to Amazon Cloudwatch Amazon CloudWatch Amazon CloudWatch Upload PostgreSQL logs to CloudWatch Export logs to S3 from CloudWatch
  • 37. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Forums EC2 • https://forums.aws.amazon.com/forum.jspa?forumID=30 Amazon RDS • https://forums.aws.amazon.com/forum.jspa?forumID=60 Aurora with PostgreSQL compatibility • https://forums.aws.amazon.com/forum.jspa?forumID=227
  • 38. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon RDS PostgreSQL Customers