aws re:invent re:cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

68
December 8, 2014 | Seoul, Korea AWS 비용최적화 아키텍처 이종남, AWS 프로페셔널 서비스 컨설턴트 re: Cap

Upload: amazon-web-services-korea

Post on 11-Jul-2015

408 views

Category:

Technology


3 download

TRANSCRIPT

Page 1: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

December 8, 2014 | Seoul, Korea

AWS 비용최적화����������� ������������������  아키텍처����������� ������������������  

이종남, AWS����������� ������������������  프로페셔널����������� ������������������  서비스����������� ������������������  컨설턴트����������� ������������������  

re:Cap

Page 2: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 3: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

Whether you're a startup getting to profitability or an enterprise optimizing spend, it pays to run cost-efficient architectures on AWS. Building on last year's popular foundation of how to reduce waste and fine-tune your AWS spending, this session reviews a wide range of cost planning, monitoring, and optimization strategies, featuring real-world experience from AWS customer Adobe Systems. With the massive growth of subscribers to Adobe's Creative Cloud, Adobe's footprint in AWS continues to expand. We will discuss the techniques used to optimize and manage costs, while maximizing performance and improving resiliency.

When traditional application and operating practices are used in cloud deployments, immediate benefits occur in speed of deployment, automation, and transparency of costs. The next step is a re-architecture of the application to be cloud-native, and significant operating cost reductions can help justify this development work. Cloud-native applications are dynamic and use ephemeral resources that customers are only charged for when the resources are in use.

Page 4: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

With AWS, you can reduce capital costs, lower your overall bill, and match your expense to your usage. This session describes how to calculate the total cost of ownership (TCO) for deploying solutions on AWS vs. on-premises or at a colocation facility, as well as how to address common pitfalls in building a TCO analysis. The session presents and models customer examples.

This session is a deep dive into techniques used by successful customers who optimized their use of AWS. Learn tricks and hear tips you can implement right away to reduce waste, choose the most efficient instance, and fine-tune your spending; often with improved performance and a better end-customer experience. We showcase innovative approaches and demonstrate easily applicable methods to save you time and money with Amazon EC2, Amazon S3, and a host of other services.

Page 5: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

In this session, you learn how you can leverage AWS services together with third-party storage appliances and gateways to automate your backup and recovery processes so that they are not only less complex and lightweight, but also easy to manage and maintain. We demonstrate how to manage data flow from on-premises systems to the cloud and how to leverage storage gateways. You also learn best practices for quick implementation, reducing TCO, and automating lifecycle management.

In the event of a disaster, you need to be able to recover lost data quickly to ensure business continuity. For critical applications, keeping your time to recover and data loss to a minimum as well as optimizing your overall capital expense can be challenging. This session presents AWS features and services along with Disaster Recovery architectures that you can leverage when building highly available and disaster resilient applications. We will provide recommendations on how to improve your Disaster Recovery plan and discuss example scenarios showing how to recover from a disaster.

Page 6: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 7: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

November 13, 2014 | Las Vegas, NV

Mimi Jiang, Adobe Constantin Gonzalez, AWS

Page 8: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 9: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

•  Speed, agility, and innovation •  Focus on your business •  Go global in minutes

Page 10: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 11: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 12: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

에코시스템 글로벌 확산 신규 기능 신규 서비스

AWS 사용량 증가

인프라 추가증설

인프라 비용 절감

가격 인하

고객 증가 인프라 혁신

2006년 이후 47회 가격인하 규모의 경제

Page 13: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 14: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

aws.amazon.com/premiumsupport/trustedadvisor/

비즈니스, 엔터프라이즈 서포트 고객에게 33 가지 이상 체크리스트 제공 (네 가지 체크리스트는 모든 고객이 이용가능) http://aws.amazon.com/blogs/aws/trusted-advisor-console-basic/

Page 15: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 16: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 17: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

Cloud Hosted

Cloud Optimized

Cloud Native

Page 18: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

Cloud Enabled 1.0 • Lift and shift • 노력����������� ������������������  소요도����������� ������������������  하( )����������� ������������������  • 기술����������� ������������������  난이도����������� ������������������  하( )����������� ������������������  • 클라우드����������� ������������������  이점은����������� ������������������  아주����������� ������������������  조금����������� ������������������  획득����������� ������������������  

• 자동화로����������� ������������������  어느����������� ������������������  정도까지는����������� ������������������  효율화����������� ������������������  

Page 19: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

