cloud design pattern

48
AWS Cloud Design Pattern 박 상 욱 [email protected] 2014/03/08

Upload: aws-korea-ug

Post on 23-Jun-2015

1.330 views

Category:

Technology


5 download

DESCRIPTION

AWS 한국 사용자모임 세미나 박상욱

TRANSCRIPT

Page 1: Cloud Design Pattern

AWS Cloud Design Pattern

박 상 욱 [email protected]

2014/03/08

Page 2: Cloud Design Pattern

CDP가 만들어진 배경

Page 3: Cloud Design Pattern

Infrastructure가 Web Services로…

Page 4: Cloud Design Pattern

Remote Console

Infrastructure가 Web Services로…

Amazon EC2

AWS DataCenter

AMI

Page 5: Cloud Design Pattern

Flexible Infrastructure

3000대 서버 이용

주말은 300대

서버 이용

금요일

4/24/2009

수요일

4/22/2009

일요일

4/26/2009

화요일

4/26/2009

E

C

2

Page 6: Cloud Design Pattern

Global Infrastructure

Region

Tokyo

Sydney

Singapore

Oregon

N. California

Sao Paulo

Ireland

N. Virginia

GovCloud

=AWS 서비스를 이용할 수 있는

데이터센터 군의 지점

Page 7: Cloud Design Pattern

Availability Zone (AZ)

=물리적으로 떨어진 데이터센터 군

Global Infrastructure

Page 8: Cloud Design Pattern

AWS API

Page 9: Cloud Design Pattern

AWS Services

고객의 애플리케이션

AWS의 글로벌 인프라

라이브러리 & SDKs

Java, PHP, .NET, Python, Ruby

Web 인터페이스

Management Console

IDE 플러그인

Eclipse Visual Studio

배포 & 자동화 AWS Elastic Beanstalk AWS CloudFormation

AWS OpsWorks AWS Data Pipeline

인증 & 청구 AWS IAM

Identity Federation Consolidated Billing

모니터링

Amazon CloudWatch Amazon CloudTrail

스케일링

Auto Scale

네트워크 & 라우팅 Amazon VPC

Amazon Elastic LB Amazon Route 53

AWS Direct Connect

콘텐츠 배포

Amazon CloudFront

메세지 Amazon SNS Amazon SQS Amazon SES

분산처리 Amazon Elastic

MapReduce Amazon Kinesis Amazon SWF

검색

Amazon CloudSearch

컴퓨팅 처리

Amazon EC2

스토리지 Amazon S3

Amazon Glacier Amazon EBS

Amazon Storage Gateway

데이터베이스 Amazon RDS

Amazon DynamoDB Amazon Elasticache Amazon Redshift

Page 10: Cloud Design Pattern

AWS Services

Page 11: Cloud Design Pattern

AWS 서비스들을 잘 조합한다면…

시스템 부하에 따른 작업 불필요

안젂한 시스템 구축 (보안)

저비용으로 해외서비스 구현

장애에 강한 시스템 구축

Page 12: Cloud Design Pattern

이상적인 AWS 클라우드

Page 13: Cloud Design Pattern

AWS에 대해 자주 듣는 질문들…

서비스가 많아 뭐가 뭔지 모르겠다.

어떻게 조합해야 하는지 모르겠다.

사용 방법이 맞는지 모르겠다.

Page 14: Cloud Design Pattern

현실은…

Page 15: Cloud Design Pattern

무엇이 필요할까?

AWS 클라우드를 좀 더 쉽게 젂달

AWS의 기존 노하우를 공유

AWS를 누구나 사용할 수 있도록 정리

Page 16: Cloud Design Pattern

고민…

2011년 12월 시애틀 WANN이라는 이자카야에서 시작

NoT 3인이 40개 이상의 패턴을 그 자리에서 노트에 메모

Page 17: Cloud Design Pattern

Ninja Of Three (NoT)

타마가와 켄

Amazon Data Services Japan, Sr. Manager, Solution Architect

카타야마 아키오

Amazon Data Services Japan, Solution Architect

스즈키 히로야스

iret CTO – cloudpack (AWS Premier Consulting Partner)

Page 18: Cloud Design Pattern

클라우드 디자인 패턴 (CDP)

Page 19: Cloud Design Pattern

AWS 클라우드 디자인 패턴이란? Cloud Design Pattern (CDP)

AWS 클라우드를 사용하여 시스템 아키텍처를 설계 할 때 발생할 수 있는 젂형적인 문제에 대한 해결방안, 설계방법을 알기 쉽게 분류하여 노하우로 이용할 수 있도록 정리한 것이다.

Page 20: Cloud Design Pattern

클라우드 디자인 패턴 정리 방법

해결하고 싶은 문제

클라우드에서의 해결방법과 패턴설명

구현방법

구성도

장점

주의점

Page 21: Cloud Design Pattern

CDP 48

기본 패턴 Snapshot Stamp Scale Up Ondemand Disk

정적 콘텐츠 처리 패턴 Web Storage Direct Hosting Private Distribution Cache Distribution Rename Distribution Private Cache Distribution

