SlideShare ist ein Scribd-Unternehmen logo
1 von 30
You can run SQL Server
on AWS?
John McCormack | DATA:Scotland | Sep 2019
Hello!
▪ John McCormack
▪ DBA since 2012
▪ MCSE Data Management and Analytics
▪ AWS Certified Cloud Solutions Architect
▪ https://johnmccormack.it
▪ @actualjohn
2
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.
e.g. SQL Server, MySQL, Postgressql, Oracle, MariaDB and
Aurora
3
▪ RDS
□ Managed instance
□ Less admin, less control
▪ EC2
□ VM in the cloud
□ More admin, more control
2 ways to run SQL Server in AWS
4
Administration Effort
Control
RDS
Azure MI
Azure SQL
DB
EC2
Azure VM
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)
5
RDS vs EC2 (continued)
FEATURE EC2 RDS
AWS Managed Multi-AZ ✔
Log Shipping ✔
Replication ✔
Database Mail ✔
Bulk Insert ✔
FILESTREAM ✔
6
Shared responsibility model
AWS EC2 RDS
HA/DR YOU 👉 AWS
Database Backups YOU 👉 AWS
SQL Server Patching YOU 👉 AWS
Installing SQL Server YOU 👉 AWS
OS Patching YOU 👉 AWS
Network AWS AWS
Power AWS AWS
Physical Security AWS AWS
7
Lets talk licensing
8
RDS
• Express edition is the only license free edition
• License included in instance cost
- Standard, Enterprise, Web
EC2
• You can use developer edition for non prod workloads
• BYOL or License included
• No software assurance = Dedicated host
Backup / Restore - RDS
9
• 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 (prod to dev)
– Accounts is similar to subscriptions in Azure
• Point in time restores (within 5 minutes)
• You can restore to a new RDS instance
Backup / Restore – EC2
10
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
Directly with 3rd party tools
Copy from EBS to S3
Backup directly to file system EBS offers automatic redundancy and encryption
Responsible for your own backups
and restores
Just like on-premises
Monitoring
CloudWatch
▪ Near real time info
▪ View multiple instances at once
▪ Trigger alerts
3rd party tools
▪ sp_whoisactive
▪ Sentry One
▪ Grafana
11
Deep dive into
RDS
Versions and Editions
Instance types
Storage types
HA/DR
Security
Encryption
Parameter groups
RDS – Versions & Editions
13
▪ Express
▪ Web
▪ Standard
▪ Enterprise
▪ 2012 – 2017
▪ SQL Server 2008 R2 was removed from options on 1st June 2019.
▪ Customers who didn’t act were automatically upgraded 🤦♂️
RDS – Instance Types
14
▪ T2
□ Lowest Cost
□ Burstable Performance
□ t2.micro = 1vCPU | 1 GiB RAM
▪ M4/M5
□ General Purpose
□ M5 is latest Generation
□ m5.xlarge = 4vCPU | 16 GiB RAM
▪ R4/R5
□ Memory optimized
□ R4 latest generation
□ r4.xlarge = 4vCPU | 32 GiB RAM
$200 more but no
increased licensing $$
RDS – Storage
15
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
• No manual intervention needed to fix original primary in
case of failover
• Automatically chosen depending on version / edition
• No readable secondary with AGs
Automatic Multi-AZ
deployment
Manual failovers
Any fault with original
primary is fixed for you
Mirroring or
Always On Availability
Groups
• Just tell AWS you want to go Multi-AZ
RDS – Multi AZ
16
• Pick a time to test that suits your business
RDS – Security
17
▪ Network Security
□ VPC
□ Security Groups
□ Choose your port
▪ Database security
□ SQL Logins
▫ Master user & others
□ Active Directory
RDS – Parameter Groups
18
▪ 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, 1222
□ Cost threshold for parallelism
□ Optimize for ad hoc workloads
▪ Changes to parameter groups apply to all instances using the
group
RDS – CLI & PowerShell
19
▪ Cloud computing at scale requires automation
▪ AWS supports CLI and Powershell to save you from too many clunky
manual process
▪ Examples
□ aws rds restore-db-instance-from-db-snapshot
□ Restore-RDSDBInstanceFromDBSnapshot
We will cover scripting in detail during the demo – learn at least 1
DEMO
20
21
Thanks!
If you want to find out more
You can find me at
▪ @actualjohn
▪ johnmccormack.it (Slides plus bonus content)
22
End
23
Bonus Content
Migration Planning
24
Direct ConnectSnowball / Edge S3 Accelerated Transfer
50 / 80 / 100 TB per device
Can use multiple
Transfers in 1 week
PB Scale
Dedicated connection
1Gbps – 10 Gbps
TB / GB Scale
Cloudfront Edge Locations
Distance ∝ improvement
GB / MB Scale
CloudFront Edge Locations
25
© https://aws.amazon.com/cloudfront/features/#Amazon_CloudFront_Infrastructure
Snowmobile
26 Petabyte Scale
Pre Migration Planning
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
27
Migration strategies and tools
METHOD EC2 RDS
BACKUP / RESTORE ✔ ✔
Database Migration Service /
Schema Conversion Tool
✔ ✔
Log Shipping ✔
Transactional Replication ✔
Snowball ✔ ✔
28
29
Really the end
Credits
Special thanks to all the people who made
and released these awesome resources for
free:
▪ Presentation template by SlidesCarnival
▪ Photographs by Unsplash
30

