Más contenido relacionado
La actualidad más candente (20)
Similar a 클라우드 프론트의 재발견::백본을 이용한 초고속 콘텐츠 전송::서호석 이사, 영우디지탈::AWS Summit Seoul 2018 (20)
Más de Amazon Web Services Korea (20)
클라우드 프론트의 재발견::백본을 이용한 초고속 콘텐츠 전송::서호석 이사, 영우디지탈::AWS Summit Seoul 2018
- 1. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
서호석
영우디지탈 클라우드 사업부
클라우드 프론트의 재발견:
백본을 이용한 초고속 콘텐츠 전송
- 2. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Agenda
CDN 기본
클라우드 프론트의 장점
A사 PoC 사례(클라우드 프론트 백본 이용 사례)
- 3. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
CDN 기본
- 4. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
CDN basics
• Content Delivery Network
• Large Distribution of Caching Servers
• Routes Viewers to the Best Location
• Caches Appropriate Content at the Edge
• Provides Scalability and Performance of Applications
- 5. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
CDN basics – 캐쉬
Client Server
- 6. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Client ServerCloudFront
Time to first byte: 20ms vs 136ms
CDN basics – 캐쉬
- 7. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
클라우드 프론트의 장점
- 8. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
특징
• 글로벌 콘텐츠 딜리버리 네트워크
• 동적 콘텐츠 가속
• 보안 – WAF, DDOS 방어
• 쉬운 사용자 사용성 (* AWS 와의 쉬운 연계 설정)
• 비용 절감 (* AWS 사용시 비용 절감 효과 커짐)
- 9. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
클라우드 프론트 기본 설계 사상
Highly Available
PerformantScalable
Cost Effective Ease of Use
Highly Secure
- 10. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
24개국 56개 도시에 분포
103엣지 로케이션
장점 – 글로벌 네트워크
- 11. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
2017 AWS Global Backbone Network
오리진 to 에지 전송에서 전용선의 성능 및 안정성 제공
- 12. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
장점 – Regional Edge Caches
클라우드 프론트 오리진 리소스의 부하 감소
기존 CDN 클라우드 프론트
- 13. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
장점 – 동적 콘텐츠 가속
- 14. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
장점 – 동적 콘텐츠 가속
- 15. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
장점 – 보안
Layer 7 Application
Protection
Fast Rule Propagation
Full Control Rules Set
Integration = Automation
Simple Pricing
- 16. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
A사 PoC 사례
(클라우드 프론트 백본을 이용한 성능 개선 사례)
- 17. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Issue
유럽 등 해외 branch office 에서 한국의 콘텐츠 관리 서버에 콘텐츠 파일
업로드 및 다운로드 수행시 원격 장거리 부하로 인해 상당한 시간이 소요됨
관리정책상 콘텐츠 서비스 관리를 한국 IDC 센터에서 수행
큰 시간 소요로 인한 해외 사용자 불만으로 로컬 서비스로의 분리 요구가
거세어지는 상황
• A 사는 글로벌 제조사로 각나라별 마케팅 및 홍보 콘텐츠를
국내에서 유지 관리함
- 18. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Solution
Super Speeding with
PoC 결정!
- 19. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
PoC Architecture Goal
국내 서버 구성 독일 클라이언트 구성
Nginx 프록시 구성 CloudFront 설정
CloudFront
Acceleration
1 국내 서버 환경 재현 2 해외 사용자 환경 재현
3 오리진용 프록시 서버 사용 4 CloudFront 의 백본 활용
- 20. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
• 국내 IDC 내 업로드/다운로드용 콘텐츠 서버 설정
1
• 국내 AWS 이외에 망에 단독으로 존재하는 서버
• OS : Linux ip-172-31-0-205 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
x86_64 (stretch)
• 편의를 위해 VPN 설정은 진행하지 않았으며 단순하게 프록시 서버와 웹 서버간에 http
통신을 통한 프록시가 진행되도록 설정
PoC – step1
- 21. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
PoC – step2
• 해외(독일) 내 업로드/다운로드 실행하는 클라이언트 설정
• 독일에 존재하는 클라이언트를 재현하기 위해서 AWS 이외의 타사 클라우드 서비스로
구성
• OS : Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-111-generic x86_64)
• cURL : curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28
librtmp/2.3
2
- 22. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
PoC – test1
• CloudFront 설정전에 비교를 위한 테스트
• 해외(독일) 지사의 클라이언트 에서 한국 콘텐츠 관리
서버로의 업로드 및 다운로드 평균 속도(647m 파일)
Upload(post) : 8분 49초
Download(get) : 39분 20초
- 23. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
PoC – step3
• 서울 리전 EC2 인스턴스에 프록시 웹서버 설정
3
• ec2-13-125-161-170.ap-northeast-2.compute.amazonaws.com
• OS : Linux ip-172-31-0-205 4.9.0-5-amd64 #1 SMP Debian 4.9.65-3+deb9u2 (2018-01-04)
x86_64 (stretch)
• nginx version: nginx/1.10.3
- 24. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
PoC – step3
server {
server_name ec2-13-125-161-170.ap-northeast-2.compute.amazonaws.com;
listen 80;
keepalive_timeout 70;
client_max_body_size 800m;
location / {
include /etc/nginx/proxy_params;
proxy_set_header X-Scheme $scheme;
proxy_pass http://proxytest.mydomain.com:8080;
}
location /robots.txt {
alias /var/www/html/robots.txt;
}
access_log /var/log/nginx/test/access.log;
error_log /var/log/nginx/test/error.log;
large_client_header_buffers 4 16k;
}
• NginX 프록시 설정 참고
- 25. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
PoC – step4
• CloudFront 설정: 오리진을 이전에 설정한 프록시
웹서버로 설정
4
• 오리진 서버 : ec2-13-125-161-170.ap-northeast-2.compute.amazonaws.com
• 허용 method : GET, HEAD, PUT, POST
• 도메인 : do8vuf3vkb4j4.cloudfront.net
- 26. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Result
• 해외(독일) 지사의 클라이언트 에서 한국 콘텐츠 관리
서버로의 업로드 및 다운로드 평균 속도(동일 647m 파일)
Upload(post) : 120.5초
Download(get) : 6.18초
- 27. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Test
Name
lookup
Connect
App
connect
Pre
transfer
Redirect
Start
transfer
Total
1 0.061 0.062 0 0.062 0 0.064 121.464
2 0.012 0.014 0 0.014 0 0.016 120.054
3 0.012 0.014 0 0.014 0 0.02 121.232
4 0.012 0.014 0 0.014 0 0.016 122.318
5 0.013 0.014 0 0.014 0 0.028 120.617
6 0.013 0.014 0 0.014 0 0.016 120.917
7 0.012 0.014 0 0.014 0 0.018 119.039
8 0.012 0.014 0 0.014 0 0.016 119.866
9 0.012 0.014 0 0.014 0 0.019 119.074
10 0.012 0.014 0 0.014 0 0.016 119.708
mean 0.02 0.02 0 0.02 0 0.02 120.43
Result
• 업로드(post) 테스트 상세 결과 (10회)
- 28. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Test
Name
lookup
Connect
App
connect
Pre
transfer
Redirect
Start
transfer
Total
1 0.013 0.015 0 0.015 0 0.017 13.761
2 0.004 0.006 0 0.006 0 0.018 2.886
3 0.004 0.006 0 0.006 0 0.009 4.265
4 0.004 0.006 0 0.006 0 0.033 4.59
5 0.004 0.006 0 0.006 0 0.015 4.393
6 0.004 0.006 0 0.006 0 0.01 3.821
7 0.004 0.006 0 0.006 0 0.014 4.28
8 0.004 0.006 0 0.006 0 0.014 2.871
9 0.004 0.006 0 0.006 0 0.02 3.103
10 0.004 0.006 0 0.006 0 0.011 17.805
mean 0 0.01 0 0.01 0 0.02 6.18
Result
• 다운로드(get) 테스트 상세 결과 (10회)
- 29. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Result
다운로드(GET) 경우 직접 전송대비 381배
빠른 개선 성능을 보임
업로드(POST) 경우 직접 전송대비 4.4배 빠른
개선 성능을 보임
- 30. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
Lessons Learned
클라우드 프론트는 Cache 기능만 있는것이 아니다1
⁻ 다양하고 유용한 기능들이 많으니 충분히 활용하여 사용성을
극대화 해보자
클라우드 프론트는 AWS 서비스와 같이 효과가 커질 수 있다2
⁻ 쉬운 사용성 및 관리
⁻ 비용적 혜택(AWS source to CloudFront 는 비용 없음)
직접 해보기 전에는 결과를 과소/과대 예단하지 말것3
⁻ 예상보다 훌륭한 또는 못한 결과가 나올 수 있으니 테스트
하고 또 테스트 하여 직접 결과를 확인하자
- 31. © 2018, Amazon Web Services, Inc. or Its Affiliates. All rights reserved.
클라우드의 기본과 경험이
튼튼한 AWS 전문가들이
컨설팅 및 이전/구축을 도와
드립니다.
25년의 긴 역사 와 안정적인
재정을 자랑하는 하지만 계속
혁신하고 발전하는 회사
입니다.
국내 최대 IT 벤더 총판 중
하나로 기존 서비스, 솔루션
들과의 다양한 연계서비스를
제공해 드립니다.
AWS 공인 교육 파트너로
클라우드 컴퓨팅 전문가로
발전시켜 드립니다
can help