SlideShare una empresa de Scribd logo
1 de 43
SQL Server in the
AWS Cloud
Who Are We
Leading provider of SQL Server services to Corporate and Government
clients.
We have a team of experienced, Microsoft certified SQL Server
professionals that are passionate about the SQL Server technology suite.
Rob Risetto – Technical Director
0417 322 000

rob@dbinsight.com.au
www.dbinsight.com.au
Agenda

•
•
•
•
•
•
•
•

Application candidates and use cases
AWS building blocks for SQL
Performance considerations
SQL Server 2014 and AWS
Security
High Availability
SQL Backups
Pricing and SQL Licensing
Amazon Web Services (AWS)
Application Candidates
Web applications with minimal links
Application Candidates
Applications with varying workloads
Application Candidates
Applications with varying workloads
Application Candidates
Applications that require Global Scale
Use Cases
Disaster Recovery Site for On-Premise
Use Cases
Replacement of end of life server hardware
Use Cases
Offsite Backups to AWS S3 storage.
Use Cases

• Deployment of new “greenfield” solution
– Not sure of resources required
• New Online service/product
• – Uncertain if it will succeed in the market

• Fast provisioning for a proof of concept
• Require development/test servers to be provisioned at short notice or for
limited periods of time.

• User training – run up a temporary training environment
AWS Terms & Components

• EC2 instance – AWS virtual machine
• EBS – Elastic Block Store – persistent disk storage
• Standard vs Provisioned IOPS
• S3 – simple storage service– durable object storage
• Glacier – long term archive storage
AWS Terms & Components

• VPC – Virtual Private Cloud – isolate your VMs into your own network
• RDS – Relational Database Service – kind of a managed service for
database server
• Availability zone (AZ) – data centre in a geographical region
• Region – AWS location that houses 1 or more AZs
AWS Terms & Components

Lets have a look at the
AWS Management Console
and review the components
AWS Performance Considerations
Noisy Neighbours – Physical host shared by multiple VMs
AWS Performance Considerations
• EBS Volumes – network attached disks

• Standard EC2 instances - allows from 32 to 128 MB/sec
- Aligns with 1 Gbit network card
• Higher End EC2 instance allows up to 800 MB/sec
- Aligns with 10 Gbit network card
• Consider Placement Groups – group EC2 instances to
maximise node to node communications.
High end instances only
AWS Performance Considerations
Use EBS Optimised instances - dedicated capacity for EBS I/O
AWS Performance Considerations
• EBS Volume Types

• Provisioned IOPS - delivers within 10 % of the
provisioned IOPS performance 99.9 % of the time over
a given year
- up to 4000/sec 16 KB, or 2000/sec x 32 KB or
1000/sec x 64 KB IO.
• Standard – 100/sec with burst into the 100s/sec
• First touch penalty – 5 to 50 %
- write to each block or full format
AWS Performance Considerations
• Provisioned IOPS
• Needs EBS optimised instance to ensure rate
• Drive enough IOs/sec – keep queue length around 5
• Good for high IO needs of Data or Transaction log files
• Standard EBS
• Use if IO workload is not high – < 100 or so/sec
• Use for local backup
AWS Performance Considerations
• Software Raid EBS for bigger volumes and performance
– Raid 0 or Raid 1
• Windows instances – use Red Hat or Citrix paravirtual (PV)
drivers
– max 25 EBS volumes if using Citrix driver
– Otherwise 16 EBS volumes
• EBS is block replicated in the AZ to avoid downtime

• Use local EC2 instance storage for TempDB
AWS Terms & Components

SQLIO Tests on m1.xLarge instance
4 x CPUs, 15 GB RAM, EBS Optimised - 128 MB/sec
1 EBS, Raid 2xEBS, 4xEBS, 8xEBS
Graphs test data courtesy of David Tan!
AWS Performance Considerations
EBS Configuration Performance Summary
AWS Performance Considerations
EBS Configuration Performance Summary
SQL 2014 Performance on AWS
In Memory OLTP challenge – xLarge vs Large EC2 instance
• xLarge - 4 CPUs, 15 GB RAM, data/tlog disk -> 3000 PIOPS EBS volume
• Large – 2 CPUs, 7 GB RAM, data/tlog disk -> Standard EBS volume
Used Codeplex sample to run Disk Based and In Memory OLTP tests
http://msftdbprodsamples.codeplex.com/releases/view/114491
ostress.exe -S.sql2014 -E -dAdventureWorks2012
-Q"EXEC Demo.usp_DemoInsertSalesOrders
@use_inmem = 1, @order_count=10000" –n100
AWS Performance Considerations
SQL Server 2014 – Performance Features on AWS
SQL 2014 Performance on AWS
Buffer Pool Extension Challenge
– OLTP and DW workload Improvement??
Test environment :• C3.Large instance, 2 CPUs, 3.75 GB RAM, 2 x 16 GB SSD local storage

