SlideShare uma empresa Scribd logo
1 de 31
YOU CAN RUN SQL SERVER IN AWS?
JOHN MCCORMACK | DATAGRILLEN | JUNE 2019
In this session, I aim to show the different ways of running SQL
Server on AWS. I will show the differences between running as
a managed service (RDS) and running SQL Server on virtual
machines (EC2).
YOU CAN RUN SQL SERVER IN AWS?
JOHN MCCORMACK | DATAGRILLEN | JUNE 2019
In this session, I aim to show the different ways of running SQL
Server on AWS. I will show the differences between running as
a managed service (RDS) and running SQL Server on virtual
machines (EC2).
INTRODUCTION
• John McCormack
• DBA since 2012
• MCSE Data Management and Analytics
• AWS Certified Cloud Solutions Architect - Associate
• Initially focussed on SQL Server, now working with various cloud technologies.
• RDS, EMR, ElasticSearch, Athena, S3
• Azure SQL DB, IAAS
• https://johnmccormack.it
• @actualjohn
3
TERMINOLOGY
• AWS – Amazon Web Services (Cloud computing company)
• Region – A geographic area comprising of 2 or more AZs
• Availability Zone (AZ) – A data centre within a region, providing options for HA/DR
• EC2 – VM within AWS (Windows or Linux)
• EBS – Block storage in AWS
• S3 – Object storage based in AWS (think dropbox)
• Bucket – Folder within S3. Name is globally unique
• RDS – Relational Database Service. Managed database instances. Various RDBMSs
offered including SQL Server, MySQL, Postgressql, Oracle, MariaDB and Aurora.
4
2 WAYS TO RUN SQL SERVER IN AWS
Administration Effort
Azure SQL DB
RDS
Azure Managed
Instance
EC2
Azure VM
• RDS
• Managed instance
• Less admin, less control
• EC2
• VM in the cloud
• More admin, more control
Control
5
RDS VS EC2
FEATURE EC2 RDS
Use SSMS ✔ ✔
Use database as source or target for SSIS ✔ ✔
Full control over the instance ✔
Automated backups ✔
Automated patching ✔
Always On Availability groups ✔ (kind of)
6
RDS VS EC2
FEATURE EC2 RDS
AWS-managed Multi AZ deployment ✔
Log Shipping ✔
Replication ✔
Database mail ✔
Bulk Insert ✔
FILESTREAM ✔
7
RDS VS EC2
Shared responsibility
model
RDS EC2
HA/DR HA/DR
Database backups Database backups
SQL Server patching SQL Server patching
Installing SQL Server Installing SQL Server
OS patching OS patching
Network Network
Power Power
Physical Security Physical Security
AWS Responsibility Customer Responsibility 8
LETS TALK LICENSING
• Express edition is the only license free edition
• No developer
• License included in instance cost
• Enterprise, Standard & Web
RDS
• You can use developer edition for non prod
workloads
• BYOL or License included
• No software assurance = Dedicated host
EC2
9
BACKUP / RESTORE – RDS
• Automated backups
• Set your own retention period
• Take ad-hoc snapshots
• Kept in your S3 bucket until deleted by user
• Snapshots can be shared between accounts
• Accounts is similar to subscriptions in Azure so sometimes used for
restoring prod to dev or test environments
• Point in time restores (within 5 minutes)
• You can restore to a new RDS instance
10
BACKUP / RESTORE – EC2
S3 offers cross-region bucket replication and
versioning !
You pay for all versions so look at setting a ‘lifecycle policy’
Back up to S3 to save money
(EBS way more expensive than S3)
Directly with 3rd party tools (LiteSpeed / CloudBerry)
Copy from EBS to S3
Backup directly to file system
(EBS)
EBS offers automatic redundancy and encryption
You are responsible for your own backups
and restores
Just like on-premises
11
MONITORING
• CloudWatch
• Near real time info
• View multiple instances
at once
• Trigger alerts
• 3rd party tools
• sp_whoisactive
• Sentry One
• Grafana
12
DEEP DIVE INTO RDS
• Versions and Editions
• Instance types
• Storage types
• HA/DR
• Security
• Encryption
• Parameter groups
13
DEEP DIVE INTO RDS – VERSIONS/EDITIONS
• Express
• Web
• Standard
• Enterprise
• 2012 – 2017
• SQL Server 2008 R2 was removed from options on 1st June 2019.
• AWS Warned customers: Upgrade existing instances before June 1,
2019, to avoid automatic upgrade. 14
DEEP DIVE INTO RDS – INSTANCE TYPES
T2
Burstable Performance
Lowest Cost
M4 / M5
General Purpose
M5 Latest Generation
R3 / R4
Memory Optimized
R4 Latest Generation
• t2.micro
• 1 vCPU
• 1 GiB RAM
• m5.xlarge
• 4 vCPU
• 16 GiB RAM
• r4.xlarge
• 4 vCPU
• 30.5 GiB RAM 15
DEEP DIVE INTO RDS – STORAGE
ALL EDITIONS
Magnetic *
Min: 200 GiB Enterprise/Standard editions, 20 GiB Web/Express
Max: 1 TiB all editions
General Purpose (SSD)
Min: 200 GiB Enterprise/Standard editions, 20 GiB Web/Express
Max: 16 TiB all editions
Provisioned IOPS (SSD)
Min: 200 GiB Enterprise/Standard editions, 100 GiB Web/Express
Max: 16 TiB all editions
* Backwards compatibility only - Before Jan 2017
16
DEEP DIVE INTO RDS – HA/DR
• Pick a time to suit your business
• Just tell AWS you want to go Multi-AZ
Automatic Multi-AZ
deployment
Manual failovers if you want
to test
• No manual intervention needed.
During automatic failover,
any fault with original primary
is fixed for you
• Automatically chosen depending on version and edition
• No readable secondary with AGs
Technology used is Mirroring
or
Always On Availability Groups
17
DEEP DIVE INTO RDS – SECURITY
• Network Security
• VPC
• Security Groups
• Publicly accessible
• Choose your port
• Database security
• SQL Logins
• Master user & others
• Active Directory
18
DEEP DIVE INTO RDS – ENCRYPTION
• In-Transit (SSL Support)
• You can use SSL to encrypt connections between your apps and RDS instance
• You can force all connections to use SSL
• Supported in all regions and for all editions
• At Rest
• Transparent Data Encryption (TDE)
• Available in Enterprise Edition
• Simply enable encryption at set up for all other editions (except express)
19
DEEP DIVE INTO RDS – PARAMETER GROUPS
• Parameter groups allow you to change settings above and beyond
your level of access to the instance.
• i.e Something requiring sysadmin or securityadmin role
• Examples
• Some trace flags e.g. 1204, 4199
• Cost threshold for parallelism
• Optimize for ad hoc workloads
• Changes to parameter groups apply to all instances using the group
20
CLI &
POWERSHELL
• The key to cloud automation is scripting. AWS
supports CLI and Powershell to save you from
too many clunky manual process.
• Examples
• aws rds restore-db-instance-from-db-
snapshot --db-instance-identifier restored-
test-instance --db-snapshot-identifier test-
instance-snap
• Restore-RDSDBInstanceFromDBSnapshot -
DBInstanceIdentifier restored-test-instance
-DBSnapshotIdentifier test-instance-snap
21
PRE MIGRATION PLANNING – MOVING DATA
TB / GB Scale
Direct ConnectSnowball / Edge
PB Scale
• 50 / 80 / 100 TB per device
• Can use multiple
• Transfers in 1 week
• Dedicated connection
• 1Gbps - 10Gbps
22
S3 Accelerated Transfer
• CloudFront edge Locations
• Distance ∝ improvement
GB / MB Scale
23
EDGE LOCATIONS
©
https://aws.amazon.com/cloudfront/features/#Amazon_CloudFront_Infra
BACKUPS - HAVE YOU SEEN THE SNOWMOBILE
Exabyte Scale
24
PRE MIGRATION PLANNING
25
TASK
Create full inventory
Identify features used (What version / edition do we need)
Do you have licenses to take to the cloud?
What are your high availability / disaster recovery requirements
Can you purge unwanted data
What are your team’s capabilities
MIGRATION STRATEGIES & TOOLS
METHOD EC2 RDS
Backup / Restore ✔ ✔
Database Migration Service and Schema Conversion Tool ✔ ✔
Log Shipping ✔
Transactional Replication ✔
Snowball ✔ ✔
26
DEMO
27
THANK YOU
If you want to find out more, go here:
• https://johnmccormack.it/
28
FAQS
• How long do AWS keep your backups?
• 7 days default, can be increased up to 35 days
• Can I bring my own license to RDS?
• No
• Can I scale up in place?
• Yes
• How can I set up database mail?
• Linked server to EC2 or on-prem 29
OTHER TECHNOLOGIES
• ATHENA
• Create Schema
• Create databases / tables / views
• They are not materialized
• Query with SQL in console or JDBC connection
• Use GLUE for ETL
• Partition and compress to save money
30
DEEP DIVE INTO RDS – INSTANCE TYPES
Source:
SQL Server Edition 2017 and 2016 Support
Range
2014, 2012, and 2008 R2
Support Range
Enterprise Edition Up to r4.16xlarge
or m5.24xlarge
Up to r4.8xlarge
or m5.24xlarge
Standard Edition Up to r4.16xlarge
or m5.24xlarge
Up to r4.8xlarge
or m5.24xlarge
Web Edition Up to t2.medium
or r4.2xlarge
or m5.4xlarge
Up to t2.medium
or r4.2xlarge
or m5.4xlarge
Express Edition t2.micro
or t2.medium
t2.micro
or t2.medium
31

