12
#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Christopher Wolff Data Specialist Xero SQL Server Using Amazon Web Services EC2 Instances

SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Christopher WolffData Specialist

Xero

SQL Server Using Amazon Web Services EC2 Instances

Page 2: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Bio• Christopher Wolff

• Experience using SQL Server since SQL 2000

• Twitter: @tickytong

• Email: [email protected]

Page 3: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Objectives• Quick overview of Amazon Web Services Terms

• What is EC2?

• Options for SQL Server on EC2

• Create a SQL Server in EC2

• Security and Network Overview

• Other “Gotchas”

• Availability Groups on EC2

• And now for something completely different...

Page 4: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Amazon Web Services Terms• AWS

• EC2

• Route 53

• IAM

• VPC

• Security Groups

• AMI

Page 5: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

What is EC2?• Elastic Cloud Computing

• Virtual Server created through AWS for general computing use

• Used to be through Xen virtualization but recently changed to KVM

• Can be Linux or Windows OS

• Made by using a premade Amazon Machine Image (AMI)

Page 6: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Options For SQL Server On EC2• Relational Database Service (RDS)

• Using a prebaked Windows AMI with SQL Server already installed• Only good for up to SQL Server 2017 currently

• Using a prebaked Windows AMI and install SQL Server manually

• Using a prebaked Linux AMI and install SQL Server manually

Page 7: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Create A SQL Server in EC2• Demo

Page 8: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Security and Network Overview• Virtual Private Cloud (VPC)

• Security Groups (SG)

• Identity and Access Management (IAM)

• Route53

Page 9: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Other “Gotchas”• IOPS is dependent on disk size

• Bandwidth between instances is dependent on instance size

• Index maintenance on larger indexes may take down the AG• Around a million pages

• Striping the drives will help with IOPS

• AWS recommends r or i class servers

• Save money by using reserved instances

Page 10: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Availability Groups on EC2

Page 11: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

And Now for something Completely different...• Aurora

Serverless

Page 12: SQL Server Using Amazon Web Services EC2 Instancesfiles.informatandm.com/.../SQL_Server_using_Amazon... · #ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM Objectives •Quick overview of

#ITDEVCONNECTIONS | ITDEVCONNECTIONS.COM

Credits• Best Practices for SQL Server

• https://docs.aws.amazon.com/quickstart/latest/sql/best-practices.html

• Identity and Access Management• https://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html

• Aurora Serverless• https://aws.amazon.com/rds/aurora/serverless/

• Bootstrapping Your Large Production On-Premises SQL Server Databases to Amazon EC2• https://aws.amazon.com/blogs/database/bootstrapping-your-large-

production-on-premises-sql-server-databases-to-amazon-ec2/