• HammerDB www.hammerora.sourceforge.net to generate OLTP and DW
workload
• Ran tests with and without BPE
• Ran DW test with 1 Query set of 22 queries – compared Elapsed time
• Ran OLTP test for 5 minutes – compared Transaction Rate/sec
SQL 2014 Performance on AWS
Buffer Pool Extension Feature
SQL 2014 Performance on AWS
Buffer Pool Extension Feature
-- Enable BPE
ALTER SERVER CONFIGURATION
SET BUFFER POOL EXTENSION ON
(FILENAME = 'Z:SQLBPESQLSSDCache.BPE', SIZE = 10 GB)
-- Check BPE status
SELECT * FROM
sys.dm_os_buffer_pool_extension_configuration

-- Check if any pages in BPE
SELECT * FROM sys.dm_os_buffer_descriptors
-- Disable BPE
ALTER SERVER CONFIGURATION
SET BUFFER POOL EXTENSION Off
SQL 2014 Performance on AWS
Buffer Pool Challenge – DW workload Improvement
SQL 2014 Performance on AWS
Buffer Pool Challenge – OLTP workload – no benefit
AWS Security for SQL Server
Virtual Private Cloud (VPC) – logically isolated network, private/public
subnets
AWS Security for SQL Server
Security Groups – inbound network firewalls for EC2 instances
Specify protocols, ports and source IPs or other Security groups to
reach a EC2 Instance
AWS Security for SQL Server
AWS Security Layers
SQL Server High Availability Options
SQL Server High Availability Options
• Log Shipping
• Replication
• Database Mirroring
• Availability Groups
• Native Windows/SQL Cluster NOT POSSIBLE
• 3rd Party Windows Clustering software using
- WSFC
- Block level replication
SQL Server High Availability Options
SteelEye DataKeeper Clustered Edition
- WSFC, No shared disk, works on SQL Standard Edition
- Block level replication, compression, SQL Cluster Failover
http://us.sios.com/windows-replication-availability-software-smb
Youtube video http://www.youtube.com/watch?v=giEg68Ori9M
SQL Server High Availability Options
• Separate Primary and Secondary in separate Availability Zones

• Also useful to failover for maintenance or noisy neighbour issues
SQL Server High Availability Options
Challenge – On Premise to AWS Availability Group
•
•
•
•
•

Two SQL Servers in separate Availability Zones
Third SQL Server located at DBInsight Office
Use AWS VPN endpoint
Create Customer VPN Gateway
Use on premise Router/ADSL equipment – cost less than $200
- Microtik RB951 routerboard
- TP Link 8840 T ADSL Modem Router
SQL Server High Availability Options
Challenge – On Premise to AWS Availability Group
AWS Whitepaper
http://aws.amazon.com/whitepapers/microsoft-wsfc-sql-alwayson/
Cloudformation template used for based configuration installation
SQL Server Backups
Standard SQL Backup Configuration

Use SQL Server 2014 backup encryption for extra protection on the EBS
volume.
Create Snapshot of system EBS volume, stored on S3 automatically.
SQL Server Licensing
• SPLA type licensing – license built into EC2 hourly cost
• Express edition (free)
• Web edition
• Standard edition
• BYO – Need SA for Mobility Rights
• BizSpark Program for start ups
AWS Pricing
• AWS has pricing on their web site – refer to the correct region

• EC2 Instance pricing
- On – Demand instance
- Reserved Instance
• AWS Online calculator
http://calculator.s3.amazonaws.com/calc5.html
DBInsight Contact Details
Rob Risetto
0417 322 000
rob@dbinsight.com.au

www.dbinsight.com.au

