SlideShare a Scribd company logo
SQL Server Performance on AWS
강민석(Kang Minseok)
Sr. Database Solutions Architect
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
목차
• Microsoft on AWS
• SQL Server의 고가용성 기능
• SQL Server on AWS 성능
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
90+
40+
795
Windows Deep Learning AMI
Hyper-V support in SMS
Application-consistent Snapshots through VSS
WS 2008 & SQL Server 2008
Visual Studio Toolkit
Microsoft SCOM plug-in release
AWS Directory Service
EC2 Dedicated Hosts (BYOL)
Microsoft SharePoint 2016 (Marketplace)
Windows Server 2008 R2
SQL Server 2008 R2
Windows Server 2003
SQL Server 2005
.NET SDK
Microsoft SCVMM Plug-in
Windows Server 2012
SQL Server 2012
AWS Tools for Windows PowerShell
Amazon RDS adds SQL Server
EC2 Run Command
EC2 Systems Manager
Windows Server & SQL Server 2016
EC2 Dedicated Instances (BYOL)
.NET on Lambda
& Codebuild
SAP instance on AWS 2012
Trusted Advisor
checks for Windows
SQL Server 2017
X-Ray .NET SDK
CustomerAdoption
Windows for Lightsail
.NET Core & Powershell
on AL2/Ubuntu
2008 Today
.NET Core 2.0 Support
with Lambda & X-Ray
EC2 Windows on Bare Metal/Hyper-V AMI
SQL 2017 AMI
AL2/Ubuntu.NET Developer Hub
인스턴스 타입, 22 인스턴스 패밀리
개의 Windows 워크로드를 위한 AMI
Windows ISV 가 마켓플레이스에 존재
Microsoft on AWS 기술 혁신
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Web
Services
57.7%
Microsoft
Azure
30.9%
Others
11.4%
Worldwide Windows Public Cloud IaaS Instances by Cloud Provider 2017
클라우드 환경에서 Windows 서비스
IDC, Windows Server Operating Environment Market Update, Doc # US44217118, Aug 2018
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
가장 앞선 신뢰성을 제공
지난 365일간 2위 사업자 대비
16 배 적은 다운 타임
Source: Gartner CloudHarmony (7/10/2018)
July 2017-July 2018
#downtime minutes for compute and storage (all regions)
2위 사업자
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server 고가용성 구성
• 복제(Replication)
• 로그전달(Log Shipping)
• 미러링(Mirroring)
• 클러스터링(Windows Server Failover Cluster(WSFC) )
• SQL Server AlwaysOn
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server 고가용성 구성 - 복제
• 복제(Replication)
• Publisher: 게시자(원본 DB)
• Distributor: 배포자(배포DB )
• Subscription: 구독자(복제 DB)
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server 고가용성 구성 – Log shipping
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server 고가용성 구성 - Mirroring
 동기식(Synchronous) 데이터 복제 – 자동 Failover ( Witness 필요)
 동기식(Synchronous) 데이터 복제 – 수동 Failover
 비동기식(Asynchronous) 데이터 복제 – 수동 Failover, 성능
