SlideShare a Scribd company logo
1 of 20
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SQL Server on AWS
Nickil Somanna
nickil@amazon.com
Solutions Architect
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
• Consider RDS first
• Focus on:
– Business value tasks
– High-level tuning tasks
– Schema optimization
• No in-house database expertise
• Need control over:
– DB instance & OS
– Backups, Replication
– Clustering
– sysadmin role
• Use features, size or performance
options not available in Amazon RDS
• S Q L S E R V E R o n A M A Z O N E C 2• A M A Z O N R D S S Q L S E R V E R
WHICH OPTION IS RIGHT FOR YOU?
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
• AWS Managed Service
• Managed deployment, patching, Multi-AZ
automatic HA, backups and point in time
restore
• Auditable centralized engine parameter
tuning
• No direct instance or file system access
• Some features are restricted
• Self-Managed Solution
• Always on Availability Groups for HA
• Maintenance Plans for backups
• Administrator access to instance and DBs
• Custom monitoring agents
• Run SSRS, SSIS, SSAS on instance
• Hybrid Architectures
• legacy versions (self-install)
• S Q L S E R V E R o n A M A Z O N E C 2• A M A Z O N R D S S Q L S E R V E R
THE DIFFERENCES
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SQL SERVER ON AMAZON EC2
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
• Storage I/O contention is one of
the main causes for poor SQL
Server performance
• Use EBS Optimized EC2 Instances
• Match storage technology with I/O
pattern of workload components
• Match instance type to IOPS and
throughput needs of workload
• Create a single volume for data and
logs
SQL Server
Example Volume Layout
C:
Boot on General Purpose SSD EBS Volume
D:
Data and logs on Provisioned IOPS EBS Volume
K:
Backups on Magnetic ST1 or SC1 EBS Volumes
Z:
Tempdb on instance storage (if available)
SQL SERVER STORAGE OPTIMIZATION
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
EBS OPTIMIZATION & VOLUMES
• Plan for EC2 Instance EBS Optimized Throughput and IOPS capacity
• Plan for EBS Volume Throughput and IOPS capacity
• Stripe EBS PIOPS volumes for more than 20,000 IOPS or 320MB/s
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
EBS OPTIMIZATION AND VOLUMES
• Plan for EC2 Instance EBS Optimized Throughput and IOPS capacity
• Plan for EBS Volume Throughput and IOPS capacity
• Stripe EBS PIOPS volumes for more than 20,000 IOPS or 320MB/s
r4 family
r4.large
2 vCPUs/15.25 GiB RAM
Max EBS bandwidth: 425 Mbps
Max IOPS (16KB): 3,000
Expected throughput: 53 MB/s
… or ~1250 IOPS @ 44KB IO size
r4.16xlarge
64 vCPUs/488 GiB RAM
Max EBS bandwidth: 14k Mbps
Max IOPS (16KB): 75,000
Expected throughput: 1,750 MB/s
… or ~40,700 IOPS @ 44KB IO size
1TB GP2 Volume
Max. IOPS (16KB): 3,000
Max. throughput: 160 MB/s
4 x 1TB PIOPS @ 20k IOPS
Expected IOPS (16KB): 80k
Max. throughput: 1,280 MB/s
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
TEMPDB OPTIMIZATION
• Consider:
• Using multiple tempdb files (1:1 mapping with CPUs, up to 8)
• Striping multiple instance storage disks together for higher I/O
• Changing SQL Server service startup to Automatic (Delayed Start) to
allow instance storage to provision
• Scripting/automating configuration on instance boot
• Striping solution by consulting partner IFM Ltd.
• http://www.ifm.net.nz/cookbooks/amazon-sql-tempdb/index.html
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SQL SERVER HA AND DR ON AMAZON EC2
• Use multiple Availability Zones
• Instance-level and AZ-level failure tolerance
• Synchronous replication
• Options
• Enterprise Edition: Always On Availability Groups
• Standard Edition:
• Basic Always On Availability Groups (2016+)
• Failover cluster instances using partner block-level replication solution
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
ALWAYS ON AVAILABILITY GROUPS (AG)
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
MULTI-REGION ALWAYS ON AG
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
FAILOVER CLUSTER INSTANCES ON EC2
SIOS DataKeeper
Cluster Edition
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
AMAZON RDS FOR SQL SERVER
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
STORAGE PERFORMANCE PLANNING
Scalable Storage
• Maximum storage: 16TB
• Maximum IOPS: 20,000
• Amazon RDS storage throughput
depends on DB instance class (see equivalent
EC2 EBS Optimized instance type)
Monitoring I/O efficiency:
• CloudWatch Metric Average Queue Depth
- I/O requests waiting to be serviced
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
RDS FOR SQL SERVER HIGH AVAILABILITY
Amazon RDS for SQL Server Multi-AZ
• Principal and secondary DB nodes in
different Availability Zones (AZ)
• Witness in a 3rd AZ
• Leverages SQL Server DB mirroring
• Automatic failover (typically, 1-2 minute)
• Consider mirroring impact on change heavy
workloads
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
AMAZON RDS MULTI-AZ IN DEPTH
Failure scenarios mitigated:
• Loss of availability in primary AZ
• Loss of network connectivity to principal DB node
• Compute unit or storage failure on principal DB node
• Failover process:
• Implement retry logic at the application layer – trigger manual failover to test
Mirroring
stopped
Address apply
debt
Promote to
master
Change DNS
endpoint
Provision new
secondary
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
• Centralized management of DB
engine parameters
• Ability to consistently apply
configurations to DB instances
• Auditability of configuration
• Sensible defaults work for most use
cases
• Ability to create custom parameter
groups
• Used for enabling additional features
• Ability to create custom option
groups
• Supported options:
• Transparent Data Encryption
(TDE) in Enterprise Edition only
• S3 Backup & Restore
• O P T I O N G R O U P S• P A R A M E T E R G R O U P S
CENTRALIZED DB ENGINE CONFIGURATION
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
RDS FOR SQL SERVER DATA MOVEMENT
.BAK File Import and Export
Leverages SQL Server’s native backup functionality
AWS Database Migration Service
Now supports Change Data Capture from RDS SQL
Server DB instances
AWS Marketplace
Third-party data import and export tools
and solutions
1
3
4
Database Publishing Wizard, Import/Export,
Bulk Copy
Use bcp; export to T-SQL files & load using sqlcmd
2
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
SQL SERVER 2017
• Available for EC2 and RDS (incl. Multi-AZ)
• SQL Server 2017 Linux supported on Amazon EC2, RHEL license-included
• Cluster & cluster-less Availability Groups (WSFC, Pacemaker, None)
• Cross database transactions supported by Always On AG
• Automatic plan correction
• Graph database capabilities
• Linux:
• System DBs fixed to /var/opt/mssql/data
• One SQL Server instance per server (default instance only)
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved
aws.amazon.com/activate
Everything and Anything Startups
Need to Get Started on AWS

