[Gaming on AWS] AWS와 함께 한 쿠키런 서버 Re-architecting 사례 - 데브시스터즈

Download [Gaming on AWS] AWS와 함께 한 쿠키런 서버 Re-architecting 사례 - 데브시스터즈

Post on 13-Jan-2015

6.356 views

Category:

Technology

3 download

Embed Size (px)

DESCRIPTION

AWS Re-architecting - ( , Senior Technical Lead)

TRANSCRIPT

<ul><li> 1. AWS Re-architecting Senior Technical Lead 1</li></ul> <p> 2. (sungjinhong@devsisters.com) , LINE COOKIE RUN, for Kakao, 2 , - - (C, Erlang, MySQL, Hadoop, HBase, Riak, Redis) - Lucene, Solr , , , - , , , Django Project Contributor - i18n , , 2 3. Agenda 2 Maven/CircleCI Chef CloudFormation AutoScale 3 4. 2 4 5. 2 API ELB - - m2.2xlarge-API - m1.largeTomcatTomcat - Backup NFS MySQL Master US-East 5Slave ReplicaSlave Replica 6. - , - - Tomcat JVM locale , ? - - 6 7. Re-architecting AWS 7 8. Maven/CircleCI Maven Dependency Github, CircleCI branch continuous integration artifact / master war 8 9. Chef JSON Ruby Git - 1: Tomcat max heap, G1 GC, file.encoding JVM 2: devsisters htop, dstat, sysstat 3: (ulimit ) 5 9 10. CloudFormation EC2, ELB, AutoScale JSON - AWS 30 10 11. AutoScale Maven war artifact S3 Bucket Chef CloudFormation AutoScaling Group Rolling Update 5% 100% ( )DeveloperTerminatedCircleCIGithubOld VersionNew VersionAuto scaling Group RemoveAddELB11Cookierun S3 BucketCreated 12. AutoScale Scale out - AutoScale - -m1.medium &gt; m1.large &gt; c1.xlarge c1.xlarge 120 -Quota limit -Business Support # instances vs. CPU utilization 12 13. AutoScale c1.xlarge - 8 vCPU, 20 ECU, 7GB Memory - c3.2xlarge - 1 avg CPU &gt; 60% 4 2 max CPU &gt; 80% 4 - 2 avg CPU &lt; 25% 2 4 400 - Reserved Instance - ) 4 Heavy Utilization, 10 Light Utilization 13 14. . (ephemeral) - Cron Job Shared-nothing -Game Log Log Server Shipping Logging slf4j/Logback , Logstash agent Consistency RDB Consistency NoSQL - Consistency , , - Consistency 14 15. Re-architecting CloudFront Edge InternetLog archivesPatches &amp; Game Data CloudFront Download DistributionS3 BucketsMobile Game userAvailability Zone-2Availability Zone-1 Apple / Google Push ServiceLog Search (realtime)ELBFront-end game serviceAuto-scaling groupEC2Chef &amp; Git Conf. ManagementEC2EC2Game &amp; Server MonitoringEC2Database group RDSEC2Couchbase ClusterCloudFormationEC2CloudWatchEC2 redis instanceMS15 16. (1/2) - c1.xlarge c3.2xlarge - hi1.4xlarge cr1.8xlarge - , NoSQL Couchbase - Couchbase - , - cr1.8xlarge 4, 976GB Memory, 960GB SSD Storage - Reserved Instance 16 17. (2/2) Seoul - Tokyo Region Latency , , 40ms Latency AWS ISP 17 18. Q&amp;A18 19. 19 </p>