Primary Server
Secondary Server
Witness
Instance
Mirror
DB
Mirror
DB
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server 고가용성 구성 - 클러스터링
• Windows Server Failover cluster
• Active Node
• Passive Node
• Virtual IP for Cluster and Cluster Name
• Virtual IP for SQL Server and Virtual Name
• Shared Disk
• Quorum
• Public Network
• Heartbeat Network
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server 고가용성 구성 - AlwaysOn
• Shared Disk가
필요없음
• SQL Server가
클러스터 리소스로
등록 되지 않음
• 클러스터 리소스로
AlwaysOn listener
가 등록됨
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Demo – SQL Sever AlwaysOn Failover
12
Failover time : 20 Secs
AlwaysOn Connection Failover Time
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server 고가용성 구성 비교
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server on AWS 성능
• Performance of SQL Server on AWS
• Network
• Storage
• SQL Server on EC2 / RDS
• SQL Server on AWS - Architecture
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
성능에 관련된 요소들
Compute
Capabilities
vCPUs
Memory
Capabilities
GB of RAM
Network
Performance
MB/s
(Throughput)
Storage
Performance
I/O Throughput
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Enhanced Networking Interface: Intel VF 과 ENA
• [Intel VF] Intel ixgbevf 드라이버 사용
• EC2에서는 Intel ixgbevf 드라이버를 사용하는 Intel 82599 VF 인터페이스를 통해 향상된
네트워킹 기능을 제공
• https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/WindowsGuide/sriov-networking.html
• [ENA] ENA(Elastic Network Adapter)
• RSS (Receive Side Scaling )
• https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/WindowsGuide/enhanced-networking-ena.html
• Throughput
• Intel VF: 최대 10Gbps
• ENA: 최대 25Gbps
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Network Throughput 테스트 결과
10분 이상
≃ 1194 Mbps
≃ 868 Mbps
c5.xlarge
c4.xlarge
≃ 9.41 Gbps
Model vCPU*
Network
Performance
(Gbps)
c5.xlarge 4 Up to 10
c4.xlarge 4 High
c5d.18xlarge 72 25
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ENA 설정 튜닝- RSS Group 변경
Set-NetAdapterRss -name (Get-NetAdapter | Where-Object {$_.InterfaceDescription -like '*Elastic*'}).Name -
Baseprocessorgroup 0 -BaseProcessorNumber 2
ENA Network 병목: vCPU(0)가 과도하게 사용됨
0 2 4 6 8
1 3 5 7 9
Network Stack( RSS ), 8 vCPUs
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server를 위한 Storage - EBS
Max Throughput per Volume: 1000 MB/s
Max IOPS per Volume: 64,000
Volume Size: 4 GB to 16 TB
Ideal for critical applications and databases with
sustained IOPS
Provisioned IOPS SSD General Purpose SSD
Max Throughput per Volume: 250 MB/s
Max IOPS per Volume: 16,000
Volume Size: 1 GB to 16 TB
Great for boot volumes, low latency
applications and bursty databases
Burst: 3,000 IOPS (for volumes up to 1 TB)
SSD(Solid-State Drive) 하드 디스크 드라이브(HDD)
볼륨 유형 범용 SSD(gp2)* 프로비저닝된
IOPS SSD (io1)
처리량에 최적화된
HDD (st1)
Cold HDD (sc1)
API 이름 gp2 io1 st1 sc1
볼륨 크기 1GiB - 16TiB 4GiB - 16TiB 500GiB - 16TiB 500GiB - 16TiB
최대 IOPS**/볼륨 16,000*** 64,000**** 500 250
최대 처리량/볼륨 250MiB/s*** 1,000MiB/s† 500MiB/s 250MiB/s
최대 IOPS/인스턴스 80,000 80,000 80,000 80,000
최대 처리량/인스턴스1,750MiB/s 1,750MiB/s 1,750MiB/s 1,750MiB/s
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server를 위한 Storage - NVMe
• Amazon EC2 인스턴스 스토어
- NVMe (Non-Volatile Memory express) 타입의 SSD를 장착하여 낮은 지연속도와 높은 IOPS
- 데이터 유지: 물리적 호스트 재시작, EC2 재부팅
- 데이터 삭제: 인스턴스가 중지/종료, 또는 호스트 하드웨어 이슈로 호스트가 이동되는 경우
- 지원 인스턴스: C5d, I3, F1, M5ad, M5d, p3dn.24xlarge, R5ad, R5d 및 z1d
인스턴스 타입 vCPU (CPU clock) Mem(GiB) 인스턴스 스토어 크기
c5d 2 ~ 72 (3.0 ~ 3.5 GHz) 4 ~ 144 50 ~ 900 GiB
m5d 2 ~ 96 (2.5 GHz) 8 ~ 384 75 GiB ~ 3.6 TiB
r5d 2 ~ 96 (~3.1 GHz) 16 ~ 768 75 GiB ~ 3.6 TiB
z1d 2 ~ 48 (~4.0 GHz) 16 ~ 384 75 GiB ~ 1.8 TiB
i3 2 ~ 72 (2.3 GHz) 15.25 ~ 512 475 GiB ~ 15.2 TiB
i3en 2 ~ 96 (3.1 GHz) 16 ~ 768 1.25 TiB ~ 60 TiB
https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/instance-types.html#ec2-nitro-instances
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS 관리형 서비스
Amazon RDS
• RDS SQL Server
직접 관리
Amazon EC2
 BYOL Windows & SQL
 EC2 Windows + BYOL SQL
 EC2 Windows + SQL