More Related Content

What's hot

Relational Database Services on AWS
Relational Database Services on AWSRelational Database Services on AWS
Relational Database Services on AWSAmazon 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
 
Deep Dive on Amazon Aurora with PostgreSQL Compatibility (DAT305-R1) - AWS re...
Deep Dive on Amazon Aurora with PostgreSQL Compatibility (DAT305-R1) - AWS re...Deep Dive on Amazon Aurora with PostgreSQL Compatibility (DAT305-R1) - AWS re...
Deep Dive on Amazon Aurora with PostgreSQL Compatibility (DAT305-R1) - AWS re...Amazon Web Services
 
Open Source Databases on the Cloud - Peter Dachnowicz
Open Source Databases on the Cloud - Peter DachnowiczOpen Source Databases on the Cloud - Peter Dachnowicz
Open Source Databases on the Cloud - Peter DachnowiczAmazon Web Services
 
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS SummitAmazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS SummitAmazon Web Services
 
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...Amazon Web Services
 
Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016
Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016
Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016Amazon Web Services
 
Deep Dive on PostgreSQL Databases on Amazon RDS (DAT324) - AWS re:Invent 2018
Deep Dive on PostgreSQL Databases on Amazon RDS (DAT324) - AWS re:Invent 2018Deep Dive on PostgreSQL Databases on Amazon RDS (DAT324) - AWS re:Invent 2018
Deep Dive on PostgreSQL Databases on Amazon RDS (DAT324) - AWS re:Invent 2018Amazon Web Services
 
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech TalksIntroducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech TalksAmazon 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 SummitAmazon Web Services
 
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...Amazon Web Services
 
Best Practices for running the Oracle Database on EC2 webinar
Best Practices for running the Oracle Database on EC2 webinarBest Practices for running the Oracle Database on EC2 webinar
Best Practices for running the Oracle Database on EC2 webinarTom Laszewski
 
Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Amazon Web Services
 

