Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Cross-regional Application Deplolyment on AWS - Channy Yun (JAWS Days 2017)

4,927 views

Published on

今回のセッションでは、ソウルリージョンの詳細な情報と東京リージョンユーザーのために、ソウルリージョン活用方法について説明します。
まず、ソウルリージョンで提供されるサービスのリストと主要な顧客事例についてお知らせします。
そして、AWSでは、マルチリージョンを活用する理由を紹介して、マルチリージョンを通じた高可用性のためにAWS CloudFormationとLambdaを通じたAmazon EC2の自動バックアップ、Amazon S3、Aurora、DynomoDBのクロスリージョンレプリケーション機能を含めて、さまざまなアーキテクチャ構成方式とマルチリージョンフェイルオーバーのデモを紹介します。
http://jawsdays2017.jaws-ug.jp/session/1738/

Published in: Technology

Cross-regional Application Deplolyment on AWS - Channy Yun (JAWS Days 2017)

  1. 1. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Channy Yun Tech Evangelist, Amazon Web Services Korea @channyun
  2. 2. • 1996-2003 CTO • 2004-2014 Daum API • 2014- AWS • AWS Elastic Beanstalk • 2002- Mozilla • 2007- Web • 2012- AWSKRUG
  3. 3. AWS Multi-AZ Cross Region Hybrid ITSingle AZ AZ AZ AZ Region Region Edge 16 Region 42 AZ 72 Edge Location (2017, 3 )
  4. 4. Region Multi-AZ AZ AZ
  5. 5. OK … should I use Multi-Region?
  6. 6. 1 Asia Pacific(Seoul) Amazon Elasticsearch, CloudSearch AWS MarketPlace 3 EC2 Spot Instance, AWS Storage Gateway 4 AWS Config, Amazon Aurora RDS for SQL Server 5 CloudFront EC2 Dedicated Hosting 6 VPC FlowLogs, NAT Gateway CloudWatch Events 8 Amazon API Gateway, AWS Lambda AWS OpsWorks, Amazon Inspector AWS Application Load Balancer AWS Database Migration Service 9 Amazon Cognito, AWS IoT 10 EC2 X1 Instance 12 Amazom GameLift, AWS Config Rules 2016 1 30+
  7. 7. http://zhiguang.me/2016/05/10/latency-between-aws-global-regions/
  8. 8. AWS • Amazon Simple Storage Service (Amazon S3) • Amazon Elastic File System (Amazon EFS) • Amazon Relational Database Services (RDS) • Amazon DynamoDB • …
  9. 9. Cross-Region Amazon Route 53 (Managed DNS) & ClodFront (Edge) Amazon S3 Cross-Regional Replications Amazon RDS & DynamoDB Cross-Regional Replications Network Storage Database Application CI/CD with CodePipeline & CodeDeploy
  10. 10. • DNS • • • • 70 POP • AWS AWS Amazon Route 53
  11. 11. Example: Failover with NS Records example.net Region A Region B prod-1 prod-2
  12. 12. Demo: JAWS Days Failover!
  13. 13. prod-1 prod-2 95% 5% example.net health + weight prod.examp.net health examp-fail.s3-website Region A Region B Example: Weighted with failover
  14. 14. • PUT • • 2 / 1 1 • S3 Source (Tokyo) Destination (Seoul) Amazon S3: Cross-Region Replication http://docs.aws.amazon.com/ja_jp/AmazonS3/latest/UG/cross-region-replication.html
  15. 15. How to replicate S3 Objects?
  16. 16. Amazon RDS: Cross-Region Replication • Aurora MySQL MariaDB PostgreSQL 9.3.5 • • • http://docs.aws.amazon.com/ja_jp/AmazonRDS/latest/UserGuide/USER_ReadRepl.html
  17. 17. How to make RDS ReadReplica?
  18. 18. Amazon DynamoDB Cross-Region Replication Open Source Cross- Region Replication Library Region B Region A DynamoDB Streams • Amazon DynamoDB • DynamoDB • • GitHub : ü https://github.com/awslabs/dynamodb -cross-region-library
  19. 19. Amazon DynamoDB Cross-Region Replication • AWS Lambda DB Stream Lambda DAT201 Cross-Region Replication with Amazon DynamoDB Streams (re:Invent 2016) http://www.slideshare.net/AmazonWebServices/aws-reinvent-2016-crossregion-replication-with-amazon- dynamodb-streams-dat201 https://www.youtube.com/watch?v=NtaTC2Fq7Wo DynamoDB client application • Amazon Kinesis Client Library
  20. 20. Cross-Regional Application Deployment • https://aws.amazon.com/blogs/devops/building-a-cross-regioncross- account-code-deployment-solution-on-aws/ • https://aws.amazon.com/blogs/devops/automatically-deploy-from- amazon-s3-using-aws-codedeploy/ • AWS CodePipeline & CodeDeploy + AWS Lambda • Lambda • •
  21. 21. Serverless App for Cross-Region? Route 53 + API Gateway + CloudFront + Certificate Manager Region A CloudFormation + CodeBuild + CodePipeline Region B
  22. 22. Netflix Case: https://www.slideshare.net/AmazonWebServices/arc305-28387146 https://www.youtube.com/watch?v=hAyA86QGRnI http://techblog.netflix.com/2013/12/active-active-for- multi-regional.html
  23. 23. From Instance to Regional’ Fail Chaos Monkey https://github.com/netflix/ chaosmonkey Instance Fail? Chaos Gorilla Zone Fail? Chaos Kong Region Fail?
  24. 24. Netflix’s Best Practices • • • • / • • 1 •
  25. 25. • Service team ran like a startup • Less than 10 core people working on new PS3 store services • PSN’s user base was already in the several hundred millions of users • Relied on quick iterations of architecture on AWS Sony Case: ARC309- Moving Mission Critical Apps from One Region to Multi-Region active/active (re:Invent 2016) https://www.slideshare.net/AmazonWebServices/aws-reinvent-2016-moving-mission-critical-apps-from-one- region-to-multiregion-activeactive-arc309
  26. 26. Putting it all together Region 1 Region 2 Create infrastructure Replicate DNS
  27. 27. Sony’s Best Practices • • Netflix • • • • VPC CIDR Region • HA
  28. 28. Cross-Region Amazon Route 53 (Managed DNS) & ClodFront (Edge) Amazon S3 Cross-Regional Replications Amazon RDS & DynamoDB Cross-Regional Replications Network Storage Database Application CI/CD with CodePipeline & CodeDeploy Serverless Apps
  29. 29. © 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. http://bit.ly/channy-jawsdays2017 @channyun

×