AWS 에서 SQL Server 선택 기준
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SQL Server on AWS 운영 책임
Amazon RDS for SQL Server
Power, HVAC, net
Rack and stack
Server maintenance
OS patches
DB software patches
Database backups
High availability
DB software installs
OS installation
Scaling
App optimization
Power, HVAC, net
Rack and stack
Server maintenance
OS patches
DB software patches
Database backups
High availability
DB software installs
OS installation
Scaling
App optimization
SQL Server on Amazon EC2
Customer managed Multiple optionsAWS managed
Legend
• RDS 선택 기준
• DBA 가 없다
• 관리할 서버가
많다.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
아키텍쳐 - SQL Server AlwaysOn on AWS
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Demo – SQL Server Performance
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Optimize vCPU 성능 비교
25
I3.8xlarge with NVME- enabled HyperThreads I3.8xlarge with NVME- disabed HyperThreads
• Blue: Batch Request/sec (Scale-0.001)
• Red: % Process time
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Architecture Sample – 비용 효율성 위주
• SQL 서버의 스탠다드 라이선스
사용(SE)
• 2대 인스턴스 구성
• 복수 AZ 구성 권고
• 인스턴스간 Synchronous 복제
(EBS의 간헐적인 Latency Spike 영향
최소화)
• 인스턴스 스토어에 데이터 파일 및
로그 파일 구성
VPC
Availability zone 1 Availability zone 2
Private subnet Private subnet
EC2 ReplicaEC2 Active
Public subnet Public subnet
게임 서버
Synchronous
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Architecture Sample – 고성능 위주
• SQL 서버 엔터프라이즈 라이선스
사용(EE)
• 3대 인스턴스 사용
• 동일 AZ에 Cluster Placement
Group으로 2대 인스턴스 배치
• 동일 AZ 인스턴스간 Synchronous
복제
• 다른 AZ에 추가 1대 인스턴스 배치
• 다른 AZ 인스턴스간 Asynchronous
복제
• 복제 인스턴스에서 데이터 및 로그
백업
VPC
Availability zone 1 Availability zone 2
Private subnet Private subnet
EC2 ReplicaEC2 Active
Public subnet Public subnet
게임 서버
Sync
EC2 Replica
Async
Cluster Placement Group
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Architecture Sample – 데이터 안정성 위주
• SQL 서버 엔터프라이즈
라이선스 사용(EE)
• 3대 이상 인스턴스 사용
• 데이터는 EBS 볼륨, 로그는
인스턴스 스토어에 배치
• 다수의 AZ에 인스턴스 배치
• 모든 인스턴스간 Synchronous
복제
• 복제 인스턴스에서 데이터 및
로그 백업
• 동일 AZ에 인스턴스 배치할
경우, Spread Placement
Group 사용
VPC
Availability zone1 Availability zone2
Private
subnet
Private
subnet
EC2 ReplicaEC2 Active
Public subnet Public subnet
게임 서버
Sync
Availability zone3
Private
subnet
EC2 Replica
Public subnet
syncEBS EBS EBS
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Compliance Certifications
PCIDSS, HIPPA, FISMA, ISO, K-ISMS, …
66가격 인하 단행 회수
Since 2006
가장 축적된 경험
Windows 워크로드의 운영
10years
세계적 규모와 고가용성
18 개 리젼
55Availability Zones
시큐리티와 컴플라이언스
60+
고객만족과 기술혁신 최고의 성능을 내는 플랫폼 TCO 절감
80,000지속적
IOPS / Instance
100서비스 오퍼링
Over
Windows 및 SQL Server 워크로드를 위한 최적의 클라우드
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Migration 워크샵에 참석해주셔서 대단히 감사합니다.
저희가 준비한 내용, 어떻게 보셨나요?
더 나은 세미나를 위하여 설문을 꼭 작성해 주시기 바랍니다.
aws-korea-marketing@amazon.com
twitter.com/AWSKorea
facebook.com/amazonwebservices.ko
youtube.com/user/AWSKorea
slideshare.net/awskorea
twitch.tv/aws

More Related Content

PDF
[AWS Migration Workshop] 데이터베이스를 AWS로 손쉽게 마이그레이션 하기
PDF
[AWS Migration Workshop] VMware Cloud on AWS - 하이브리드 환경의 운영
PDF
[AWS Migration Workshop] AWS 클라우드로의 안전하고 신속한 마이그레이션 방안
PDF
[AWS Builders 온라인 시리즈] AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트
PDF
빠르고 안전하게 간편한 AWS로 데이터 마이그레이션 하기::최유정 (AWS 솔루션즈아키텍트)
PPTX
AWS 12월 웨비나 │클라우드 마이그레이션을 통한 성공사례
PDF
[AWS Builders] AWS 스토리지 서비스 소개 및 사용 방법
PDF
AWS CLOUD 2018- AWS 네트워크 신규 기능 업데이트  (강동환 솔루션즈 아키텍트)
[AWS Migration Workshop] 데이터베이스를 AWS로 손쉽게 마이그레이션 하기
[AWS Migration Workshop] VMware Cloud on AWS - 하이브리드 환경의 운영
[AWS Migration Workshop] AWS 클라우드로의 안전하고 신속한 마이그레이션 방안
[AWS Builders 온라인 시리즈] AWS 서비스를 활용하여 파일 스토리지 빠르게 마이그레이션 하기 - 서지혜, AWS 솔루션즈 아키텍트
빠르고 안전하게 간편한 AWS로 데이터 마이그레이션 하기::최유정 (AWS 솔루션즈아키텍트)
AWS 12월 웨비나 │클라우드 마이그레이션을 통한 성공사례
[AWS Builders] AWS 스토리지 서비스 소개 및 사용 방법
AWS CLOUD 2018- AWS 네트워크 신규 기능 업데이트  (강동환 솔루션즈 아키텍트)

What's hot (20)