Cloud Enabled 2.0 • 애플리케이션����������� ������������������  현대화����������� ������������������  • 노력����������� ������������������  소요도����������� ������������������  상( ����������� ������������������  

• 기술����������� ������������������  난이도����������� ������������������  상(• 클라우드����������� ������������������  이점은����������� ������������������  상당량����������� ������������������  획득����������� ������������������  

Page 20: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

Cloud Enabled 3.0 • 애플리케이션을����������� ������������������  재개발����������� ������������������  완료하기까지����������� ������������������  힘����������� ������������������  많이����������� ������������������  듦����������� ������������������  

• 노력����������� ������������������  소요도����������� ������������������  상( ����������� ������������������  

• 기술����������� ������������������  난이도����������� ������������������  상(• 클라우드����������� ������������������  이점����������� ������������������  극대화����������� ������������������  

Page 21: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

•  Lift and shift •  노력����������� ������������������  소요도����������� ������������������  하����������� ������������������  •  기술����������� ������������������  난이도����������� ������������������  하����������� ������������������  •  클라우드����������� ������������������  이점은����������� ������������������  아주����������� ������������������  조금����������� ������������������  획득����������� ������������������  

•  자동화로����������� ������������������  어느����������� ������������������  정도까지는����������� ������������������  효율화����������� ������������������  

Cloud Hosted

Cloud Optimized

Cloud Native

•  애플리케이션����������� ������������������  현대화����������� ������������������  •  노력����������� ������������������  소요도����������� ������������������  상����������� ������������������  •  기술����������� ������������������  난이도����������� ������������������  상����������� ������������������  •  클라우드����������� ������������������  이점은����������� ������������������  상당량����������� ������������������  획득����������� ������������������  

•  애플리케이션����������� ������������������  재개발����������� ������������������  완료하기까지����������� ������������������  힘����������� ������������������  많이����������� ������������������  듦����������� ������������������  

•  노력����������� ������������������  소요도����������� ������������������  상����������� ������������������  •  기술����������� ������������������  난이도����������� ������������������  상����������� ������������������  •  클라우드����������� ������������������  이점����������� ������������������  극대화����������� ������������������  

Cloud Enabled 1.0 Cloud Enabled 2.0 Cloud Enabled 3.0

Page 22: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

Cloud  scorecard As of m/d/y

Cloud enablement

Clo

ud 2

.0

Architecture reviewed and approved Multitenant (common apps server, separate or single DB) Scalability (will scale wide for all capabilities with no practical limitations) High availability (no single point of failure) Zero footprint client (HTML interface for all functionality and customer-facing utilities) Supports automation of tenant lifecycle and other processes Meets Infor cloud deployment, patching, and upgrade requirements Supports health check monitors No critical security code scanner findings and penetration test performed successfully Supports customization through UI-driven configuration (no source code changes) Required integration are using HTTPS/SFTP No dependency on server access to local devices (example: printers)

Product support organization ready to provide cloud support Supports Auto Scaling

Clo

ud 3

.0 Minimized/no third-party royalty costs

Supports scalable open-source database technologies

Application is stateless (session information stored externally)

Supports a single-version deployment (upgrades are incremental, rapid, scalable)

Cloud 2.0 score / 14

Cloud 3.0 score 0 / 4

Page 23: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 24: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 25: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 26: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

월요일 금요일 휴가시즌 종료 35% 절감

Page 27: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 28: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 29: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 30: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

"LaunchConfig": {

"Type" : "AWS::AutoScaling::LaunchConfiguration",

"Metadata" : {

"AWS::CloudFormation::Init" : {

"config" : {

… packages, sources, files, services …

}

}

},

"Properties": {

"ImageId" : "ami-149f7863",

"InstanceType" : "m1.small",

"SecurityGroups" : [ {"Ref" : "WebServerSecurityGroup"} ],

"KeyName" : "MySSHKey",

"UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [

"#!/bin/bash -v\n",

… your user data script …

]]}}

}

}

Page 31: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

"WebServerGroup" : {

"Type" : "AWS::AutoScaling::AutoScalingGroup",

"Properties" : {

"AvailabilityZones" : [

"us-east-1a", "us-east-1b", "us-east-1c",

],

"LaunchConfigurationName" : { "Ref" : "LaunchConfig" },

"MinSize" : “3",

"MaxSize" : “6",

"DesiredCapacity" : “3",

"LoadBalancerNames" : [ { "Ref" : "ElasticLoadBalancer" } ]

}

}

Page 32: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 33: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

API Gateway

API Management Services

API Console

{ adobe.io }: Adobe’s API platform

3rd party apps

Adobe apps

{adobe.io}

API services

Page 34: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

{ adobe.io }: AWS deployment architecture API Consumers

Availability Zone 1

Private Subnet

Availability Zone 2

Public Subnet

Private Subnet

Auto Scaling Group

Auto Scaling Group

Region (US East, EU, AP, US West)

Amazon Route

53

Public Subnet

Page 35: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

© 2014 Adobe Systems Incorporated. All Rights Reserved. Adobe Confidential.

Scaling mechanisms Event-based scaling

•  Overprovision for sharp traffic increase ** Prewarm your load balancer

•  Observe traffic pattern & scale down Schedule-based scaling

•  Match scaling with workload at different times •  Scale down dev & test environments

Architect

Page 36: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 37: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 38: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

•  No Upfront

•  Partial Upfront

•  All Upfront

https://aws.amazon.com/blogs/aws/simplified-reserved-instances/

Page 39: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 40: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 41: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 42: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

On-Demand: $0.24

$0.028 (11.7%) $0.026 (10,8%)

$3.28 (1367%)

Page 43: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 44: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 45: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

"LaunchConfig": { "Type" : "AWS::AutoScaling::LaunchConfiguration", "Metadata" : { "AWS::CloudFormation::Init" : { "config" : { … packages, sources, files, services … } } }, "SpotPrice": "0.59", "Properties": { "ImageId" : "ami-149f7863", "InstanceType" : "m1.small", "SecurityGroups" : [ {"Ref" : "WebServerSecurityGroup"} ], "KeyName" : "MySSHKey", "UserData" : { "Fn::Base64" : { "Fn::Join" : ["", [ "#!/bin/bash -v\n", … your user data script … ]]}} } }

Page 46: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 47: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

20%

64%

Page 48: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 49: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 50: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 51: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

ARC313: So You Think You Can Architect?

Page 52: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 53: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

캐싱/최적화: 80%����������� ������������������  절감

Cache flush

Dynamic DynamoDB:

20% 절감

사용량����������� ������������������  증가����������� ������������������  + 신규����������� ������������������  기능����������� ������������������  도입

Page 54: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 55: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 56: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 57: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 58: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 59: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

간단하고, 더 안정적이고, 비용 낮추고

Page 60: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 61: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 62: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 63: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 64: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 65: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 66: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 67: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남
Page 68: AWS re:Invent re:Cap - 비용 최적화: 모범사례와 아키텍처 설계 기초편 - 이종남

re:Cap