designing scalable oracle database solutions in...

21
Designing Scalable Oracle Database Solutions in AWS Presented by Nick Walter, Principal Architect April 2, 2019

Upload: others

Post on 10-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

Designing Scalable Oracle Database Solutions in AWS

Presented by

Nick Walter, Principal Architect April 2, 2019

Page 2: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 2

About House of Brick

• Founded in 1998

• Oracle, Microsoft, AWS & VMware

• Focus on Business Critical Enterprise

Applications

• House of Brick Services

• Cloud and virtualization architectures

• Oracle and MS license review and optimization

• Application re-platforming and data migration

• High availability and disaster recovery strategies

Page 3: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 3

Amazon RDS

Service endpoint

Oracle DB

instance

VPC subnet VPC subnet VPC subnet

CloudHSM

Service endpoiint

Control

instanceCloudHSM

user

Internet gateway

Port 1792 Port 22 (SSH)

Port 22 (SSH)

Intro to Oracle DB in AWS

Page 4: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 4

2006 2010 2015 2018 20?? • Traditional self managed Oracle installation

• Multiple O/S choices• A few feature limitations

• Completely AWS managed DB service

• Feature limitations• Version limitations• License included option

RDS EC2

Amazon RDS vs EC2

Page 5: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 5

2006 2010 2015 2018 20??

Oracle DB Cloud Solution Cost Example

Oracle License $1,144,000.00

Oracle SULS $755,040.00

r5.4xlarge $10,458.00

1TB EBS Volume $3,600.00

3 Year Costs

Oracle License Oracle SULS r5.4xlarge 1TB EBS Volume

Page 6: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 6

Principles of Oracle DB Architecting in AWS

• Oracle processor licenses are most expensive component• Architect to maximize license usage

• Think about scalability in cloud terms• In the cloud, more CPU/RAM/IOPS are always a few clicks away

Page 7: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

Oracle DB Storage In AWS Elastic Block Store

Page 8: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 8

EBS Volume Types

GP2 IO1 ST1 SC1

General Purpose SSD

Provisioned IOPS SSD

Throughput Optimized HDD

Cold StorageHDD

• O/S volumes• Logfiles• Archive logs• Tablespaces

• Tablespaces• Redo logs• Flashback logs

• RMAN backups• Cold tablespaces

• Tablespaces• Redo logs• Flashback logs

Page 9: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 9

Oracle DB Storage in AWS

• A well tuned database is always limited by I/O

• Volume type is flexible, provisioned IOPS are very flexible

• Volume I/O limits versus instance I/O limits

• Instance local storage is fast and dangerous• NVMe SSD in modern instance families

• Does not count against instance EBS I/O limits

• Does not cost anything (included with instance price)

• Does not survive instance reboot

Page 10: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 10

The Case for RAID

• Software RAID is an option in EC2

• Interesting software RAID use case: RAID 0 volumes of GP2• Build high-IOPS RAID volume inexpensively

• Savings tempting at large scale

• Interesting software RAID use case: RAID 1 instance store/EBS volumes• Linux allows “write-mostly” config

• EBS volume handles only writes

• Instance store SSD handles reads

Page 11: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

Oracle DB Compute in AWS EC2 and RDS

Page 12: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 12

EC2 Instance Families

IOPS Optimized General Purpose

CPU Optimized RAM Optimized

• T-Series• M-Series

• R-Series• X1-Series

• C-Series

• I-Series

Page 13: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 13

AWS Optimize CPU Feature

R5.LARGE• Optimize CPU Allows• Enable/Disable hyperthreading• Reduce vCPU count on instances• No price break on disabled vCPUs• Applicable to EC2 and RDS

Page 14: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 14

EC2 Dedicated Hosts

C5.2xlarge C5.2xlarge C5.2xlarge C5.2xlarge

C5 Dedicated Host

C5.2xlargeC5.2xlargeC5.2xlargeC5.2xlarge

Page 15: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 15

Oracle High Availability in AWS

• Multi-AZ High Availability (HA)• RDS: multi-AZ deployment

• EC2: use replication

• Multi-Region replication • AWS database migration service

• Oracle GoldenGate/SharePlex/SymmetricDS

• EC2: Oracle Data Guard

Page 16: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

Oracle DB Operational Best Practices in AWS

Page 17: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 17

Oracle Backups in AWS

RDS EC2 S3• RDS automatic snapshot

backups to S3• RDS manual snapshot

backups to S3

• Traditional RMAN backups• Traditional Data Pump

exports• Cold filesystem level

backups

• Great for Oracle backups

• Encrypted at rest• Immutable buckets• Cross region replication

Page 18: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 18

Operational Oracle Considerations in AWS

• Log Monitoring• ElasticSearch/Splunk

• CloudWatch logs

• Oracle Enterprise Manager

• Stack Auditability• Oracle audit logs

• AWS config

• AWS CloudTrail

• Database Monitoring• Oracle Enterprise Manager

• CloudWatch

Page 19: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

©2019 House of Brick Technologies, LLC Visit us at houseofbrick.com and follow us on Twitter: @houseofbrick

Home 19

Further Resources from HoB

White Paper: RAC on VMware Cloud

on AWS

White Paper: Oracle on VMware Cloud on

AWS TCO

Blog: Running Oracle in EC2? Leverage AWS’ New Optimize CPUs Feature

Presentation: Migrating Critical Oracle Workloads to the Cloud

Page 20: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

Q&A

Page 21: Designing Scalable Oracle Database Solutions in AWShouseofbrick.com/.../uploads/2019/04/HouseofBrick-Scalable-Oracle … · •Oracle, Microsoft, AWS & VMware •Focus on Business

877.780.7038 www.houseofbrick.com

Thank [email protected]