Weitere ähnliche Inhalte

Was ist angesagt?

Cloud Computing: AWS for Lean Startups
Cloud Computing: AWS for Lean StartupsCloud Computing: AWS for Lean Startups
Cloud Computing: AWS for Lean Startups
Zvi Avraham
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
Tom Laszewski
 

Was ist angesagt? (20)

High availability
High availabilityHigh availability
High availability
 
A brief introduction to CloudFormation
A brief introduction to CloudFormationA brief introduction to CloudFormation
A brief introduction to CloudFormation
 
Microsoft Azure Media Services
Microsoft Azure Media ServicesMicrosoft Azure Media Services
Microsoft Azure Media Services
 
AWS re:Invent 2016: Case Study: Librato's Experience Running Cassandra Using ...
AWS re:Invent 2016: Case Study: Librato's Experience Running Cassandra Using ...AWS re:Invent 2016: Case Study: Librato's Experience Running Cassandra Using ...
AWS re:Invent 2016: Case Study: Librato's Experience Running Cassandra Using ...
 
AWS Quick Intro
AWS Quick IntroAWS Quick Intro
AWS Quick Intro
 
Percona Live 2014 - Scaling MySQL in AWS
Percona Live 2014 - Scaling MySQL in AWSPercona Live 2014 - Scaling MySQL in AWS
Percona Live 2014 - Scaling MySQL in AWS
 
Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집
Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집
Aurora Serverless, 서버리스 RDB의 서막 - 트랙2, Community Day 2018 re:Invent 특집
 
Cloud Storage in Azure, AWS and Google Cloud
Cloud  Storage in Azure, AWS and Google CloudCloud  Storage in Azure, AWS and Google Cloud
Cloud Storage in Azure, AWS and Google Cloud
 
Kubernetes and AWS Lambda can 
play nicely together
Kubernetes and AWS Lambda can 
play nicely togetherKubernetes and AWS Lambda can 
play nicely together
Kubernetes and AWS Lambda can 
play nicely together
 
Inception Pack Vol 2: Bizarre premium
Inception Pack Vol 2: Bizarre premiumInception Pack Vol 2: Bizarre premium
Inception Pack Vol 2: Bizarre premium
 
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
 
Your First Week on AWS
Your First Week on AWSYour First Week on AWS
Your First Week on AWS
 
Scylla Summit 2018: Meshify - A Case Study, or Petshop Seamonsters
Scylla Summit 2018: Meshify - A Case Study, or Petshop SeamonstersScylla Summit 2018: Meshify - A Case Study, or Petshop Seamonsters
Scylla Summit 2018: Meshify - A Case Study, or Petshop Seamonsters
 
Cloud Computing: AWS for Lean Startups
Cloud Computing: AWS for Lean StartupsCloud Computing: AWS for Lean Startups
Cloud Computing: AWS for Lean Startups
 
Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...
Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...
Developing for Your Target Market - Social, Games & Mobile - AWS India Summit...
 
Understanding AWS with Terraform
Understanding AWS with TerraformUnderstanding AWS with Terraform
Understanding AWS with Terraform
 
Sql saturday azure storage by Anton Vidishchev
Sql saturday azure storage by Anton VidishchevSql saturday azure storage by Anton Vidishchev
Sql saturday azure storage by Anton Vidishchev
 
Aws Fargate clusterless serverless
Aws Fargate clusterless serverlessAws Fargate clusterless serverless
Aws Fargate clusterless serverless
 
Introduction to AWS Outposts
Introduction to AWS OutpostsIntroduction to AWS Outposts
Introduction to AWS Outposts
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
 

Ähnlich wie Data Scotland 2019: You can run SQL Server on AWS

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
Amazon Web Services
 

Ähnlich wie Data Scotland 2019: You can run SQL Server on AWS (20)

Running SQL Server on AWS | John McCormack | DataGrillen 2019
Running SQL Server on AWS | John McCormack | DataGrillen 2019Running SQL Server on AWS | John McCormack | DataGrillen 2019
Running SQL Server on AWS | John McCormack | DataGrillen 2019
 
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
데이터 마이그레이션 AWS와 같이하기 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
 
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
 