Mais conteúdo relacionado

Mais procurados

AWS re:Invent 2016: Get Technically Inspired by Container-Powered Migrations ...
AWS re:Invent 2016: Get Technically Inspired by Container-Powered Migrations ...AWS re:Invent 2016: Get Technically Inspired by Container-Powered Migrations ...
AWS re:Invent 2016: Get Technically Inspired by Container-Powered Migrations ...Amazon Web Services
 
AWS Enterprise Day | Hybrid IT with AWS: Best of Both Worlds
AWS Enterprise Day | Hybrid IT with AWS: Best of Both WorldsAWS Enterprise Day | Hybrid IT with AWS: Best of Both Worlds
AWS Enterprise Day | Hybrid IT with AWS: Best of Both WorldsAmazon Web Services
 
AWS Webcast - How to Migrate On-premise NAS Storage to Cloud NAS Storage
AWS Webcast - How to Migrate On-premise NAS Storage to Cloud NAS StorageAWS Webcast - How to Migrate On-premise NAS Storage to Cloud NAS Storage
AWS Webcast - How to Migrate On-premise NAS Storage to Cloud NAS StorageAmazon Web Services
 
How a National Transportation Software Provider Migrated a Mission-Critical T...
How a National Transportation Software Provider Migrated a Mission-Critical T...How a National Transportation Software Provider Migrated a Mission-Critical T...
How a National Transportation Software Provider Migrated a Mission-Critical T...Amazon Web Services
 