What's hot (20)

Relational Database Services on AWS
Relational Database Services on AWSRelational Database Services on AWS
Relational Database Services on AWS
 
MySQL and MariaDB
MySQL and MariaDBMySQL and MariaDB
MySQL and MariaDB
 
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...
 
SQL Server on AWS
SQL Server on AWSSQL Server on AWS
SQL Server on AWS
 
PostgreSQL
PostgreSQL PostgreSQL
PostgreSQL
 
Oracle on AWS
Oracle on AWSOracle on AWS
Oracle on AWS
 
Deep Dive on Amazon Aurora with PostgreSQL Compatibility (DAT305-R1) - AWS re...
Deep Dive on Amazon Aurora with PostgreSQL Compatibility (DAT305-R1) - AWS re...Deep Dive on Amazon Aurora with PostgreSQL Compatibility (DAT305-R1) - AWS re...
Deep Dive on Amazon Aurora with PostgreSQL Compatibility (DAT305-R1) - AWS re...
 
Open Source Databases on the Cloud - Peter Dachnowicz
Open Source Databases on the Cloud - Peter DachnowiczOpen Source Databases on the Cloud - Peter Dachnowicz
Open Source Databases on the Cloud - Peter Dachnowicz
 
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS SummitAmazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
Amazon Aurora: Deep Dive - SRV308 - Chicago AWS Summit
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
Amazon Aurora Storage Demystified: How It All Works (DAT363) - AWS re:Invent ...
 
Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016
Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016
Amazon RDS with Amazon Aurora | AWS Public Sector Summit 2016
 
Deep Dive on PostgreSQL Databases on Amazon RDS (DAT324) - AWS re:Invent 2018
Deep Dive on PostgreSQL Databases on Amazon RDS (DAT324) - AWS re:Invent 2018Deep Dive on PostgreSQL Databases on Amazon RDS (DAT324) - AWS re:Invent 2018
Deep Dive on PostgreSQL Databases on Amazon RDS (DAT324) - AWS re:Invent 2018
 
Amazon Aurora
Amazon AuroraAmazon Aurora
Amazon Aurora
 
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech TalksIntroducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
Introducing Amazon Aurora with PostgreSQL Compatibility - AWS Online Tech Talks
 
Amazon Aurora: Database Week SF
Amazon Aurora: Database Week SFAmazon Aurora: Database Week SF
Amazon Aurora: Database Week SF
 
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
 
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
Deep Dive on Amazon Aurora MySQL Performance Tuning (DAT429-R1) - AWS re:Inve...
 
Best Practices for running the Oracle Database on EC2 webinar
Best Practices for running the Oracle Database on EC2 webinarBest Practices for running the Oracle Database on EC2 webinar
Best Practices for running the Oracle Database on EC2 webinar
 
Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319 Foundations of Amazon EC2 - SRV319
Foundations of Amazon EC2 - SRV319
 

Similar to SQL Server on AWS

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 SFAmazon Web Services
 
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 FranciscoAmazon 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 BaldwinAmazon 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 EagarAmazon 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 CloudAmazon Web Services
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...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 2018Amazon Web Services
 
Amazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Web Services
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS (GPSTEC314) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (GPSTEC314) - AWS re...Design, Deploy, and Optimize Microsoft SQL Server on AWS (GPSTEC314) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (GPSTEC314) - AWS re...Amazon Web Services
 
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018Amazon Web Services
 
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Web Services
 
Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_SingaporeDeep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_SingaporeAmazon 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
 
Open Source Managed Databases: Database Week SF
Open Source Managed Databases: Database Week SFOpen Source Managed Databases: Database Week SF
Open Source Managed Databases: Database Week SFAmazon 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
 
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS SummitWhat’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS SummitAmazon Web Services
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS - WIN306 - re:Invent...
Design, Deploy, and Optimize Microsoft SQL Server on AWS - WIN306 - re:Invent...Design, Deploy, and Optimize Microsoft SQL Server on AWS - WIN306 - re:Invent...
Design, Deploy, and Optimize Microsoft SQL Server on AWS - WIN306 - re:Invent...Amazon Web Services
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS
Design, Deploy, and Optimize Microsoft SQL Server on AWSDesign, Deploy, and Optimize Microsoft SQL Server on AWS
Design, Deploy, and Optimize Microsoft SQL Server on AWSAmazon Web Services
 
SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS
 SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS
SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDSAmazon Web Services
 