Design, Deploy, and Optimize SQL Server on AWS - AWS Online Tech Talks
Design, Deploy, and Optimize SQL Server on AWS - AWS Online Tech TalksDesign, Deploy, and Optimize SQL Server on AWS - AWS Online Tech Talks
Design, Deploy, and Optimize SQL Server on AWS - AWS Online Tech Talks
 
Design, Deploy, and Optimize SQL Server on AWS - June 2017 AWS Online Tech Talks
Design, Deploy, and Optimize SQL Server on AWS - June 2017 AWS Online Tech TalksDesign, Deploy, and Optimize SQL Server on AWS - June 2017 AWS Online Tech Talks
Design, Deploy, and Optimize SQL Server on AWS - June 2017 AWS Online Tech Talks
 
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
 
AWS Certified Solutions Architect Professional Course S10-S14
AWS Certified Solutions Architect Professional Course S10-S14AWS Certified Solutions Architect Professional Course S10-S14
AWS Certified Solutions Architect Professional Course S10-S14
 
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
 
Azure DBA with IaaS
Azure DBA with IaaSAzure DBA with IaaS
Azure DBA with IaaS
 
Running Oracle EBS in the cloud (OAUG Collaborate 18 edition)
Running Oracle EBS in the cloud (OAUG Collaborate 18 edition)Running Oracle EBS in the cloud (OAUG Collaborate 18 edition)
Running Oracle EBS in the cloud (OAUG Collaborate 18 edition)
 
Running Oracle EBS in the cloud (DOAG TECH17 edition)
Running Oracle EBS in the cloud (DOAG TECH17 edition)Running Oracle EBS in the cloud (DOAG TECH17 edition)
Running Oracle EBS in the cloud (DOAG TECH17 edition)
 
PASS 17 SQL Server on AWS Best Practices
PASS 17 SQL Server on AWS Best PracticesPASS 17 SQL Server on AWS Best Practices
PASS 17 SQL Server on AWS Best Practices
 
Running Oracle EBS in the cloud (UKOUG APPS16 edition)
Running Oracle EBS in the cloud (UKOUG APPS16 edition)Running Oracle EBS in the cloud (UKOUG APPS16 edition)
Running Oracle EBS in the cloud (UKOUG APPS16 edition)
 
Day 3 - AWS MySQL Relational Database Service Best Practices for Performance ...
Day 3 - AWS MySQL Relational Database Service Best Practices for Performance ...Day 3 - AWS MySQL Relational Database Service Best Practices for Performance ...
Day 3 - AWS MySQL Relational Database Service Best Practices for Performance ...
 
Day 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance Database
Day 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance DatabaseDay 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance Database
Day 2 - Amazon RDS - Letting AWS run your Low Admin, High Performance Database
 
Intro to AWS: Database Services
Intro to AWS: Database ServicesIntro to AWS: Database Services
Intro to AWS: Database Services
 
Intro to AWS: Database Services
Intro to AWS: Database ServicesIntro to AWS: Database Services
Intro to AWS: Database 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...
 