Advanced data migration techniques for Amazon RDS
Advanced data migration techniques for Amazon RDSAdvanced data migration techniques for Amazon RDS
Advanced data migration techniques for Amazon RDSTom Laszewski
 
Deploying in the Cloud: Why and How
Deploying in the Cloud: Why and HowDeploying in the Cloud: Why and How
Deploying in the Cloud: Why and HowMatt Small
 
Module 1 cloud computing
Module 1   cloud computingModule 1   cloud computing
Module 1 cloud computingkrnaween
 
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)Amazon Web Services
 
Creating Your Virtual Data Center: VPC Fundamentals and Connectivity Options
Creating Your Virtual Data Center: VPC Fundamentals and Connectivity OptionsCreating Your Virtual Data Center: VPC Fundamentals and Connectivity Options
Creating Your Virtual Data Center: VPC Fundamentals and Connectivity OptionsAmazon Web Services
 
AWS vs. Azure vs. Google vs. SoftLayer: Network, Storage and DBaaS
AWS vs. Azure vs. Google vs. SoftLayer: Network, Storage and DBaaSAWS vs. Azure vs. Google vs. SoftLayer: Network, Storage and DBaaS
AWS vs. Azure vs. Google vs. SoftLayer: Network, Storage and DBaaSRightScale
 