Similar to SQL Server on AWS (20)

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 & 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 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
 
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
Oracle and SQL Server on the CloudOracle and SQL Server on the Cloud
Oracle and SQL Server on the Cloud
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (WIN324-R1) - AWS re...
 
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 Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration ServiceAmazon Aurora and AWS Database Migration Service
Amazon Aurora and AWS Database Migration Service
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS (GPSTEC314) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (GPSTEC314) - AWS re...Design, Deploy, and Optimize Microsoft SQL Server on AWS (GPSTEC314) - AWS re...
Design, Deploy, and Optimize Microsoft SQL Server on AWS (GPSTEC314) - AWS re...
 
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
Cost and Performance Optimisation in Amazon RDS - AWS Summit Sydney 2018
 
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
 
Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_SingaporeDeep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
Deep Dive - Amazon Relational Database Services_AWSPSSummit_Singapore
 
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 RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310 Amazon RDS_Deep Dive - SRV310
Amazon RDS_Deep Dive - SRV310
 
Open Source Managed Databases: Database Week SF
Open Source Managed Databases: Database Week SFOpen Source Managed Databases: Database Week SF
Open Source Managed Databases: Database Week SF
 
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
 
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS SummitWhat’s new in Amazon RDS - ADB207 - Chicago AWS Summit
What’s new in Amazon RDS - ADB207 - Chicago AWS Summit
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS - WIN306 - re:Invent...
Design, Deploy, and Optimize Microsoft SQL Server on AWS - WIN306 - re:Invent...Design, Deploy, and Optimize Microsoft SQL Server on AWS - WIN306 - re:Invent...
Design, Deploy, and Optimize Microsoft SQL Server on AWS - WIN306 - re:Invent...
 
Design, Deploy, and Optimize Microsoft SQL Server on AWS
Design, Deploy, and Optimize Microsoft SQL Server on AWSDesign, Deploy, and Optimize Microsoft SQL Server on AWS
Design, Deploy, and Optimize Microsoft SQL Server on AWS
 
SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS
 SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS
SRV310 Optimizing Relational Databases on AWS: Deep Dive on Amazon RDS
 

More from Amazon Web Services

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Amazon Web Services
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Amazon Web Services
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateAmazon Web Services
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSAmazon Web Services
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Amazon Web Services
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Amazon Web Services
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...Amazon Web Services
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 

More from Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