PDF
[AWSome Day온라인 컨퍼런스] 강의 2: 클라우드 시작하기 - 장기웅, AWS 테크니컬 트레이너
PDF
[2017 Windows on AWS] AWS 를 활용한 SQL Server 최적 활용 방안
PDF
Terraform을 이용한 Infrastructure as Code 실전 구성하기 :: 변정훈::AWS Summit Seoul 2018
PDF
고객 경험을 통한 AWS 클라우드 이전을 위한 지름길 - 김효정 (AWS 솔루션즈 아키텍트)
PDF
[Games on AWS 2019] AWS 입문자를 위한 초단기 레벨업 트랙 | AWS 레벨업 하기! : 스토리지 - 현륜식 AWS 솔루션...
PPTX
10월 웨비나 - AWS 상에서 Microsoft SQL Server 운영의 모범 사례 살펴보기 (최정욱 솔루션즈 아키텍트)
PDF
슬기로운 “클라우드 저장소 이전” 생활 :: 윤석찬 (AWS테크에반젤리스트) :: Database Migration Session 3::C...
PDF
데이터베이스 운영, 서버리스로 걱정 끝! - 윤석찬, AWS 테크에반젤리스트 - AWS Builders Online Series
PDF
개발자들이 직접 선정한 re:Invent 2019 상위 12 신규 서비스 알아보기 - 윤석찬 (AWS 테크에반젤리스트)
PDF
Oracle DB를 AWS로 이관하는 방법들 - 서호석 클라우드 사업부/컨설팅팀 이사, 영우디지탈 :: AWS Summit Seoul 2021
PDF
AWS re:Invent 2018 콘테이너 신규 서비스 기능 살펴보기 - 윤석찬, AWS 테크에반젤리스트
PDF
Amazon ECS/ECR을 활용하여 마이크로서비스 구성하기 - 김기완 (AWS 솔루션즈아키텍트)
PDF
클라우드 환경으로 데이터베이스 이전하기 - 강민석, AWS SR. Database SA
PDF
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
PDF
[애플리케이션 현대화 및 개발] 현대적 애플리케이션 개발을 위한 AWS 컨테이너 활용사례 및 주요 도구 알아보기 - 정영준, AWS 솔루션...
PDF
[AWS Dev Day] 이머징 테크 | AWS 서버리스를 이용하여 IoT 수준의 메세지 폭풍을 처리하는 방법 - 김민성 AWS 솔루션즈 ...
PDF
AWS Builders Online Series | AWS와 함께하는 클라우드 컴퓨팅 - 강철, AWS 어카운트 매니저
PDF
AWS CLOUD 2018- Amazon EC2  신규 인스턴스 및 기능 업데이트 (김민성 솔루션즈 아키텍트)
PPT
10월 웨비나 - AWS에서 Active Directory 구축 및 연동 옵션 살펴보기 (김용우 솔루션즈 아키텍트)
PPTX
Scalable web architecture and distributed systems
[AWSome Day온라인 컨퍼런스] 강의 2: 클라우드 시작하기 - 장기웅, AWS 테크니컬 트레이너
[2017 Windows on AWS] AWS 를 활용한 SQL Server 최적 활용 방안
Terraform을 이용한 Infrastructure as Code 실전 구성하기 :: 변정훈::AWS Summit Seoul 2018
고객 경험을 통한 AWS 클라우드 이전을 위한 지름길 - 김효정 (AWS 솔루션즈 아키텍트)
[Games on AWS 2019] AWS 입문자를 위한 초단기 레벨업 트랙 | AWS 레벨업 하기! : 스토리지 - 현륜식 AWS 솔루션...
10월 웨비나 - AWS 상에서 Microsoft SQL Server 운영의 모범 사례 살펴보기 (최정욱 솔루션즈 아키텍트)
슬기로운 “클라우드 저장소 이전” 생활 :: 윤석찬 (AWS테크에반젤리스트) :: Database Migration Session 3::C...
데이터베이스 운영, 서버리스로 걱정 끝! - 윤석찬, AWS 테크에반젤리스트 - AWS Builders Online Series
개발자들이 직접 선정한 re:Invent 2019 상위 12 신규 서비스 알아보기 - 윤석찬 (AWS 테크에반젤리스트)
Oracle DB를 AWS로 이관하는 방법들 - 서호석 클라우드 사업부/컨설팅팀 이사, 영우디지탈 :: AWS Summit Seoul 2021
AWS re:Invent 2018 콘테이너 신규 서비스 기능 살펴보기 - 윤석찬, AWS 테크에반젤리스트
Amazon ECS/ECR을 활용하여 마이크로서비스 구성하기 - 김기완 (AWS 솔루션즈아키텍트)
클라우드 환경으로 데이터베이스 이전하기 - 강민석, AWS SR. Database SA
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
[애플리케이션 현대화 및 개발] 현대적 애플리케이션 개발을 위한 AWS 컨테이너 활용사례 및 주요 도구 알아보기 - 정영준, AWS 솔루션...
[AWS Dev Day] 이머징 테크 | AWS 서버리스를 이용하여 IoT 수준의 메세지 폭풍을 처리하는 방법 - 김민성 AWS 솔루션즈 ...
AWS Builders Online Series | AWS와 함께하는 클라우드 컴퓨팅 - 강철, AWS 어카운트 매니저
AWS CLOUD 2018- Amazon EC2  신규 인스턴스 및 기능 업데이트 (김민성 솔루션즈 아키텍트)
10월 웨비나 - AWS에서 Active Directory 구축 및 연동 옵션 살펴보기 (김용우 솔루션즈 아키텍트)
Scalable web architecture and distributed systems
Ad

Similar to [AWS Migration Workshop] SQL Server Performance on AWS (20)