(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable
(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable
(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and ScalableAmazon Web Services
 
AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual...
AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual...AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual...
AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual...Amazon Web Services
 
AWS re:Invent 2016: Design, Deploy, and Optimize Microsoft SharePoint on AWS ...
AWS re:Invent 2016: Design, Deploy, and Optimize Microsoft SharePoint on AWS ...AWS re:Invent 2016: Design, Deploy, and Optimize Microsoft SharePoint on AWS ...
AWS re:Invent 2016: Design, Deploy, and Optimize Microsoft SharePoint on AWS ...Amazon Web Services
 
AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...
AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...
AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...Amazon Web Services
 
AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration
AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration  AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration
AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration Amazon Web Services
 
AWS re:Invent 2016: Deep Learning, 3D Content Rendering, and Massively Parall...
AWS re:Invent 2016: Deep Learning, 3D Content Rendering, and Massively Parall...AWS re:Invent 2016: Deep Learning, 3D Content Rendering, and Massively Parall...
AWS re:Invent 2016: Deep Learning, 3D Content Rendering, and Massively Parall...Amazon Web Services
 
(ENT205) AWS and VMware: How to Architect and Manage Hybrid Environments | AW...
(ENT205) AWS and VMware: How to Architect and Manage Hybrid Environments | AW...(ENT205) AWS and VMware: How to Architect and Manage Hybrid Environments | AW...
(ENT205) AWS and VMware: How to Architect and Manage Hybrid Environments | AW...Amazon Web Services
 
Hybrid cloud sample architectures
Hybrid cloud sample architecturesHybrid cloud sample architectures
Hybrid cloud sample architecturesJarek Sokolnicki
 
AWS Innovation at Scale – Rodney Haywood
AWS Innovation at Scale – Rodney HaywoodAWS Innovation at Scale – Rodney Haywood
AWS Innovation at Scale – Rodney HaywoodAmazon Web Services
 

Mais procurados (20)

AWS re:Invent 2016: Get Technically Inspired by Container-Powered Migrations ...
AWS re:Invent 2016: Get Technically Inspired by Container-Powered Migrations ...AWS re:Invent 2016: Get Technically Inspired by Container-Powered Migrations ...
AWS re:Invent 2016: Get Technically Inspired by Container-Powered Migrations ...
 
Amazon EFS
Amazon EFSAmazon EFS
Amazon EFS
 
AWS Enterprise Day | Hybrid IT with AWS: Best of Both Worlds
AWS Enterprise Day | Hybrid IT with AWS: Best of Both WorldsAWS Enterprise Day | Hybrid IT with AWS: Best of Both Worlds
AWS Enterprise Day | Hybrid IT with AWS: Best of Both Worlds
 
AWS Webcast - How to Migrate On-premise NAS Storage to Cloud NAS Storage
AWS Webcast - How to Migrate On-premise NAS Storage to Cloud NAS StorageAWS Webcast - How to Migrate On-premise NAS Storage to Cloud NAS Storage
AWS Webcast - How to Migrate On-premise NAS Storage to Cloud NAS Storage
 
How a National Transportation Software Provider Migrated a Mission-Critical T...
How a National Transportation Software Provider Migrated a Mission-Critical T...How a National Transportation Software Provider Migrated a Mission-Critical T...
How a National Transportation Software Provider Migrated a Mission-Critical T...
 
Advanced data migration techniques for Amazon RDS
Advanced data migration techniques for Amazon RDSAdvanced data migration techniques for Amazon RDS
Advanced data migration techniques for Amazon RDS
 
Deploying in the Cloud: Why and How
Deploying in the Cloud: Why and HowDeploying in the Cloud: Why and How
Deploying in the Cloud: Why and How
 
Module 1 cloud computing
Module 1   cloud computingModule 1   cloud computing
Module 1 cloud computing
 
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
AWS re:Invent 2016: Taking DevOps to the AWS Edge (CTD302)
 
Creating Your Virtual Data Center: VPC Fundamentals and Connectivity Options
Creating Your Virtual Data Center: VPC Fundamentals and Connectivity OptionsCreating Your Virtual Data Center: VPC Fundamentals and Connectivity Options
Creating Your Virtual Data Center: VPC Fundamentals and Connectivity Options
 
AWS vs. Azure vs. Google vs. SoftLayer: Network, Storage and DBaaS
AWS vs. Azure vs. Google vs. SoftLayer: Network, Storage and DBaaSAWS vs. Azure vs. Google vs. SoftLayer: Network, Storage and DBaaS
AWS vs. Azure vs. Google vs. SoftLayer: Network, Storage and DBaaS
 
(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable
(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable
(DAT303) Oracle on AWS and Amazon RDS: Secure, Fast, and Scalable
 
AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual...
AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual...AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual...
AWS re:Invent 2016: NextGen Networking: New Capabilities for Amazon’s Virtual...
 
AWS re:Invent 2016: Design, Deploy, and Optimize Microsoft SharePoint on AWS ...
AWS re:Invent 2016: Design, Deploy, and Optimize Microsoft SharePoint on AWS ...AWS re:Invent 2016: Design, Deploy, and Optimize Microsoft SharePoint on AWS ...
AWS re:Invent 2016: Design, Deploy, and Optimize Microsoft SharePoint on AWS ...
 
AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...
AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...
AWS re:Invent 2016: Reinventing Disaster Recovery Leveraging AWS Cloud Infras...
 
AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration
AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration  AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration
AWS Webcast - Amazon RDS for Oracle: Best Practices and Migration
 
AWS re:Invent 2016: Deep Learning, 3D Content Rendering, and Massively Parall...
AWS re:Invent 2016: Deep Learning, 3D Content Rendering, and Massively Parall...AWS re:Invent 2016: Deep Learning, 3D Content Rendering, and Massively Parall...
AWS re:Invent 2016: Deep Learning, 3D Content Rendering, and Massively Parall...
 
(ENT205) AWS and VMware: How to Architect and Manage Hybrid Environments | AW...
(ENT205) AWS and VMware: How to Architect and Manage Hybrid Environments | AW...(ENT205) AWS and VMware: How to Architect and Manage Hybrid Environments | AW...
(ENT205) AWS and VMware: How to Architect and Manage Hybrid Environments | AW...
 
Hybrid cloud sample architectures
Hybrid cloud sample architecturesHybrid cloud sample architectures
Hybrid cloud sample architectures
 
AWS Innovation at Scale – Rodney Haywood
AWS Innovation at Scale – Rodney HaywoodAWS Innovation at Scale – Rodney Haywood
AWS Innovation at Scale – Rodney Haywood
 

Semelhante a Running SQL Server on AWS | John McCormack | DataGrillen 2019

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
 
Data Scotland 2019: You can run SQL Server on AWS
Data Scotland 2019: You can run SQL Server on AWSData Scotland 2019: You can run SQL Server on AWS
Data Scotland 2019: You can run SQL Server on AWSJohn McCormack
 
AWS Webcast - Migrating to RDS Oracle
AWS Webcast - Migrating to RDS OracleAWS Webcast - Migrating to RDS Oracle
AWS Webcast - Migrating to RDS OracleAmazon Web Services
 
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWSMigrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWSKristana Kane
 
What's New in Amazon RDS for Open-Source & Commercial Databases
What's New in Amazon RDS for Open-Source & Commercial DatabasesWhat's New in Amazon RDS for Open-Source & Commercial Databases
What's New in Amazon RDS for Open-Source & Commercial DatabasesAmazon Web Services
 
Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Web Services
 
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介Amazon Web Services Japan
 
Using Active Directory in AWS
Using Active Directory in AWSUsing Active Directory in AWS
Using Active Directory in AWSTriNimbus
 
Using Active Directory in AWS
Using Active Directory in AWSUsing Active Directory in AWS
Using Active Directory in AWSAllice Shandler
 
Amazon relational database service (rds)
Amazon relational database service (rds)Amazon relational database service (rds)
Amazon relational database service (rds)AWS Riyadh User Group
 
AWS Certified Cloud Practitioner Course S11-S17
AWS Certified Cloud Practitioner Course S11-S17AWS Certified Cloud Practitioner Course S11-S17
AWS Certified Cloud Practitioner Course S11-S17Neal Davis
 
AWS Webcast - Introduction to RDS Low Admin High Perf DBS
AWS Webcast - Introduction to RDS Low Admin High Perf DBSAWS Webcast - Introduction to RDS Low Admin High Perf DBS
AWS Webcast - Introduction to RDS Low Admin High Perf DBSAmazon Web Services
 
Deep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database ServiceDeep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database ServiceAmazon Web Services
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceAmazon Web Services
 
AWS Summit Benelux 2013 - Enterprise Applications on AWS
AWS Summit Benelux 2013 - Enterprise Applications on AWSAWS Summit Benelux 2013 - Enterprise Applications on AWS
AWS Summit Benelux 2013 - Enterprise Applications on AWSAmazon Web Services
 
Using Amazon RDS to Power Enterprise Applications (DAT202) | AWS re:Invent 2013
Using Amazon RDS to Power Enterprise Applications (DAT202) | AWS re:Invent 2013Using Amazon RDS to Power Enterprise Applications (DAT202) | AWS re:Invent 2013
Using Amazon RDS to Power Enterprise Applications (DAT202) | AWS re:Invent 2013Amazon Web Services
 
Migrating to Amazon RDS with Database Migration Service
Migrating to Amazon RDS with Database Migration ServiceMigrating to Amazon RDS with Database Migration Service
Migrating to Amazon RDS with Database Migration ServiceAmazon Web Services
 
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...Amazon Web Services
 
Postgres in Amazon RDS
Postgres in Amazon RDSPostgres in Amazon RDS
Postgres in Amazon RDSDenish Patel
 
Amazon Web Services - Relational Database Service Meetup
Amazon Web Services - Relational Database Service MeetupAmazon Web Services - Relational Database Service Meetup
Amazon Web Services - Relational Database Service Meetupcyrilkhairallah
 

Semelhante a Running SQL Server on AWS | John McCormack | DataGrillen 2019 (20)

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...
 
Data Scotland 2019: You can run SQL Server on AWS
Data Scotland 2019: You can run SQL Server on AWSData Scotland 2019: You can run SQL Server on AWS
Data Scotland 2019: You can run SQL Server on AWS
 
AWS Webcast - Migrating to RDS Oracle
AWS Webcast - Migrating to RDS OracleAWS Webcast - Migrating to RDS Oracle
AWS Webcast - Migrating to RDS Oracle
 
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWSMigrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
Migrating Your Databases to AWS Deep Dive on Amazon RDS and AWS
 
What's New in Amazon RDS for Open-Source & Commercial Databases
What's New in Amazon RDS for Open-Source & Commercial DatabasesWhat's New in Amazon RDS for Open-Source & Commercial Databases
What's New in Amazon RDS for Open-Source & Commercial Databases
 
Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)Amazon Relational Database Service (Amazon RDS)
Amazon Relational Database Service (Amazon RDS)
 
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
 
Using Active Directory in AWS
Using Active Directory in AWSUsing Active Directory in AWS
Using Active Directory in AWS
 
Using Active Directory in AWS
Using Active Directory in AWSUsing Active Directory in AWS
Using Active Directory in AWS
 
Amazon relational database service (rds)
Amazon relational database service (rds)Amazon relational database service (rds)
Amazon relational database service (rds)
 
AWS Certified Cloud Practitioner Course S11-S17
AWS Certified Cloud Practitioner Course S11-S17AWS Certified Cloud Practitioner Course S11-S17
AWS Certified Cloud Practitioner Course S11-S17
 
AWS Webcast - Introduction to RDS Low Admin High Perf DBS
AWS Webcast - Introduction to RDS Low Admin High Perf DBSAWS Webcast - Introduction to RDS Low Admin High Perf DBS
AWS Webcast - Introduction to RDS Low Admin High Perf DBS
 
Deep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database ServiceDeep Dive on Amazon Relational Database Service
Deep Dive on Amazon Relational Database Service
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
AWS Summit Benelux 2013 - Enterprise Applications on AWS
AWS Summit Benelux 2013 - Enterprise Applications on AWSAWS Summit Benelux 2013 - Enterprise Applications on AWS
AWS Summit Benelux 2013 - Enterprise Applications on AWS
 
Using Amazon RDS to Power Enterprise Applications (DAT202) | AWS re:Invent 2013
Using Amazon RDS to Power Enterprise Applications (DAT202) | AWS re:Invent 2013Using Amazon RDS to Power Enterprise Applications (DAT202) | AWS re:Invent 2013
Using Amazon RDS to Power Enterprise Applications (DAT202) | AWS re:Invent 2013
 
Migrating to Amazon RDS with Database Migration Service
Migrating to Amazon RDS with Database Migration ServiceMigrating to Amazon RDS with Database Migration Service
Migrating to Amazon RDS with Database Migration Service
 
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
AWS Webcast - Introduction to Amazon RDS: Low Admin, High Performance Databas...
 
Postgres in Amazon RDS
Postgres in Amazon RDSPostgres in Amazon RDS
Postgres in Amazon RDS
 
Amazon Web Services - Relational Database Service Meetup
Amazon Web Services - Relational Database Service MeetupAmazon Web Services - Relational Database Service Meetup
Amazon Web Services - Relational Database Service Meetup
 

Último

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfadriantubila
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...amitlee9823
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Delhi Call girls
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightDelhi Call girls
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...shambhavirathore45
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 

Último (20)

Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdfAccredited-Transport-Cooperatives-Jan-2021-Web.pdf
Accredited-Transport-Cooperatives-Jan-2021-Web.pdf
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
Call Girls Bannerghatta Road Just Call 👗 7737669865 👗 Top Class Call Girl Ser...
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
Best VIP Call Girls Noida Sector 22 Call Me: 8448380779
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 nightCheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
Cheap Rate Call girls Sarita Vihar Delhi 9205541914 shot 1500 night
 
Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...Determinants of health, dimensions of health, positive health and spectrum of...
Determinants of health, dimensions of health, positive health and spectrum of...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 

Running SQL Server on AWS | John McCormack | DataGrillen 2019

  • 1. YOU CAN RUN SQL SERVER IN AWS? JOHN MCCORMACK | DATAGRILLEN | JUNE 2019 In this session, I aim to show the different ways of running SQL Server on AWS. I will show the differences between running as a managed service (RDS) and running SQL Server on virtual machines (EC2).
  • 2. YOU CAN RUN SQL SERVER IN AWS? JOHN MCCORMACK | DATAGRILLEN | JUNE 2019 In this session, I aim to show the different ways of running SQL Server on AWS. I will show the differences between running as a managed service (RDS) and running SQL Server on virtual machines (EC2).
  • 3. INTRODUCTION • John McCormack • DBA since 2012 • MCSE Data Management and Analytics • AWS Certified Cloud Solutions Architect - Associate • Initially focussed on SQL Server, now working with various cloud technologies. • RDS, EMR, ElasticSearch, Athena, S3 • Azure SQL DB, IAAS • https://johnmccormack.it • @actualjohn 3
  • 4. TERMINOLOGY • AWS – Amazon Web Services (Cloud computing company) • Region – A geographic area comprising of 2 or more AZs • Availability Zone (AZ) – A data centre within a region, providing options for HA/DR • EC2 – VM within AWS (Windows or Linux) • EBS – Block storage in AWS • S3 – Object storage based in AWS (think dropbox) • Bucket – Folder within S3. Name is globally unique • RDS – Relational Database Service. Managed database instances. Various RDBMSs offered including SQL Server, MySQL, Postgressql, Oracle, MariaDB and Aurora. 4
  • 5. 2 WAYS TO RUN SQL SERVER IN AWS Administration Effort Azure SQL DB RDS Azure Managed Instance EC2 Azure VM • RDS • Managed instance • Less admin, less control • EC2 • VM in the cloud • More admin, more control Control 5
  • 6. RDS VS EC2 FEATURE EC2 RDS Use SSMS ✔ ✔ Use database as source or target for SSIS ✔ ✔ Full control over the instance ✔ Automated backups ✔ Automated patching ✔ Always On Availability groups ✔ (kind of) 6
  • 7. RDS VS EC2 FEATURE EC2 RDS AWS-managed Multi AZ deployment ✔ Log Shipping ✔ Replication ✔ Database mail ✔ Bulk Insert ✔ FILESTREAM ✔ 7
  • 8. RDS VS EC2 Shared responsibility model RDS EC2 HA/DR HA/DR Database backups Database backups SQL Server patching SQL Server patching Installing SQL Server Installing SQL Server OS patching OS patching Network Network Power Power Physical Security Physical Security AWS Responsibility Customer Responsibility 8
  • 9. LETS TALK LICENSING • Express edition is the only license free edition • No developer • License included in instance cost • Enterprise, Standard & Web RDS • You can use developer edition for non prod workloads • BYOL or License included • No software assurance = Dedicated host EC2 9
  • 10. BACKUP / RESTORE – RDS • Automated backups • Set your own retention period • Take ad-hoc snapshots • Kept in your S3 bucket until deleted by user • Snapshots can be shared between accounts • Accounts is similar to subscriptions in Azure so sometimes used for restoring prod to dev or test environments • Point in time restores (within 5 minutes) • You can restore to a new RDS instance 10
  • 11. BACKUP / RESTORE – EC2 S3 offers cross-region bucket replication and versioning ! You pay for all versions so look at setting a ‘lifecycle policy’ Back up to S3 to save money (EBS way more expensive than S3) Directly with 3rd party tools (LiteSpeed / CloudBerry) Copy from EBS to S3 Backup directly to file system (EBS) EBS offers automatic redundancy and encryption You are responsible for your own backups and restores Just like on-premises 11
  • 12. MONITORING • CloudWatch • Near real time info • View multiple instances at once • Trigger alerts • 3rd party tools • sp_whoisactive • Sentry One • Grafana 12
  • 13. DEEP DIVE INTO RDS • Versions and Editions • Instance types • Storage types • HA/DR • Security • Encryption • Parameter groups 13
  • 14. DEEP DIVE INTO RDS – VERSIONS/EDITIONS • Express • Web • Standard • Enterprise • 2012 – 2017 • SQL Server 2008 R2 was removed from options on 1st June 2019. • AWS Warned customers: Upgrade existing instances before June 1, 2019, to avoid automatic upgrade. 14
  • 15. DEEP DIVE INTO RDS – INSTANCE TYPES T2 Burstable Performance Lowest Cost M4 / M5 General Purpose M5 Latest Generation R3 / R4 Memory Optimized R4 Latest Generation • t2.micro • 1 vCPU • 1 GiB RAM • m5.xlarge • 4 vCPU • 16 GiB RAM • r4.xlarge • 4 vCPU • 30.5 GiB RAM 15
  • 16. DEEP DIVE INTO RDS – STORAGE ALL EDITIONS Magnetic * Min: 200 GiB Enterprise/Standard editions, 20 GiB Web/Express Max: 1 TiB all editions General Purpose (SSD) Min: 200 GiB Enterprise/Standard editions, 20 GiB Web/Express Max: 16 TiB all editions Provisioned IOPS (SSD) Min: 200 GiB Enterprise/Standard editions, 100 GiB Web/Express Max: 16 TiB all editions * Backwards compatibility only - Before Jan 2017 16
  • 17. DEEP DIVE INTO RDS – HA/DR • Pick a time to suit your business • Just tell AWS you want to go Multi-AZ Automatic Multi-AZ deployment Manual failovers if you want to test • No manual intervention needed. During automatic failover, any fault with original primary is fixed for you • Automatically chosen depending on version and edition • No readable secondary with AGs Technology used is Mirroring or Always On Availability Groups 17
  • 18. DEEP DIVE INTO RDS – SECURITY • Network Security • VPC • Security Groups • Publicly accessible • Choose your port • Database security • SQL Logins • Master user & others • Active Directory 18
  • 19. DEEP DIVE INTO RDS – ENCRYPTION • In-Transit (SSL Support) • You can use SSL to encrypt connections between your apps and RDS instance • You can force all connections to use SSL • Supported in all regions and for all editions • At Rest • Transparent Data Encryption (TDE) • Available in Enterprise Edition • Simply enable encryption at set up for all other editions (except express) 19
  • 20. DEEP DIVE INTO RDS – PARAMETER GROUPS • Parameter groups allow you to change settings above and beyond your level of access to the instance. • i.e Something requiring sysadmin or securityadmin role • Examples • Some trace flags e.g. 1204, 4199 • Cost threshold for parallelism • Optimize for ad hoc workloads • Changes to parameter groups apply to all instances using the group 20
  • 21. CLI & POWERSHELL • The key to cloud automation is scripting. AWS supports CLI and Powershell to save you from too many clunky manual process. • Examples • aws rds restore-db-instance-from-db- snapshot --db-instance-identifier restored- test-instance --db-snapshot-identifier test- instance-snap • Restore-RDSDBInstanceFromDBSnapshot - DBInstanceIdentifier restored-test-instance -DBSnapshotIdentifier test-instance-snap 21
  • 22. PRE MIGRATION PLANNING – MOVING DATA TB / GB Scale Direct ConnectSnowball / Edge PB Scale • 50 / 80 / 100 TB per device • Can use multiple • Transfers in 1 week • Dedicated connection • 1Gbps - 10Gbps 22 S3 Accelerated Transfer • CloudFront edge Locations • Distance ∝ improvement GB / MB Scale
  • 24. BACKUPS - HAVE YOU SEEN THE SNOWMOBILE Exabyte Scale 24
  • 25. PRE MIGRATION PLANNING 25 TASK Create full inventory Identify features used (What version / edition do we need) Do you have licenses to take to the cloud? What are your high availability / disaster recovery requirements Can you purge unwanted data What are your team’s capabilities
  • 26. MIGRATION STRATEGIES & TOOLS METHOD EC2 RDS Backup / Restore ✔ ✔ Database Migration Service and Schema Conversion Tool ✔ ✔ Log Shipping ✔ Transactional Replication ✔ Snowball ✔ ✔ 26
  • 28. THANK YOU If you want to find out more, go here: • https://johnmccormack.it/ 28
  • 29. FAQS • How long do AWS keep your backups? • 7 days default, can be increased up to 35 days • Can I bring my own license to RDS? • No • Can I scale up in place? • Yes • How can I set up database mail? • Linked server to EC2 or on-prem 29
  • 30. OTHER TECHNOLOGIES • ATHENA • Create Schema • Create databases / tables / views • They are not materialized • Query with SQL in console or JDBC connection • Use GLUE for ETL • Partition and compress to save money 30
  • 31. DEEP DIVE INTO RDS – INSTANCE TYPES Source: SQL Server Edition 2017 and 2016 Support Range 2014, 2012, and 2008 R2 Support Range Enterprise Edition Up to r4.16xlarge or m5.24xlarge Up to r4.8xlarge or m5.24xlarge Standard Edition Up to r4.16xlarge or m5.24xlarge Up to r4.8xlarge or m5.24xlarge Web Edition Up to t2.medium or r4.2xlarge or m5.4xlarge Up to t2.medium or r4.2xlarge or m5.4xlarge Express Edition t2.micro or t2.medium t2.micro or t2.medium 31