More Related Content
Similar to 클라우드에서 구축하기 - 정도현, AWS 테크니컬 트레이너 :: AWSome Day 온라인 컨퍼런스 (20)
More from Amazon Web Services Korea (20)
클라우드에서 구축하기 - 정도현, AWS 테크니컬 트레이너 :: AWSome Day 온라인 컨퍼런스
- 1. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
강의 3:
클라우드 구축
정도현
테크니컬 트레이너
AWS
- 2. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
단순 서버 및 스토리지 그 이상
- 3. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
마이그레이션 및 혁신
프로젝트
기초
클라우드 네이티브 기술
부채
폐기
혁신
시간
가치
- 4. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
초기 프로젝트의 개선
EC2
웹 애플리케이션
인스턴스 스토어
(휘발성)
S3 버킷
(정적 콘텐츠)
EBS 볼륨
(데이터베이스 파일)
AWS 클라우드
인스턴스 문제:
• 성능
• 확장성
• 사용률
데이터베이스 문제:
• 인프라 관리
• 패치
• 확장성
인터넷
게이트웨이
관리 문제:
• 모니터링
• 오류 발생에 대비
• 배포
- 5. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS 리소스 모니터링
- 6. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudWatch란?
모니터:
AWS 리소스
AWS에서 실행 중인 애플리케이션
수집 및 추적:
표준 지표
사용자 지정 지표
경보:
알림 전송
고객이 정의한 규칙대로
자동 변경
- 7. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CloudWatch 작동 방법
CloudWatch
제공되는 통계
통계 소비자AWS Management
Console
CloudWatch 지표
CPUUtilization
StatusCheckFailed
CloudWatch 경보
지원되는
AWS 리소스
사용자 지정
애플리케이션별
지표
PageViewCount
SNS
이메일 알림
Amazon EC2
Auto Scaling
- 8. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CloudWatch 이점
단일 플랫폼에서 모든 지표에 액세스
애플리케이션, 인프라,
서비스 전반에 대한 가시성 유지
평균 해결 시간(MTTR) 감소
및 총 소유 비용(TCO) 향상
애플리케이션 및 운영
리소스의 최적화를 위한 통찰력 제공
종량 과금제
- 9. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
효율적인 수요 관리
- 10. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
규모 조정이 중요한 이유
일 월 화 수 목 금 토
수요 용량
- 11. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
규모 조정이 중요한 이유
수요 용량
미사용
용량
일 월 화 수 목 금 토
- 12. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
규모 조정이 중요한 이유
수요 용량
초과
용량
일 월 화 수 목 금 토
- 13. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
규모 조정이 중요한 이유
Amazon EC2 Auto Scaling이
필요에 따라 용량 조정
• 급증 시에 확장
• 피크 이외의 기간에 축소
• 비정상 인스턴스 교체
• 사용한 만큼만 비용을 지불
수요 용량
일 월 화 수 목 금 토
- 14. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Auto Scaling의 동적 조정
애플리케이션 로드 지표 선택
조건부 또는 일정 예약으로 설정
CloudWatch로 사용(선택 사항)
인스턴스
인스턴스
인스턴스인스턴스
인스턴스 인스턴스
애플리케이션의 수요 곡선에 따름
최대 10
최소 2
필요 6
Amazon EC2 Auto Scaling 그룹
- 15. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
높은 수요
Amazon EC2 Auto Scaling의 동적 조정
애플리케이션 로드 지표 선택
조건부 또는 일정 예약으로 설정
CloudWatch로 사용(선택 사항)
인스턴스
인스턴스
인스턴스인스턴스
인스턴스 인스턴스
인스턴스 인스턴스
인스턴스 인스턴스
최대 10
최소 2
필요 6
최대 10
최소 2
필요 10
애플리케이션의 수요 곡선에 따름
Amazon EC2 Auto Scaling 그룹
- 16. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
최대 10
최소 2
필요 10
낮은 수요
Amazon EC2 Auto Scaling의 동적 조정
애플리케이션 로드 지표 선택
조건부 또는 일정 예약으로 설정
CloudWatch로 사용(선택 사항)
인스턴스
인스턴스
최대 10
최소 2
필요 2
인스턴스인스턴스
인스턴스 인스턴스
인스턴스 인스턴스
인스턴스 인스턴스
애플리케이션의 수요 곡선에 따름
Amazon EC2 Auto Scaling 그룹
- 17. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Auto Scaling을 사용한 플릿 관리
실행 중인 인스턴스의 상태
모니터링
손상된 인스턴스 자동 교체
여러 가용 영역에서 용량 밸런싱
인스턴스
인스턴스
인스턴스인스턴스
인스턴스 인스턴스
인스턴스
인스턴스
인스턴스
인스턴스
중단 없이 손상된 Amazon EC2 인스턴스 교체
최대 10
최소 2
필요 10
Amazon EC2 Auto Scaling 그룹
AZ1
AZ2
- 18. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Auto Scaling을 사용한 플릿 관리
인스턴스
인스턴스
인스턴스인스턴스
인스턴스 인스턴스
인스턴스
인스턴스
인스턴스
인스턴스
중단 없이 손상된 Amazon EC2 인스턴스 교체
O
O
최대 10
최소 2
필요 10
Amazon EC2 Auto Scaling 그룹
AZ1
AZ2
실행 중인 인스턴스의 상태
모니터링
손상된 인스턴스 자동 교체
여러 가용 영역에서 용량 밸런싱
- 19. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Auto Scaling을 사용한 플릿 관리
인스턴스
인스턴스
인스턴스인스턴스
인스턴스 인스턴스
인스턴스
인스턴스
인스턴스
인스턴스
중단 없이 손상된 Amazon EC2 인스턴스 교체
P
P
최대 10
최소 2
필요 10
Amazon EC2 Auto Scaling 그룹
AZ1
AZ2
실행 중인 인스턴스의 상태
모니터링
손상된 인스턴스 자동 교체
여러 가용 영역에서 용량 밸런싱
- 20. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elastic Load Balancing
고가용성
상태 확인
SSL/TLS 종료
운영 모니터링
여러 대상에 자동으로 트래픽 분산
인스턴스 인스턴스 인스턴스 인스턴스 인스턴스
Elastic Load
Balancing
- 21. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Application Load Balancer 예시
Application Load
Balancer
EC2 인스턴스
/data
/api
/images
애플리케이션 1
애플리케이션 2
애플리케이션 3
- 22. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Network Load Balancer 예시
Network Load
Balancer
EC2
EC2
EC2
스트리밍
데이터
EC2 AutoScaling
5442
5442
5442
- 23. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
데이터베이스 서비스 배포
- 24. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
DIY와 AWS 데이터베이스 서비스 비교
• 운영 체제 액세스
• 특정 애플리케이션의 기능 필요
• 손쉬운 설정, 관리, 유지
• 즉각적인 고가용성 구현
• 성능에 초점
• 관리형 인프라
- 25. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Relational Database Service란?
클라우드에서 관계형 데이터베이스의
설정, 운영 및 확장을 손쉽게 해주는 데이터베이스 서비스
Amazon RDS 엔진 • 간편하게 확장 가능
• 자동 소프트웨어 패치
• 백업 자동화
• 데이터베이스 스냅샷
• 다중 AZ 배포
• 자동 호스트 교체
• 보관 중인 데이터와 전송 중인
데이터 암호화
- 26. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Aurora란?
• 엔터프라이즈급 관계형 데이터베이스
• MySQL 또는 PostgreSQL 호환
• 표준 MySQL 데이터베이스보다 최대 5배 빠른 속도
• 표준 PostgreSQL 데이터베이스보다 최대 3배 빠른 속도
• Amazon S3로 지속적인 백업
• 지연 시간이 짧은 읽기 전용 복제본 최대 15개
- 27. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
관계형과 키 값 데이터베이스 비교
관계형(SQL) 키 값(NoSQL)
데이터 스토리지 행과 열 키 값, 문서, 그래프
스키마 고정 동적
쿼리 SQL 사용 문서 수집에 집중
확장성 수직적 수평적
예제
ISBN Title Author Format
3111111223439
Withering
Depths
Tark,
Frank
Paperback
3122222223439 Wily Willy
Felton,
Maria
eBook
{
ISBN: 3111111223439,
Title: “Withering Depths”,
Author: ”Tark, Frank”,
Format: “Paperback”
}
- 28. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• 완전 관리형
• 지연 시간이 짧은 쿼리
• 세분화된 액세스 제어
• 지역 및 전역 옵션
Amazon DynamoDB란?
어떤 규모에서든 빠르고 유연한 NoSQL 데이터베이스 서비스
- 29. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon DynamoDB 사용 사례
• 서버리스 웹 애플리케이션
• 마이크로서비스 데이터 스토어
• 모바일 백엔드
• 애드테크(Ad Tech)
• 게임
• 사물 인터넷(IoT)
- 30. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
기타 특수 목적의 데이터베이스 서비스
Amazon Redshift
빠르고 확장 가능한
데이터 웨어하우스
Amazon DocumentDB
MongoDB 호환 데이터베
이스
Amazon Neptune
그래프 데이터베이스
- 31. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Database Migration Service란?
데이터베이스를 AWS로 빠르고 안전하게 마이그레이션
- 32. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
목적에 따른 올바른 도구
고객의 요구 사항
엔터프라이즈급 관계형 데이터베이스
Amazon Relational
Database Service
(Amazon RDS)
어떤 규모에서든 빠르고 유연한 NoSQL 데이터베이스 서비스 Amazon DynamoDB
AWS 데이터베이스 서비스에서 지원하지 않는 운영 체제
액세스 또는 애플리케이션 기능
EC2의 데이터베이스
특정 사례 중심의 요구 사항
(기계 학습, 데이터 웨어하우스, 그래프)
특수 목적의 AWS
데이터베이스 서비스
- 33. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
자동 배포
- 34. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CloudFormation이란?
YAML 또는 JSON
형식으로 인프라
템플릿 코딩
템플릿 코드를 기준으로
스택 생성
AWS CloudFormation에
서 리소스 프로비저닝
모든 클라우드 인프라 리소스를 모델링 및 프로비저닝
로컬에서 템플릿 확인,
또는 S3 버킷에 업로드
- 35. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CloudFormation 예시
템플릿 파일
(YAML/JSON)
----- -- -- --- -- ----- --
-- --- --
----- -- -- --- --
----- -- -- --- --
CloudFormation Designer
VPC(10.1.0.0/16)
웹
서버
보안 그룹
인터넷 게이
트웨이
퍼블릭 서브넷 1
(10.1.11.0/24)
- 36. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
전체 프로세스(1/4)
AWS 클라우드
인터넷
게이트웨이
인터넷
S3 버킷
(정적 콘텐츠)
EC2
웹 애플리케이션 EBS 볼륨
(데이터베이스 파일)
- 37. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
전체 프로세스(2/4)
인터넷
S3 버킷
(정적 콘텐츠)
EC2
Amazon RDS
AWS 클라우드
인터넷
게이트웨이 웹 애플리케이션
- 38. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
전체 프로세스(3/4)
인터넷
S3 버킷
(정적 콘텐츠)
Amazon RDS
Elastic Load
Balancing
Auto Scaling 그룹
EC2 인스턴스
CloudWatch
AWS 클라우드
인터넷
게이트웨이
- 39. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
전체 프로세스(4/4)
인터넷
S3 버킷
(정적 콘텐츠)
Amazon RDS
Auto Scaling 그룹
EC2 인스턴스
CloudWatch
AWS CloudFormation
AWS 클라우드
Elastic Load
Balancing
인터넷
게이트웨이
- 40. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
인프라 관리 없이 배포하는 법
애플리케이션 코드 업로드
서비스 처리 사항:
리소스 프로비저닝
로드 밸런싱
자동 조정
모니터링
서비스 규모를 수백만 사용자로 확장
하는 애플리케이션 지원
애플리케이션을 빠르게 배포하고 관리하는 AWS Elastic Beanstalk
- 41. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Elastic Beanstalk 기능
광범위한 애플리케이션 플랫폼 선택
다양한 애플리케이션 배포 옵션
모니터링
애플리케이션 상태
모니터링, 로깅 및 추적
• 관리 및 업데이트
• 규모 조정
• 사용자 지정
• 규정 준수
- 42. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
연결 및 데이터 공유
- 43. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
도전 과제: 하이브리드 클라우드
Amazon EC2 Auto
Scaling 그룹
EC2 인스턴스 EBS 볼륨
AWS 클라우드
사내 데이터 센터
클라이언트
인터넷
게이트웨이
네트워크 문제:
• 성능
• 안정성
스토리지 문제:
• 온사이트/오프사이트 데이터 복제
• 과도한 네트워크 트래픽
• 비효율적인 비용
통신 문제:
• 클라우드 인스턴스는 현
장 서버로 라우팅할 수
없음
- 44. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Direct Connect란?
고객 온프레미스 환경에서 AWS로 연결하는 전용 네트워크
네트워크 비용 감소
일관된 네트워크 성능
Amazon VPC에 대해 프라이빗 연결
손쉬운 확장
- 45. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Direct Connect 예시
AWS 클라우드
사내 데이터 센터
기타 AWS 서비스
VPC
가상 프라이빗
게이트웨이
콘텐츠
라우터/방화벽
AWS Direct Connect
위치
고객 또는
파트너
라우터
AWS Direct
Connect
엔드포인트
EC2 인스턴스
- 46. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Route 53란?
가용성과 확장성이 우수한 Domain Name System(DNS) 웹 서비스
도메인 이름 등록
인터넷 트래픽을 도메인의 리소스로 라우팅
리소스의 상태 확인
- 47. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
트래픽 라우팅
Amazon Route 53
https://sales.example.com
ELB
EC2 인스턴스
ELBELB
VPC
- 48. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Elastic File System
(Amazon EFS)이란?
Linux를 위한 확장 가능하고 탄력적인 클라우드 네이티브 파일 시스템
동적 탄력성
확장 가능한 성능
공유 파일 스토리지
완전 관리형
비용 효율성
- 49. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
전체 프로세스
Amazon EC2 Auto
Scaling 그룹
EC2 인스턴스
Amazon
EFS
AWS 클라우드
클라이언트
인터넷
게이트웨이
사내 데이터 센터
가상
프라이빗
게이트웨이
AWS Direct
Connect
Amazon Route 53
- 50. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
콘텐츠 전송 속도 개선
- 51. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
도전 과제: 미디어 스트리밍 서비스
여러 형식
의 비디오
코드 변환
인코딩된
비디오
수집
카탈로그
비디오
메타데이
터
클라이언
트로 비디
오 스트리
밍
이 아키텍처는 다음 요구 사항을 충족해야 합니다.
효율적이고 확장 가능한
컴퓨팅 리소스
빠른 데이터
액세스
짧은 지연 시간
- 52. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Lambda: 서버 없이 코드 실행
이벤트 소스에서
코드가 트리거되도록 설정
사용한
컴퓨팅 시간에
대해서만 비용 지불
AWS
SERVICES
모바일 앱
HTTP
엔드포인트
AWS
Lambda에
코드 업로드
트리거된 경우에만
Lambda에서 코드 실행
- 53. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda 이점
여러 프로그래밍 언어 지원
완전히 자동화된 관리
내결함성 기본 제공
여러 함수의 오케스트레이션 지원
사용량에 따라 요금 지불
- 54. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lambda 예시: 썸네일 생성
대상
버킷
1 3
JSON
액세스
정책
Lambda
함수
사용자
5
Lambda
2
AWS 클라우드
4
역할 실행
소스
버킷
- 55. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Simple Notification Service
(Amazon SNS)란?
분산 또는 서버리스 애플리케이션을 위한 완전 관리형 게시/구독 메시징
메시지 전달의 내구성 및 안정성
워크로드 자동 확장
사용자의 아키텍처 간소화
메시지의 프라이버시 및 보안 유지
- 56. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon SNS 개요
SNS 주제
구독자게시자 메시지 필터
Amazon Simple Notification Service AWS Lambda
메시지 대기열
HTTP/S
- 57. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon CloudFront란?
빠르고 안전한 글로벌 콘텐츠 전송 네트워크(CDN)
- 58. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CloudFront에서 사용자에게
콘텐츠를 전송하는 방법
© 2018 Amazon Web Services Inc 또는 자회사. All rights reserved.
S3 버킷
엣지 로케이션
캐시
www.example.com/content
- 59. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon ElastiCache란?
완전 관리형 Redis 또는 Memcached와 호환되는
인 메모리 데이터 스토어
탁월한 성능
완전 관리형
확장 가능
Amazon ElastiCache for Redis
다용도 인 메모리 데이터 스토어
Amazon ElastiCache for Memcached
데이터 집약적인 앱을 위한 확장 가능한 캐싱 티어
- 60. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
도전 과제: 미디어 스트리밍 서비스
AWS 클라우드
동영상
인코더
CloudFront 수집
S3 버킷 SNS 주제
HQ
480p
360p
오디오 전용
AWS Lambda 트랜스코딩 기능
재생
S3 버킷
클라이언트
DynamoDBLambda
비디오 메타데이터
CloudFront
스트리밍
스트림
Redis용
ElastiCache
검색
- 61. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
핵심 사항
Amazon CloudWatch 클라우드 리소스 및 애플리케이션에 대한 완전한 가시성
Elastic Load Balancing
Application Auto Scaling
수요에 따라 확장하는 고가용성 애플리케이션 배포
AWS 데이터베이스 서비스 관리 오버헤드없이 SQL 또는 NoSQL 데이터베이스 실행
AWS CloudFormation 반복 가능한 인프라를 프로그래밍 방식으로 배포
AWS Elastic Beanstalk 가장 간단한 방법으로 애플리케이션 배포
AWS Direct Connect 고객 온프레미스 환경에서 AWS로 전용 네트워크 연결 프로비저닝
Amazon Route 53 가용성과 확장성이 우수한 Domain Name System(DNS) 웹 서비스 실행
AWS Lambda 서버 관리 없이 코드 실행
Amazon CloudFront 대량 조정이 가능하고 전역을 사용할 수 있는 네트워크에 콘텐츠 전송
- 62. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
- 63. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
- 64. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
퀴즈
Q1 애플리케이션이 개별 서비스로 구성되어 있습니다. 요청 내용을
바탕으로 서비스에 요청을 라우팅해야 합니다. 어떤 유형의 로드 밸런서를
사용해야 합니까?
A. Auto Scaling 로드 밸런서
B. Network Load Balancer
C. Application Load Balancer
D. 모든 유형의 로드 밸런서
- 65. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
퀴즈
Q1 애플리케이션이 개별 서비스로 구성되어 있습니다. 요청 내용을
바탕으로 서비스에 요청을 라우팅해야 합니다. 어떤 유형의 로드 밸런서를
사용해야 합니까?
A. Auto Scaling 로드 밸런서
B. Network Load Balancer
C. Application Load Balancer
D. 모든 유형의 로드 밸런서
C가 정답입니다.
- 66. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
퀴즈
Q2 다음 중 키 값(NoSQL) 데이터베이스는 무엇입니까?
A. Amazon Aurora
B. Amazon DynamoDB
C. Amazon RDS
D. Amazon NoSQL-DB
- 67. © 2020, Amazon Web Services, Inc. or its affiliates. All rights reserved.
퀴즈
Q2 다음 중 키 값(NoSQL) 데이터베이스는 무엇입니까?
A. Amazon Aurora
B. Amazon DynamoDB
C. Amazon RDS
D. Amazon NoSQL-DB
B가 정답입니다.
- 68. © 2020 Amazon Web Services, Inc. or its affiliates. All rights reserved.
감사합니다!