일괄 처리 패턴 Queuing Chain Priority Queue Job Observer Scheduled Autoscaling

가용성 향상 패턴 Multi-Server Multi-Datacenter Floating IP Deep Health Check

데이터 업로드 패턴 Write Proxy Storage Index Direct Object Upload

운용 보수 패턴 Bootstrap Cloud DI Stack Deployment Server Swapping Monitoring Integration Web Storage Archive Weighted Transition

동적 콘텐츠 처리 패턴 Scale Out Clone Server NFS Sharing NFS Replica State Sharing URL Rewriting Rewrite Proxy Cache Proxy Scheduled Scale Out

관계 데이터베이스 패턴 DB Replication Read Replica Inmemory DB Cache Sharding Write

네트워크 패턴 OnDemand NAT Backnet Functional Firewall Operational Firewall Multi Load Balancer WAF Proxy CloudHub

Page 22: Cloud Design Pattern

CDP 48

Page 23: Cloud Design Pattern

CDP 48

Page 24: Cloud Design Pattern

CDP 48

Operational Firewall 패턴

Page 25: Cloud Design Pattern

CDP 48

Clone Server 패턴

Page 26: Cloud Design Pattern

CDP Wiki

http://aws.clouddesignpattern.org/

Page 27: Cloud Design Pattern

CDP Facebook

www.facebook.com/awscdp

Page 28: Cloud Design Pattern

아마존 웹 서비스 클라우드 디자인 패턴 설계 가이드

Page 29: Cloud Design Pattern

CDP 실젂편

이미지 동영상 제공 사이트 (Movable Type on AWS) 많은 유저에게 이미지 동영상 제공하고 싶을 때

전자상거래 사이트 (EC-CUBE on AWS) 가용성이 높은 사이트를 욲용하고 싶을 때

이벤트 사이트 (Wordpress on AWS) 단발적 사용자 증가에도 문제없이 사이트를 욲용하고 싶을 때

Page 30: Cloud Design Pattern

아마존 웹 서비스 클라우드 디자인 패턴 구축 가이드

Page 31: Cloud Design Pattern

클라우드 설계 원칙

최대한 서비스를 이용

생각보다 행동으로 (테스트)

작은 규모에서 시작하여 스케일 아웃

변화를 젂 계층에서 처리

고장을 위한 설계 (Design For Failure)

구축 초기 뿐만 아닌 지속적인 개선

Page 32: Cloud Design Pattern

CDP 사용 설명서

EC-CUBE on AWS

Page 33: Cloud Design Pattern

CDP 사용 설명서

초기 구성

Page 34: Cloud Design Pattern

CDP 사용 설명서

현재 사용 중인 소프트웨어 업그레이드

1. AMI로 테스트 서버 구성

2. 테스트 서버에서 소프트웨어 업그레이드

3. 업그레이드에 따른 동작 테스트

4. Floating IP 패턴을 이용하여 테스트 환경과 서비스 환경을 교체

Page 35: Cloud Design Pattern

CDP 사용 설명서

Floating IP 패턴 적용

Page 36: Cloud Design Pattern

CDP 사용 설명서

서버에 장애 발생 시 빠른 복구

1. 미리 생성해 둔 AMI로 인스턴스 생성

2. 서비스 환경에서 사용했던 디스크를 할당

Page 37: Cloud Design Pattern

CDP 사용 설명서

Server Swapping 패턴 적용

Page 38: Cloud Design Pattern

CDP 사용 설명서

다욲타임 없는 서비스 구축

1. Multi-Server 패턴을 적용

2. Web서버 이중화 구성 (ELB사용)

3. DB서버를 별도로 분리 (RDS사용)

Page 39: Cloud Design Pattern

CDP 사용 설명서

Multi-Server 패턴 적용

Page 40: Cloud Design Pattern

CDP 사용 설명서

DB 이중화

1. DB Replication 패턴을 사용

2. Multi-AZ에 Slave DB 구성

Page 41: Cloud Design Pattern

CDP 사용 설명서

DB Replication 패턴 적용

Page 42: Cloud Design Pattern

CDP 사용 설명서

데이터 센터 레벨의 장애 대비

1. Multi-Datacenter 패턴을 적용

2. 젂 계층을 이중화

Page 43: Cloud Design Pattern

CDP 사용 설명서

Multi-Datacenter 패턴 적용

Page 44: Cloud Design Pattern

CDP 사용 설명서

장애 대응 장애 대비

가용성

최적화

Server Swapping Multi-Server

DB Replication Multi-Datacenter

Page 45: Cloud Design Pattern

CDP 2.0

Page 46: Cloud Design Pattern

CDP 2.0

IP Pooling

Sorry Page

Permanent Redirect

Latency-based Routing

Latency Based Origin

Log Aggregation

Self Registration

Fanout

Cross-Region Replication

High Availability NAT

Routing-Based HA

RDP Proxy

OnDemand Bastion

OnDemand Firewall

Hybrid Backup and Recovery

Page 47: Cloud Design Pattern

감사합니다.

Page 48: Cloud Design Pattern

QUIZ

1.CDP는 총 몇 개?

2.클라우드 설계 원칙?