(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWS(DAT202) Managed Database Options on AWS
(DAT202) Managed Database Options on AWS
 
Intro to AWS: Database Services
Intro to AWS: Database ServicesIntro to AWS: Database Services
Intro to AWS: Database Services
 

Kürzlich hochgeladen

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
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
amitlee9823
 
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
amitlee9823
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
karishmasinghjnh
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
amitlee9823
 
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
gajnagarg
 
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
 
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
gajnagarg
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
only4webmaster01
 

Kürzlich hochgeladen (20)

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
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men  🔝Mathura🔝   Escorts...
➥🔝 7737669865 🔝▻ Mathura Call-girls in Women Seeking Men 🔝Mathura🔝 Escorts...
 
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men  🔝Sambalpur🔝   Esc...
➥🔝 7737669865 🔝▻ Sambalpur Call-girls in Women Seeking Men 🔝Sambalpur🔝 Esc...
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
 
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
Just Call Vip call girls Mysore Escorts ☎️9352988975 Two shot with one girl (...
 
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
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...
 
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
Just Call Vip call girls Palakkad Escorts ☎️9352988975 Two shot with one girl...
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 

Data Scotland 2019: You can run SQL Server on AWS

  • 1. You can run SQL Server on AWS? John McCormack | DATA:Scotland | Sep 2019
  • 2. Hello! ▪ John McCormack ▪ DBA since 2012 ▪ MCSE Data Management and Analytics ▪ AWS Certified Cloud Solutions Architect ▪ https://johnmccormack.it ▪ @actualjohn 2
  • 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. e.g. SQL Server, MySQL, Postgressql, Oracle, MariaDB and Aurora 3
  • 4. ▪ RDS □ Managed instance □ Less admin, less control ▪ EC2 □ VM in the cloud □ More admin, more control 2 ways to run SQL Server in AWS 4 Administration Effort Control RDS Azure MI Azure SQL DB EC2 Azure VM
  • 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) 5
  • 6. RDS vs EC2 (continued) FEATURE EC2 RDS AWS Managed Multi-AZ ✔ Log Shipping ✔ Replication ✔ Database Mail ✔ Bulk Insert ✔ FILESTREAM ✔ 6
  • 7. Shared responsibility model AWS EC2 RDS HA/DR YOU 👉 AWS Database Backups YOU 👉 AWS SQL Server Patching YOU 👉 AWS Installing SQL Server YOU 👉 AWS OS Patching YOU 👉 AWS Network AWS AWS Power AWS AWS Physical Security AWS AWS 7
  • 8. Lets talk licensing 8 RDS • Express edition is the only license free edition • License included in instance cost - Standard, Enterprise, Web EC2 • You can use developer edition for non prod workloads • BYOL or License included • No software assurance = Dedicated host
  • 9. Backup / Restore - RDS 9 • 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 (prod to dev) – Accounts is similar to subscriptions in Azure • Point in time restores (within 5 minutes) • You can restore to a new RDS instance
  • 10. Backup / Restore – EC2 10 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 Directly with 3rd party tools Copy from EBS to S3 Backup directly to file system EBS offers automatic redundancy and encryption 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 11
  • 12. Deep dive into RDS Versions and Editions Instance types Storage types HA/DR Security Encryption Parameter groups
  • 13. RDS – Versions & Editions 13 ▪ Express ▪ Web ▪ Standard ▪ Enterprise ▪ 2012 – 2017 ▪ SQL Server 2008 R2 was removed from options on 1st June 2019. ▪ Customers who didn’t act were automatically upgraded 🤦♂️
  • 14. RDS – Instance Types 14 ▪ T2 □ Lowest Cost □ Burstable Performance □ t2.micro = 1vCPU | 1 GiB RAM ▪ M4/M5 □ General Purpose □ M5 is latest Generation □ m5.xlarge = 4vCPU | 16 GiB RAM ▪ R4/R5 □ Memory optimized □ R4 latest generation □ r4.xlarge = 4vCPU | 32 GiB RAM $200 more but no increased licensing $$
  • 15. RDS – Storage 15 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
  • 16. • No manual intervention needed to fix original primary in case of failover • Automatically chosen depending on version / edition • No readable secondary with AGs Automatic Multi-AZ deployment Manual failovers Any fault with original primary is fixed for you Mirroring or Always On Availability Groups • Just tell AWS you want to go Multi-AZ RDS – Multi AZ 16 • Pick a time to test that suits your business
  • 17. RDS – Security 17 ▪ Network Security □ VPC □ Security Groups □ Choose your port ▪ Database security □ SQL Logins ▫ Master user & others □ Active Directory
  • 18. RDS – Parameter Groups 18 ▪ 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, 1222 □ Cost threshold for parallelism □ Optimize for ad hoc workloads ▪ Changes to parameter groups apply to all instances using the group
  • 19. RDS – CLI & PowerShell 19 ▪ Cloud computing at scale requires automation ▪ AWS supports CLI and Powershell to save you from too many clunky manual process ▪ Examples □ aws rds restore-db-instance-from-db-snapshot □ Restore-RDSDBInstanceFromDBSnapshot We will cover scripting in detail during the demo – learn at least 1
  • 21. 21 Thanks! If you want to find out more You can find me at ▪ @actualjohn ▪ johnmccormack.it (Slides plus bonus content)
  • 24. Migration Planning 24 Direct ConnectSnowball / Edge S3 Accelerated Transfer 50 / 80 / 100 TB per device Can use multiple Transfers in 1 week PB Scale Dedicated connection 1Gbps – 10 Gbps TB / GB Scale Cloudfront Edge Locations Distance ∝ improvement GB / MB Scale
  • 25. CloudFront Edge Locations 25 © https://aws.amazon.com/cloudfront/features/#Amazon_CloudFront_Infrastructure
  • 27. Pre Migration Planning 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 27
  • 28. Migration strategies and tools METHOD EC2 RDS BACKUP / RESTORE ✔ ✔ Database Migration Service / Schema Conversion Tool ✔ ✔ Log Shipping ✔ Transactional Replication ✔ Snowball ✔ ✔ 28
  • 30. Credits Special thanks to all the people who made and released these awesome resources for free: ▪ Presentation template by SlidesCarnival ▪ Photographs by Unsplash 30