Take Cloud Readiness Survey – Get 1 hour free consultation
http://dbinsight.com.au/dbinsight/consulting/sql-in-thecloud/cloud-readiness-assessment
Free 14 day trial SQL Server Cloud Monitoring
http://dbinsight.com.au/dbinsight/dbinsight-monitor

Más contenido relacionado

La actualidad más candente

10월 웨비나 - 편하게 들어보는Microsoft on AWS 이야기 (노경훈 매니저)
10월 웨비나 - 편하게 들어보는Microsoft on AWS 이야기 (노경훈 매니저)10월 웨비나 - 편하게 들어보는Microsoft on AWS 이야기 (노경훈 매니저)
10월 웨비나 - 편하게 들어보는Microsoft on AWS 이야기 (노경훈 매니저)
Amazon Web Services Korea
 

La actualidad más candente (20)

Cloudformation & VPC, EC2, RDS
Cloudformation & VPC, EC2, RDSCloudformation & VPC, EC2, RDS
Cloudformation & VPC, EC2, RDS
 
AWS December 2015 Webinar Series - EC2 Dedicated Hosts
AWS December 2015 Webinar Series - EC2 Dedicated HostsAWS December 2015 Webinar Series - EC2 Dedicated Hosts
AWS December 2015 Webinar Series - EC2 Dedicated Hosts
 
Amazon ECS Container Service Deep Dive
Amazon ECS Container Service Deep DiveAmazon ECS Container Service Deep Dive
Amazon ECS Container Service Deep Dive
 
Advanced Security Masterclass - Tel Aviv Loft
Advanced Security Masterclass - Tel Aviv LoftAdvanced Security Masterclass - Tel Aviv Loft
Advanced Security Masterclass - Tel Aviv Loft
 
Introduction to Docker on AWS
Introduction to Docker on AWSIntroduction to Docker on AWS
Introduction to Docker on AWS
 
CloudFormation Best Practices
CloudFormation Best PracticesCloudFormation Best Practices
CloudFormation Best Practices
 
AWS Security
AWS SecurityAWS Security
AWS Security
 
AWS Elastic Beanstalk
AWS Elastic BeanstalkAWS Elastic Beanstalk
AWS Elastic Beanstalk
 
Building a CICD Pipeline for Container Deployment to Amazon ECS - May 2017 AW...
Building a CICD Pipeline for Container Deployment to Amazon ECS - May 2017 AW...Building a CICD Pipeline for Container Deployment to Amazon ECS - May 2017 AW...
Building a CICD Pipeline for Container Deployment to Amazon ECS - May 2017 AW...
 