PPTX
AWS 6월 웨비나 | AWS에서 MS SQL 서버 운영하기 (김민성 솔루션즈아키텍트)
PDF
게임 서비스를 위한 AWS상의 고성능 SQL 데이터베이스 구성 (이정훈 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
PDF
윈도우 서버가 아닌 곳에서 SQL Server를 만나다! - 박주연 :: AWS Database Modernization Day 온라인
PDF
아마존 웹 서비스 상에서 MS SQL 100% 활용하기::김석원::AWS Summit Seoul 2018
PDF
넥슨 글로벌 플랫폼 구축 이야기 : DB Migration case study (임현수 플랫폼인프라실 Technical Manager, 넥...
PPTX
강의 4. 데이터베이스:: AWSome Day Online Conference
PDF
AWS 상에서 Microsoft 워크로드 구축 및 운영 - AWS Summit Seoul 2017
PDF
클라우드 시작하기 - 장기웅, AWS 테크니컬 트레이너 :: AWSome Day 온라인 컨퍼런스
PDF
더 빠른 게임시스템을 위하여 개선된 서비스들 - 김병수 솔루션즈 아키텍트, AWS :: AWS Summit Seoul 2019
PDF
강의 2: AWS 핵심 서비스:: AWSome Day Online Conference
PDF
[Games on AWS 2019] AWS 입문자를 위한 초단기 레벨업 트랙 | AWS 레벨업 하기! : 데이터베이스 - 박주연 AWS 솔...
PDF
AWS 클라우드 핵심 서비스로 클라우드 기반 아키텍처 빠르게 구성하기 - 문종민 솔루션즈 아키텍트, AWS :: AWS Summit Seo...
PDF
Amazon RDS 서비스 활용하기 - 신규 기능 중심으로 (윤석찬) :: AWS 월간 웨비나
PDF
천만사용자를 위한 AWS 클라우드 아키텍처 진화하기 – 문종민, AWS솔루션즈 아키텍트:: AWS Summit Online Korea 2020
PDF
Amazon EC2 고급 활용 기법 및 모범 사례::이진욱::AWS Summit Seoul 2018
PPTX
AWS 인프라/아키텍쳐 최적화를 통한 비용절감 - 최인영, AWS 솔루션 아키텍트 :: AWS Travel and Transportatio...
PDF
AWS Builders Online Series | EC2와 Lambda로 AWS 시작하기 - 조용진, AWS 솔루션즈 아키텍트
PDF
천만 사용자를 위한 AWS 클라우드 아키텍쳐 진화하기- AWS Summit Seoul 2017
PDF
나에게 맞는 AWS 데이터베이스 서비스 선택하기 :: 양승도 :: AWS Summit Seoul 2016
PDF
AWS Finance Symposium_천만 고객을 위한 AWS 클라우드 아키텍쳐 확장하기
AWS 6월 웨비나 | AWS에서 MS SQL 서버 운영하기 (김민성 솔루션즈아키텍트)
게임 서비스를 위한 AWS상의 고성능 SQL 데이터베이스 구성 (이정훈 솔루션즈 아키텍트, AWS) :: Gaming on AWS 2018
윈도우 서버가 아닌 곳에서 SQL Server를 만나다! - 박주연 :: AWS Database Modernization Day 온라인
아마존 웹 서비스 상에서 MS SQL 100% 활용하기::김석원::AWS Summit Seoul 2018
넥슨 글로벌 플랫폼 구축 이야기 : DB Migration case study (임현수 플랫폼인프라실 Technical Manager, 넥...
강의 4. 데이터베이스:: AWSome Day Online Conference
AWS 상에서 Microsoft 워크로드 구축 및 운영 - AWS Summit Seoul 2017
클라우드 시작하기 - 장기웅, AWS 테크니컬 트레이너 :: AWSome Day 온라인 컨퍼런스
더 빠른 게임시스템을 위하여 개선된 서비스들 - 김병수 솔루션즈 아키텍트, AWS :: AWS Summit Seoul 2019
강의 2: AWS 핵심 서비스:: AWSome Day Online Conference
[Games on AWS 2019] AWS 입문자를 위한 초단기 레벨업 트랙 | AWS 레벨업 하기! : 데이터베이스 - 박주연 AWS 솔...
AWS 클라우드 핵심 서비스로 클라우드 기반 아키텍처 빠르게 구성하기 - 문종민 솔루션즈 아키텍트, AWS :: AWS Summit Seo...
Amazon RDS 서비스 활용하기 - 신규 기능 중심으로 (윤석찬) :: AWS 월간 웨비나
천만사용자를 위한 AWS 클라우드 아키텍처 진화하기 – 문종민, AWS솔루션즈 아키텍트:: AWS Summit Online Korea 2020
Amazon EC2 고급 활용 기법 및 모범 사례::이진욱::AWS Summit Seoul 2018
AWS 인프라/아키텍쳐 최적화를 통한 비용절감 - 최인영, AWS 솔루션 아키텍트 :: AWS Travel and Transportatio...
AWS Builders Online Series | EC2와 Lambda로 AWS 시작하기 - 조용진, AWS 솔루션즈 아키텍트
천만 사용자를 위한 AWS 클라우드 아키텍쳐 진화하기- AWS Summit Seoul 2017
나에게 맞는 AWS 데이터베이스 서비스 선택하기 :: 양승도 :: AWS Summit Seoul 2016
AWS Finance Symposium_천만 고객을 위한 AWS 클라우드 아키텍쳐 확장하기
Ad

More from Amazon Web Services Korea (20)

PDF
[D3T1S01] Gen AI를 위한 Amazon Aurora 활용 사례 방법
PDF
[D3T1S06] Neptune Analytics with Vector Similarity Search
PDF
[D3T1S03] Amazon DynamoDB design puzzlers
PDF
[D3T1S04] Aurora PostgreSQL performance monitoring and troubleshooting by use...
PDF
[D3T1S07] AWS S3 - 클라우드 환경에서 데이터베이스 보호하기
PDF
[D3T1S05] Aurora 혼합 구성 아키텍처를 사용하여 예상치 못한 트래픽 급증 대응하기
PDF
[D3T1S02] Aurora Limitless Database Introduction
PDF
[D3T2S01] Amazon Aurora MySQL 메이저 버전 업그레이드 및 Amazon B/G Deployments 실습
PDF
[D3T2S03] Data&AI Roadshow 2024 - Amazon DocumentDB 실습
PDF
AWS Modern Infra with Storage Roadshow 2023 - Day 2
PDF
AWS Modern Infra with Storage Roadshow 2023 - Day 1
PDF
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
PDF
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
PDF
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
PDF
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
PDF
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
PDF
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
PDF
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
PDF
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
PDF
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...
[D3T1S01] Gen AI를 위한 Amazon Aurora 활용 사례 방법
[D3T1S06] Neptune Analytics with Vector Similarity Search
[D3T1S03] Amazon DynamoDB design puzzlers
[D3T1S04] Aurora PostgreSQL performance monitoring and troubleshooting by use...
[D3T1S07] AWS S3 - 클라우드 환경에서 데이터베이스 보호하기
[D3T1S05] Aurora 혼합 구성 아키텍처를 사용하여 예상치 못한 트래픽 급증 대응하기
[D3T1S02] Aurora Limitless Database Introduction
[D3T2S01] Amazon Aurora MySQL 메이저 버전 업그레이드 및 Amazon B/G Deployments 실습
[D3T2S03] Data&AI Roadshow 2024 - Amazon DocumentDB 실습
AWS Modern Infra with Storage Roadshow 2023 - Day 2
AWS Modern Infra with Storage Roadshow 2023 - Day 1
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...

[AWS Migration Workshop] SQL Server Performance on AWS

  • 1. SQL Server Performance on AWS 강민석(Kang Minseok) Sr. Database Solutions Architect
  • 2. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 목차 • Microsoft on AWS • SQL Server의 고가용성 기능 • SQL Server on AWS 성능
  • 3. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 90+ 40+ 795 Windows Deep Learning AMI Hyper-V support in SMS Application-consistent Snapshots through VSS WS 2008 & SQL Server 2008 Visual Studio Toolkit Microsoft SCOM plug-in release AWS Directory Service EC2 Dedicated Hosts (BYOL) Microsoft SharePoint 2016 (Marketplace) Windows Server 2008 R2 SQL Server 2008 R2 Windows Server 2003 SQL Server 2005 .NET SDK Microsoft SCVMM Plug-in Windows Server 2012 SQL Server 2012 AWS Tools for Windows PowerShell Amazon RDS adds SQL Server EC2 Run Command EC2 Systems Manager Windows Server & SQL Server 2016 EC2 Dedicated Instances (BYOL) .NET on Lambda & Codebuild SAP instance on AWS 2012 Trusted Advisor checks for Windows SQL Server 2017 X-Ray .NET SDK CustomerAdoption Windows for Lightsail .NET Core & Powershell on AL2/Ubuntu 2008 Today .NET Core 2.0 Support with Lambda & X-Ray EC2 Windows on Bare Metal/Hyper-V AMI SQL 2017 AMI AL2/Ubuntu.NET Developer Hub 인스턴스 타입, 22 인스턴스 패밀리 개의 Windows 워크로드를 위한 AMI Windows ISV 가 마켓플레이스에 존재 Microsoft on AWS 기술 혁신
  • 4. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Web Services 57.7% Microsoft Azure 30.9% Others 11.4% Worldwide Windows Public Cloud IaaS Instances by Cloud Provider 2017 클라우드 환경에서 Windows 서비스 IDC, Windows Server Operating Environment Market Update, Doc # US44217118, Aug 2018
  • 5. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 가장 앞선 신뢰성을 제공 지난 365일간 2위 사업자 대비 16 배 적은 다운 타임 Source: Gartner CloudHarmony (7/10/2018) July 2017-July 2018 #downtime minutes for compute and storage (all regions) 2위 사업자
  • 6. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server 고가용성 구성 • 복제(Replication) • 로그전달(Log Shipping) • 미러링(Mirroring) • 클러스터링(Windows Server Failover Cluster(WSFC) ) • SQL Server AlwaysOn
  • 7. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server 고가용성 구성 - 복제 • 복제(Replication) • Publisher: 게시자(원본 DB) • Distributor: 배포자(배포DB ) • Subscription: 구독자(복제 DB)
  • 8. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server 고가용성 구성 – Log shipping
  • 9. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server 고가용성 구성 - Mirroring  동기식(Synchronous) 데이터 복제 – 자동 Failover ( Witness 필요)  동기식(Synchronous) 데이터 복제 – 수동 Failover  비동기식(Asynchronous) 데이터 복제 – 수동 Failover, 성능 Primary Server Secondary Server Witness Instance Mirror DB Mirror DB
  • 10. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server 고가용성 구성 - 클러스터링 • Windows Server Failover cluster • Active Node • Passive Node • Virtual IP for Cluster and Cluster Name • Virtual IP for SQL Server and Virtual Name • Shared Disk • Quorum • Public Network • Heartbeat Network
  • 11. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server 고가용성 구성 - AlwaysOn • Shared Disk가 필요없음 • SQL Server가 클러스터 리소스로 등록 되지 않음 • 클러스터 리소스로 AlwaysOn listener 가 등록됨
  • 12. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Demo – SQL Sever AlwaysOn Failover 12 Failover time : 20 Secs AlwaysOn Connection Failover Time
  • 13. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server 고가용성 구성 비교
  • 14. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server on AWS 성능 • Performance of SQL Server on AWS • Network • Storage • SQL Server on EC2 / RDS • SQL Server on AWS - Architecture
  • 15. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 성능에 관련된 요소들 Compute Capabilities vCPUs Memory Capabilities GB of RAM Network Performance MB/s (Throughput) Storage Performance I/O Throughput
  • 16. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Enhanced Networking Interface: Intel VF 과 ENA • [Intel VF] Intel ixgbevf 드라이버 사용 • EC2에서는 Intel ixgbevf 드라이버를 사용하는 Intel 82599 VF 인터페이스를 통해 향상된 네트워킹 기능을 제공 • https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/WindowsGuide/sriov-networking.html • [ENA] ENA(Elastic Network Adapter) • RSS (Receive Side Scaling ) • https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/WindowsGuide/enhanced-networking-ena.html • Throughput • Intel VF: 최대 10Gbps • ENA: 최대 25Gbps
  • 17. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Network Throughput 테스트 결과 10분 이상 ≃ 1194 Mbps ≃ 868 Mbps c5.xlarge c4.xlarge ≃ 9.41 Gbps Model vCPU* Network Performance (Gbps) c5.xlarge 4 Up to 10 c4.xlarge 4 High c5d.18xlarge 72 25
  • 18. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ENA 설정 튜닝- RSS Group 변경 Set-NetAdapterRss -name (Get-NetAdapter | Where-Object {$_.InterfaceDescription -like '*Elastic*'}).Name - Baseprocessorgroup 0 -BaseProcessorNumber 2 ENA Network 병목: vCPU(0)가 과도하게 사용됨 0 2 4 6 8 1 3 5 7 9 Network Stack( RSS ), 8 vCPUs
  • 19. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server를 위한 Storage - EBS Max Throughput per Volume: 1000 MB/s Max IOPS per Volume: 64,000 Volume Size: 4 GB to 16 TB Ideal for critical applications and databases with sustained IOPS Provisioned IOPS SSD General Purpose SSD Max Throughput per Volume: 250 MB/s Max IOPS per Volume: 16,000 Volume Size: 1 GB to 16 TB Great for boot volumes, low latency applications and bursty databases Burst: 3,000 IOPS (for volumes up to 1 TB) SSD(Solid-State Drive) 하드 디스크 드라이브(HDD) 볼륨 유형 범용 SSD(gp2)* 프로비저닝된 IOPS SSD (io1) 처리량에 최적화된 HDD (st1) Cold HDD (sc1) API 이름 gp2 io1 st1 sc1 볼륨 크기 1GiB - 16TiB 4GiB - 16TiB 500GiB - 16TiB 500GiB - 16TiB 최대 IOPS**/볼륨 16,000*** 64,000**** 500 250 최대 처리량/볼륨 250MiB/s*** 1,000MiB/s† 500MiB/s 250MiB/s 최대 IOPS/인스턴스 80,000 80,000 80,000 80,000 최대 처리량/인스턴스1,750MiB/s 1,750MiB/s 1,750MiB/s 1,750MiB/s
  • 20. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server를 위한 Storage - NVMe • Amazon EC2 인스턴스 스토어 - NVMe (Non-Volatile Memory express) 타입의 SSD를 장착하여 낮은 지연속도와 높은 IOPS - 데이터 유지: 물리적 호스트 재시작, EC2 재부팅 - 데이터 삭제: 인스턴스가 중지/종료, 또는 호스트 하드웨어 이슈로 호스트가 이동되는 경우 - 지원 인스턴스: C5d, I3, F1, M5ad, M5d, p3dn.24xlarge, R5ad, R5d 및 z1d 인스턴스 타입 vCPU (CPU clock) Mem(GiB) 인스턴스 스토어 크기 c5d 2 ~ 72 (3.0 ~ 3.5 GHz) 4 ~ 144 50 ~ 900 GiB m5d 2 ~ 96 (2.5 GHz) 8 ~ 384 75 GiB ~ 3.6 TiB r5d 2 ~ 96 (~3.1 GHz) 16 ~ 768 75 GiB ~ 3.6 TiB z1d 2 ~ 48 (~4.0 GHz) 16 ~ 384 75 GiB ~ 1.8 TiB i3 2 ~ 72 (2.3 GHz) 15.25 ~ 512 475 GiB ~ 15.2 TiB i3en 2 ~ 96 (3.1 GHz) 16 ~ 768 1.25 TiB ~ 60 TiB https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/instance-types.html#ec2-nitro-instances
  • 21. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS 관리형 서비스 Amazon RDS • RDS SQL Server 직접 관리 Amazon EC2  BYOL Windows & SQL  EC2 Windows + BYOL SQL  EC2 Windows + SQL AWS 에서 SQL Server 선택 기준
  • 22. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SQL Server on AWS 운영 책임 Amazon RDS for SQL Server Power, HVAC, net Rack and stack Server maintenance OS patches DB software patches Database backups High availability DB software installs OS installation Scaling App optimization Power, HVAC, net Rack and stack Server maintenance OS patches DB software patches Database backups High availability DB software installs OS installation Scaling App optimization SQL Server on Amazon EC2 Customer managed Multiple optionsAWS managed Legend • RDS 선택 기준 • DBA 가 없다 • 관리할 서버가 많다.
  • 23. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 아키텍쳐 - SQL Server AlwaysOn on AWS
  • 24. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Demo – SQL Server Performance
  • 25. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Optimize vCPU 성능 비교 25 I3.8xlarge with NVME- enabled HyperThreads I3.8xlarge with NVME- disabed HyperThreads • Blue: Batch Request/sec (Scale-0.001) • Red: % Process time
  • 26. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Architecture Sample – 비용 효율성 위주 • SQL 서버의 스탠다드 라이선스 사용(SE) • 2대 인스턴스 구성 • 복수 AZ 구성 권고 • 인스턴스간 Synchronous 복제 (EBS의 간헐적인 Latency Spike 영향 최소화) • 인스턴스 스토어에 데이터 파일 및 로그 파일 구성 VPC Availability zone 1 Availability zone 2 Private subnet Private subnet EC2 ReplicaEC2 Active Public subnet Public subnet 게임 서버 Synchronous
  • 27. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Architecture Sample – 고성능 위주 • SQL 서버 엔터프라이즈 라이선스 사용(EE) • 3대 인스턴스 사용 • 동일 AZ에 Cluster Placement Group으로 2대 인스턴스 배치 • 동일 AZ 인스턴스간 Synchronous 복제 • 다른 AZ에 추가 1대 인스턴스 배치 • 다른 AZ 인스턴스간 Asynchronous 복제 • 복제 인스턴스에서 데이터 및 로그 백업 VPC Availability zone 1 Availability zone 2 Private subnet Private subnet EC2 ReplicaEC2 Active Public subnet Public subnet 게임 서버 Sync EC2 Replica Async Cluster Placement Group
  • 28. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Architecture Sample – 데이터 안정성 위주 • SQL 서버 엔터프라이즈 라이선스 사용(EE) • 3대 이상 인스턴스 사용 • 데이터는 EBS 볼륨, 로그는 인스턴스 스토어에 배치 • 다수의 AZ에 인스턴스 배치 • 모든 인스턴스간 Synchronous 복제 • 복제 인스턴스에서 데이터 및 로그 백업 • 동일 AZ에 인스턴스 배치할 경우, Spread Placement Group 사용 VPC Availability zone1 Availability zone2 Private subnet Private subnet EC2 ReplicaEC2 Active Public subnet Public subnet 게임 서버 Sync Availability zone3 Private subnet EC2 Replica Public subnet syncEBS EBS EBS
  • 29. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Compliance Certifications PCIDSS, HIPPA, FISMA, ISO, K-ISMS, … 66가격 인하 단행 회수 Since 2006 가장 축적된 경험 Windows 워크로드의 운영 10years 세계적 규모와 고가용성 18 개 리젼 55Availability Zones 시큐리티와 컴플라이언스 60+ 고객만족과 기술혁신 최고의 성능을 내는 플랫폼 TCO 절감 80,000지속적 IOPS / Instance 100서비스 오퍼링 Over Windows 및 SQL Server 워크로드를 위한 최적의 클라우드
  • 30. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Migration 워크샵에 참석해주셔서 대단히 감사합니다. 저희가 준비한 내용, 어떻게 보셨나요? 더 나은 세미나를 위하여 설문을 꼭 작성해 주시기 바랍니다. aws-korea-marketing@amazon.com twitter.com/AWSKorea facebook.com/amazonwebservices.ko youtube.com/user/AWSKorea slideshare.net/awskorea twitch.tv/aws