SQL Server on AWS

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved SQL Server on AWS Nickil Somanna nickil@amazon.com Solutions Architect
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved • Consider RDS first • Focus on: – Business value tasks – High-level tuning tasks – Schema optimization • No in-house database expertise • Need control over: – DB instance & OS – Backups, Replication – Clustering – sysadmin role • Use features, size or performance options not available in Amazon RDS • S Q L S E R V E R o n A M A Z O N E C 2• A M A Z O N R D S S Q L S E R V E R WHICH OPTION IS RIGHT FOR YOU?
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved • AWS Managed Service • Managed deployment, patching, Multi-AZ automatic HA, backups and point in time restore • Auditable centralized engine parameter tuning • No direct instance or file system access • Some features are restricted • Self-Managed Solution • Always on Availability Groups for HA • Maintenance Plans for backups • Administrator access to instance and DBs • Custom monitoring agents • Run SSRS, SSIS, SSAS on instance • Hybrid Architectures • legacy versions (self-install) • S Q L S E R V E R o n A M A Z O N E C 2• A M A Z O N R D S S Q L S E R V E R THE DIFFERENCES
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved SQL SERVER ON AMAZON EC2
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved • Storage I/O contention is one of the main causes for poor SQL Server performance • Use EBS Optimized EC2 Instances • Match storage technology with I/O pattern of workload components • Match instance type to IOPS and throughput needs of workload • Create a single volume for data and logs SQL Server Example Volume Layout C: Boot on General Purpose SSD EBS Volume D: Data and logs on Provisioned IOPS EBS Volume K: Backups on Magnetic ST1 or SC1 EBS Volumes Z: Tempdb on instance storage (if available) SQL SERVER STORAGE OPTIMIZATION
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved EBS OPTIMIZATION & VOLUMES • Plan for EC2 Instance EBS Optimized Throughput and IOPS capacity • Plan for EBS Volume Throughput and IOPS capacity • Stripe EBS PIOPS volumes for more than 20,000 IOPS or 320MB/s
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved EBS OPTIMIZATION AND VOLUMES • Plan for EC2 Instance EBS Optimized Throughput and IOPS capacity • Plan for EBS Volume Throughput and IOPS capacity • Stripe EBS PIOPS volumes for more than 20,000 IOPS or 320MB/s r4 family r4.large 2 vCPUs/15.25 GiB RAM Max EBS bandwidth: 425 Mbps Max IOPS (16KB): 3,000 Expected throughput: 53 MB/s … or ~1250 IOPS @ 44KB IO size r4.16xlarge 64 vCPUs/488 GiB RAM Max EBS bandwidth: 14k Mbps Max IOPS (16KB): 75,000 Expected throughput: 1,750 MB/s … or ~40,700 IOPS @ 44KB IO size 1TB GP2 Volume Max. IOPS (16KB): 3,000 Max. throughput: 160 MB/s 4 x 1TB PIOPS @ 20k IOPS Expected IOPS (16KB): 80k Max. throughput: 1,280 MB/s
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved TEMPDB OPTIMIZATION • Consider: • Using multiple tempdb files (1:1 mapping with CPUs, up to 8) • Striping multiple instance storage disks together for higher I/O • Changing SQL Server service startup to Automatic (Delayed Start) to allow instance storage to provision • Scripting/automating configuration on instance boot • Striping solution by consulting partner IFM Ltd. • http://www.ifm.net.nz/cookbooks/amazon-sql-tempdb/index.html
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved SQL SERVER HA AND DR ON AMAZON EC2 • Use multiple Availability Zones • Instance-level and AZ-level failure tolerance • Synchronous replication • Options • Enterprise Edition: Always On Availability Groups • Standard Edition: • Basic Always On Availability Groups (2016+) • Failover cluster instances using partner block-level replication solution
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved ALWAYS ON AVAILABILITY GROUPS (AG)
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved MULTI-REGION ALWAYS ON AG
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved FAILOVER CLUSTER INSTANCES ON EC2 SIOS DataKeeper Cluster Edition
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved AMAZON RDS FOR SQL SERVER
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved STORAGE PERFORMANCE PLANNING Scalable Storage • Maximum storage: 16TB • Maximum IOPS: 20,000 • Amazon RDS storage throughput depends on DB instance class (see equivalent EC2 EBS Optimized instance type) Monitoring I/O efficiency: • CloudWatch Metric Average Queue Depth - I/O requests waiting to be serviced
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved RDS FOR SQL SERVER HIGH AVAILABILITY Amazon RDS for SQL Server Multi-AZ • Principal and secondary DB nodes in different Availability Zones (AZ) • Witness in a 3rd AZ • Leverages SQL Server DB mirroring • Automatic failover (typically, 1-2 minute) • Consider mirroring impact on change heavy workloads
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved AMAZON RDS MULTI-AZ IN DEPTH Failure scenarios mitigated: • Loss of availability in primary AZ • Loss of network connectivity to principal DB node • Compute unit or storage failure on principal DB node • Failover process: • Implement retry logic at the application layer – trigger manual failover to test Mirroring stopped Address apply debt Promote to master Change DNS endpoint Provision new secondary
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved • Centralized management of DB engine parameters • Ability to consistently apply configurations to DB instances • Auditability of configuration • Sensible defaults work for most use cases • Ability to create custom parameter groups • Used for enabling additional features • Ability to create custom option groups • Supported options: • Transparent Data Encryption (TDE) in Enterprise Edition only • S3 Backup & Restore • O P T I O N G R O U P S• P A R A M E T E R G R O U P S CENTRALIZED DB ENGINE CONFIGURATION
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved RDS FOR SQL SERVER DATA MOVEMENT .BAK File Import and Export Leverages SQL Server’s native backup functionality AWS Database Migration Service Now supports Change Data Capture from RDS SQL Server DB instances AWS Marketplace Third-party data import and export tools and solutions 1 3 4 Database Publishing Wizard, Import/Export, Bulk Copy Use bcp; export to T-SQL files & load using sqlcmd 2
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved SQL SERVER 2017 • Available for EC2 and RDS (incl. Multi-AZ) • SQL Server 2017 Linux supported on Amazon EC2, RHEL license-included • Cluster & cluster-less Availability Groups (WSFC, Pacemaker, None) • Cross database transactions supported by Always On AG • Automatic plan correction • Graph database capabilities • Linux: • System DBs fixed to /var/opt/mssql/data • One SQL Server instance per server (default instance only)
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved aws.amazon.com/activate Everything and Anything Startups Need to Get Started on AWS