[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...
[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...
[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...
 
How to build a Citrix infrastructure on AWS
How to build a Citrix infrastructure on AWSHow to build a Citrix infrastructure on AWS
How to build a Citrix infrastructure on AWS
 
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
(SDD422) Amazon VPC Deep Dive | AWS re:Invent 2014
 
Modernizing existing .NET applications with Windows Containers and Azure cloud
Modernizing existing .NET applications with Windows Containers and Azure cloudModernizing existing .NET applications with Windows Containers and Azure cloud
Modernizing existing .NET applications with Windows Containers and Azure cloud
 
Building CI-CD Pipelines for Serverless Applications
Building CI-CD Pipelines for Serverless ApplicationsBuilding CI-CD Pipelines for Serverless Applications
Building CI-CD Pipelines for Serverless Applications
 
AWS re:Invent 2016: Deep Dive on Amazon Elastic File System (STG202)
AWS re:Invent 2016: Deep Dive on Amazon Elastic File System (STG202)AWS re:Invent 2016: Deep Dive on Amazon Elastic File System (STG202)
AWS re:Invent 2016: Deep Dive on Amazon Elastic File System (STG202)
 
10월 웨비나 - 편하게 들어보는Microsoft on AWS 이야기 (노경훈 매니저)
10월 웨비나 - 편하게 들어보는Microsoft on AWS 이야기 (노경훈 매니저)10월 웨비나 - 편하게 들어보는Microsoft on AWS 이야기 (노경훈 매니저)
10월 웨비나 - 편하게 들어보는Microsoft on AWS 이야기 (노경훈 매니저)
 
[AWS Days Microsoft-LA 2015]: Software Licensing Considerations for Enterpris...
[AWS Days Microsoft-LA 2015]: Software Licensing Considerations for Enterpris...[AWS Days Microsoft-LA 2015]: Software Licensing Considerations for Enterpris...
[AWS Days Microsoft-LA 2015]: Software Licensing Considerations for Enterpris...
 
HDS Storage with VMWare VASA
HDS Storage with VMWare VASAHDS Storage with VMWare VASA
HDS Storage with VMWare VASA
 
Enterprise Service Delivery from the AWS Cloud (ARC208) | AWS re:Invent 2013
Enterprise Service Delivery from the AWS Cloud (ARC208) | AWS re:Invent 2013Enterprise Service Delivery from the AWS Cloud (ARC208) | AWS re:Invent 2013
Enterprise Service Delivery from the AWS Cloud (ARC208) | AWS re:Invent 2013
 
Active Directory for VMware vCenter 6.5
Active Directory for VMware vCenter 6.5Active Directory for VMware vCenter 6.5
Active Directory for VMware vCenter 6.5
 

Similar a SQL Server in the AWS Cloud

Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWSMigrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
Tom Laszewski
 

Similar a SQL Server in the AWS Cloud (20)

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
 
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 Business Critical Workloads on AWS
Running Business Critical Workloads on AWS Running Business Critical Workloads on AWS
Running Business Critical Workloads on AWS
 
Oracle Solutions on AWS : May 2014
Oracle Solutions on AWS : May 2014Oracle Solutions on AWS : May 2014
Oracle Solutions on AWS : May 2014
 
AWS Webcast - Webinar Series for State and Local Government #2: Discover the ...
AWS Webcast - Webinar Series for State and Local Government #2: Discover the ...AWS Webcast - Webinar Series for State and Local Government #2: Discover the ...
AWS Webcast - Webinar Series for State and Local Government #2: Discover the ...
 
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
ECS19 Anil Erduran and Ryan Pothecary - SQL Server On AWS RDS and Andamazone EC2
 
AWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWS
AWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWSAWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWS
AWS Webcast - AWS Webinar Series for Education #2 - Getting Started with AWS
 
Best Practices running SQL Server on AWS
Best Practices running SQL Server on AWSBest Practices running SQL Server on AWS
Best Practices running SQL Server on AWS
 
Migrating enterprise workloads to AWS
Migrating enterprise workloads to AWSMigrating enterprise workloads to AWS
Migrating enterprise workloads to AWS
 
AWS Webcast - Explore the AWS Cloud
AWS Webcast - Explore the AWS CloudAWS Webcast - Explore the AWS Cloud
AWS Webcast - Explore the AWS Cloud
 
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)
 
AWS Workshop Series: Microsoft SQL server and SharePoint on AWS
AWS Workshop Series: Microsoft SQL server and SharePoint on AWSAWS Workshop Series: Microsoft SQL server and SharePoint on AWS
AWS Workshop Series: Microsoft SQL server and SharePoint on AWS
 
Create cloud service on AWS
Create cloud service on AWSCreate cloud service on AWS
Create cloud service on AWS
 
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
 
Accelerate SQL Server Migration to the AWS Cloud
Accelerate SQL Server Migration to the AWS Cloud Accelerate SQL Server Migration to the AWS Cloud
Accelerate SQL Server Migration to the AWS Cloud
 
AWS Webcast - Website Hosting in the Cloud
AWS Webcast - Website Hosting in the CloudAWS Webcast - Website Hosting in the Cloud
AWS Webcast - Website Hosting in the Cloud
 
Sql Start! 2020 - SQL Server Lift & Shift su Azure
Sql Start! 2020 - SQL Server Lift & Shift su AzureSql Start! 2020 - SQL Server Lift & Shift su Azure
Sql Start! 2020 - SQL Server Lift & Shift su Azure
 
Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale Cost Effectively Run Multiple Oracle Database Copies at Scale
Cost Effectively Run Multiple Oracle Database Copies at Scale
 
Running Business Critical Workloads on AWS – Nam Je Cho
Running Business Critical Workloads on AWS – Nam Je ChoRunning Business Critical Workloads on AWS – Nam Je Cho
Running Business Critical Workloads on AWS – Nam Je Cho
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Último (20)

TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 

SQL Server in the AWS Cloud

  • 1. SQL Server in the AWS Cloud
  • 2. Who Are We Leading provider of SQL Server services to Corporate and Government clients. We have a team of experienced, Microsoft certified SQL Server professionals that are passionate about the SQL Server technology suite. Rob Risetto – Technical Director 0417 322 000 rob@dbinsight.com.au www.dbinsight.com.au
  • 3. Agenda • • • • • • • • Application candidates and use cases AWS building blocks for SQL Performance considerations SQL Server 2014 and AWS Security High Availability SQL Backups Pricing and SQL Licensing
  • 9. Use Cases Disaster Recovery Site for On-Premise
  • 10. Use Cases Replacement of end of life server hardware
  • 11. Use Cases Offsite Backups to AWS S3 storage.
  • 12. Use Cases • Deployment of new “greenfield” solution – Not sure of resources required • New Online service/product • – Uncertain if it will succeed in the market • Fast provisioning for a proof of concept • Require development/test servers to be provisioned at short notice or for limited periods of time. • User training – run up a temporary training environment
  • 13. AWS Terms & Components • EC2 instance – AWS virtual machine • EBS – Elastic Block Store – persistent disk storage • Standard vs Provisioned IOPS • S3 – simple storage service– durable object storage • Glacier – long term archive storage
  • 14. AWS Terms & Components • VPC – Virtual Private Cloud – isolate your VMs into your own network • RDS – Relational Database Service – kind of a managed service for database server • Availability zone (AZ) – data centre in a geographical region • Region – AWS location that houses 1 or more AZs
  • 15. AWS Terms & Components Lets have a look at the AWS Management Console and review the components
  • 16. AWS Performance Considerations Noisy Neighbours – Physical host shared by multiple VMs
  • 17. AWS Performance Considerations • EBS Volumes – network attached disks • Standard EC2 instances - allows from 32 to 128 MB/sec - Aligns with 1 Gbit network card • Higher End EC2 instance allows up to 800 MB/sec - Aligns with 10 Gbit network card • Consider Placement Groups – group EC2 instances to maximise node to node communications. High end instances only
  • 18. AWS Performance Considerations Use EBS Optimised instances - dedicated capacity for EBS I/O
  • 19. AWS Performance Considerations • EBS Volume Types • Provisioned IOPS - delivers within 10 % of the provisioned IOPS performance 99.9 % of the time over a given year - up to 4000/sec 16 KB, or 2000/sec x 32 KB or 1000/sec x 64 KB IO. • Standard – 100/sec with burst into the 100s/sec • First touch penalty – 5 to 50 % - write to each block or full format
  • 20. AWS Performance Considerations • Provisioned IOPS • Needs EBS optimised instance to ensure rate • Drive enough IOs/sec – keep queue length around 5 • Good for high IO needs of Data or Transaction log files • Standard EBS • Use if IO workload is not high – < 100 or so/sec • Use for local backup
  • 21. AWS Performance Considerations • Software Raid EBS for bigger volumes and performance – Raid 0 or Raid 1 • Windows instances – use Red Hat or Citrix paravirtual (PV) drivers – max 25 EBS volumes if using Citrix driver – Otherwise 16 EBS volumes • EBS is block replicated in the AZ to avoid downtime • Use local EC2 instance storage for TempDB
  • 22. AWS Terms & Components SQLIO Tests on m1.xLarge instance 4 x CPUs, 15 GB RAM, EBS Optimised - 128 MB/sec 1 EBS, Raid 2xEBS, 4xEBS, 8xEBS Graphs test data courtesy of David Tan!
  • 23. AWS Performance Considerations EBS Configuration Performance Summary
  • 24. AWS Performance Considerations EBS Configuration Performance Summary
  • 25. SQL 2014 Performance on AWS In Memory OLTP challenge – xLarge vs Large EC2 instance • xLarge - 4 CPUs, 15 GB RAM, data/tlog disk -> 3000 PIOPS EBS volume • Large – 2 CPUs, 7 GB RAM, data/tlog disk -> Standard EBS volume Used Codeplex sample to run Disk Based and In Memory OLTP tests http://msftdbprodsamples.codeplex.com/releases/view/114491 ostress.exe -S.sql2014 -E -dAdventureWorks2012 -Q"EXEC Demo.usp_DemoInsertSalesOrders @use_inmem = 1, @order_count=10000" –n100
  • 26. AWS Performance Considerations SQL Server 2014 – Performance Features on AWS
  • 27. SQL 2014 Performance on AWS Buffer Pool Extension Challenge – OLTP and DW workload Improvement?? Test environment :• C3.Large instance, 2 CPUs, 3.75 GB RAM, 2 x 16 GB SSD local storage • HammerDB www.hammerora.sourceforge.net to generate OLTP and DW workload • Ran tests with and without BPE • Ran DW test with 1 Query set of 22 queries – compared Elapsed time • Ran OLTP test for 5 minutes – compared Transaction Rate/sec
  • 28. SQL 2014 Performance on AWS Buffer Pool Extension Feature
  • 29. SQL 2014 Performance on AWS Buffer Pool Extension Feature -- Enable BPE ALTER SERVER CONFIGURATION SET BUFFER POOL EXTENSION ON (FILENAME = 'Z:SQLBPESQLSSDCache.BPE', SIZE = 10 GB) -- Check BPE status SELECT * FROM sys.dm_os_buffer_pool_extension_configuration -- Check if any pages in BPE SELECT * FROM sys.dm_os_buffer_descriptors -- Disable BPE ALTER SERVER CONFIGURATION SET BUFFER POOL EXTENSION Off
  • 30. SQL 2014 Performance on AWS Buffer Pool Challenge – DW workload Improvement
  • 31. SQL 2014 Performance on AWS Buffer Pool Challenge – OLTP workload – no benefit
  • 32. AWS Security for SQL Server Virtual Private Cloud (VPC) – logically isolated network, private/public subnets
  • 33. AWS Security for SQL Server Security Groups – inbound network firewalls for EC2 instances Specify protocols, ports and source IPs or other Security groups to reach a EC2 Instance
  • 34. AWS Security for SQL Server AWS Security Layers
  • 35. SQL Server High Availability Options SQL Server High Availability Options • Log Shipping • Replication • Database Mirroring • Availability Groups • Native Windows/SQL Cluster NOT POSSIBLE • 3rd Party Windows Clustering software using - WSFC - Block level replication
  • 36. SQL Server High Availability Options SteelEye DataKeeper Clustered Edition - WSFC, No shared disk, works on SQL Standard Edition - Block level replication, compression, SQL Cluster Failover http://us.sios.com/windows-replication-availability-software-smb Youtube video http://www.youtube.com/watch?v=giEg68Ori9M
  • 37. SQL Server High Availability Options • Separate Primary and Secondary in separate Availability Zones • Also useful to failover for maintenance or noisy neighbour issues
  • 38. SQL Server High Availability Options Challenge – On Premise to AWS Availability Group • • • • • Two SQL Servers in separate Availability Zones Third SQL Server located at DBInsight Office Use AWS VPN endpoint Create Customer VPN Gateway Use on premise Router/ADSL equipment – cost less than $200 - Microtik RB951 routerboard - TP Link 8840 T ADSL Modem Router
  • 39. SQL Server High Availability Options Challenge – On Premise to AWS Availability Group AWS Whitepaper http://aws.amazon.com/whitepapers/microsoft-wsfc-sql-alwayson/ Cloudformation template used for based configuration installation
  • 40. SQL Server Backups Standard SQL Backup Configuration Use SQL Server 2014 backup encryption for extra protection on the EBS volume. Create Snapshot of system EBS volume, stored on S3 automatically.
  • 41. SQL Server Licensing • SPLA type licensing – license built into EC2 hourly cost • Express edition (free) • Web edition • Standard edition • BYO – Need SA for Mobility Rights • BizSpark Program for start ups
  • 42. AWS Pricing • AWS has pricing on their web site – refer to the correct region • EC2 Instance pricing - On – Demand instance - Reserved Instance • AWS Online calculator http://calculator.s3.amazonaws.com/calc5.html
  • 43. DBInsight Contact Details Rob Risetto 0417 322 000 rob@dbinsight.com.au www.dbinsight.com.au Take Cloud Readiness Survey – Get 1 hour free consultation http://dbinsight.com.au/dbinsight/consulting/sql-in-thecloud/cloud-readiness-assessment Free 14 day trial SQL Server Cloud Monitoring http://dbinsight.com.au/dbinsight/dbinsight-monitor