[제14회 jco 컨퍼런스] 개발자를 위한 서버이중화 by javacafe

Post on 19-Jun-2015

3.099 Views

Category:

Technology

11 Downloads

Preview:

Click to see full reader

DESCRIPTION

자바카페에서 발표한 발표자료입니다. step by step 개발자를 위한 서버이중화 가이드

TRANSCRIPT

  • 1. Step by Step

2. () NAVER I&S . . Back-End Front-End .() ESTsoft . , . 9 , . () Phill-It . HTML5 CSS3 . . 3. OVERVIEW (JAVACAFE) .NET JAVA 4. 5. : http://www.betanews.net/article/574328 (by globalwebindex.net) 6. 23 : http://www.betanews.net/article/574328 (by globalwebindex.net) 7. : http://www.betanews.net/article/574328 (by globalwebindex.net) 8. 7 : http://www.betanews.net/article/574328 (by globalwebindex.net) 9. Localization TEXT ? TIME ZONE ? FONT ? (Scalability) ? TPS (Transaction Per Second) HA (High Availability) ? 10. Scale-Up vs Scale-Out 11. Scale-Up vs Scale-Out : http://www.navcode.info/2012/12/cloud-scaling-schemes.html 12. Scale-Up vs Scale-Out : http://www.navcode.info/2012/12/cloud-scaling-schemes.html 13. SPOF : http://en.wikipedia.org/wiki/Single_point_of_failure 14. ? 15. , WAS, DB 16. Hardware ? 17. , WAS, DB 18. SPOF, WAS, DB 19. DB , WASDB 20. DB DB DB . (Scale-Up) 21. DB , WASDB 22. DB SPOF, WASSPOFDB 23. WASDB 24. Static WAS 25. WASDB 26. SPOFSPOFSPOFWASDB 27. REPLICATIONR DB(Slave)WAS RW DB(Master) 28. REPLICATION Near Database HA (High Availability) Master(RW)-Slave(R) Slave 29. REPLICATIONR DB(Slave)WAS RW DB(Master) 30. REPLICATIONR DB(Slave) SPOFSPOFWAS RW DB(Master) 31. WAS RDB(Slave) WAS L4 RW WAS WASDB(Master) 32. OSI Layer4 (Scale-Out) WAS , ( ) Sticky Health Check 33. WAS RDB(Slave) WAS L4 RW WAS WASDB(Master) 34. WAS RDB(Slave) SPOFWAS L4 RW WAS WASDB(Master) 35. HAProxy HA (High Availability)WASActiveRDB(Slave)L7 WASStand By RW WASL7WASDB(Master) 36. HAProxy HA (High Availability) OSI Layer7 L7 HA URI 37. HAProxy HA (High Availability)WASActiveRDB(Slave)L7 WASStand By RW WASL7WASDB(Master) 38. HTTP CacheWASActiveR DB(Slave) L7 WASStand ByRWWAS L7WASDB(Master) 39. HTTP Cache Web Accelerator Reverse HTTP Proxy html TTS Block Varnish, Apache Traffic Server 40. HTTP CacheWASActiveR DB(Slave) L7 WASStand ByRWWAS L7WASDB(Master) 41. Local Cache Local CacheWASActiveRLocal Cache DB(Slave)L7 WASStand ByLocal CacheWAS L7Local CacheWASRWDB(Master) 42. Local Cache ( ) Spring Ehcache 43. Local Cache Local CacheWASActiveRLocal Cache DB(Slave)L7 WASStand ByLocal CacheWAS L7Local CacheWASRWDB(Master) 44. Global Cache Local CacheGlobal CacheWASActive Local Cache RL7 WASStand ByLocal CacheWAS L7Local CacheWASDB(Slave)RWDB(Master) 45. Global Cache WAS Local Cache WAS (Global Cache ) Memcached, Redis 46. Global Cache Local CacheGlobal CacheWASActive Local Cache RL7 WASStand ByLocal CacheWAS L7Local CacheWASDB(Slave)RWDB(Master) 47. (Async) Global CacheRDB(Slave)RWDB(Master) 48. (Async) Message Oriented Middleware (MOM) point-to-point publish/subscribe request/response ActiveMQ, RabbitMQ 49. (Async) Global CacheRDB(Slave)RWDB(Master) 50. DB Sharding 51. DB Sharding DB Partitioning DB Sharding Primary Key Table Join 52. DB Sharding 53. CELL ArchitectureCELL 54. CELL ArchitectureCELL#1ActiveL7WASCELL#2 Meta Data DB 55. CELL ArchitectureCELL#1ActiveL7 IDCCELL#2WAS IDCMeta Data DBCELL#3CELL#4 56. CELL Architecture Cell Cell (, ) Cell Cell (5 -> 20%) 57. ? 58. .NET 59. Load Balance 60. .Net Network Load Balancing Application Request Routing 61. Network Load Balancing 62. Network Load Balancing 63. Network Load Balancing Windows Server Layer 3 32 .(Scalability) .(Highavailability) NLB Manager GUI NLB . . 64. Network Load Balancing ? TCP/IP Health checks X Caching X SSL Offload X Geo Location X 65. APPLICATION REQUEST ROUTING 66. APPLICATION REQUEST ROUTING IIS 7.0+ Layer 7 Reverse Proxy URL, Http Headers, Server variables Load Balance . 67. Health Checking Caching Can work as a Content Delivery network(CDN) SSL offloading HTTP compression URL rewrite Usage reporting Sticky sessions programming and automation support 68. ? (Network High Availability) . HTTP traffic 69. ? 70. Session 71. .NET SESSION 72. .NET SESSION 73. .NET SESSION 74. .NET SESSION The ASP.NET State Server service Microsoft SQL Server third party component 75. THE ASP.NET STATE SERVER SERVICE . 76. MICROSOFT SQL SERVER session 77. THIRD PARTY COMPONENT MS AppFabric Caching Services ScaleOut Software Alachisoft Memcached 78. ?< validationKey="some long hashed value" decryptionKey="another long hashed value" validation="SHA1"/> 79. ? - The ASP.NET State Server service - SQL Server 80. ? 81. ..Web Farm Framework! 82. . 83. WEB FARM FRAMEWORK IIS 7+ Free! Web PI Web Deploy Application ARR 84. WEB FARM FRAMEWORK 85. JAVA 86. SSO (Single Sign On) 87. SSO (Single Sign On) : https://wiki.jasig.org/display/CASUM/1.+Introduction 88. SSO (Single Sign On) . Request Header Apache Validation CA SiteMinder 89. SSO (Single Sign On) : http://www.idfconnect.com/products/ssocloud/ssorest-agent-for-pingfederate/ 90. Tomcat Failover 91. Tomcat Failover Failover : Failback : : http://www.cubrid.com/manual/840/admin/admin_ha_concept_failover.htm 92. Tomcat Failover : http://www.richardnichols.net/2010/08/5-minute-guide-clustering-apache-tomcat/ 93. Tomcat FailoverApache Tomcat lb worker Failover 94. Tomcat Failover Apache Tomcat mod_jk : Tomcat Connector mod_proxy : Apache Connector Apache load balancer (lb worker) 95. Tomcat Failover worker.propertis Tomcat Instance 96. Tomcat Failover http.conf mod_jk 97. Tomcat Failover : http://blog.xebia.fr/2009/11/13/tomcat-ssl-communications-securisees-et-x-forwarded-proto/ 98. CACHE 99. CACHE (Long Tail) 20% 80% Cache . : http://www.longtail.com 100. CACHE DB Static 101. CACHE 102. LOCAL CACHE (, ) 103. GLOBAL CACHE () . ( ) 104. CACHE CLOUD : http://www.slideshare.net/sdec2011/sdec2011-arcus-nhn-memcached-cloud-8467157 105. RPC FRAMEWORK 106. RPC FRAMEWORK : http://www.tuicool.com/articles/jyi2aqA 107. RPC FRAMEWORKRemote Procedure Call : http://en.wikipedia.org/wiki/Apache_Thrift 108. RPC FRAMEWORK 109. RPC FRAMEWORK : http://helloworld.naver.com/helloworld/1119 110. Message Oriented Middleware (MOM) 111. MESSAGE ORIENTED MIDDLEWARE (MOM) JMS (Java Message Service) point-to-point publish/subscribe AMQP (Advanced Message Queue Protocol) point-to-point publish/subscribe request-response 112. MESSAGE ORIENTED MIDDLEWARE (MOM) 113. MESSAGE ORIENTED MIDDLEWARE (MOM) 114. POINT-TO-POINTBasic Queue (Producer - Queue - Consumer) Producer Consumer . 115. POINT-TO-POINTWorker Queue (Producer - Queue - more Consumer) Producer Consumer . 116. PUBLISH/SUBSCRIBEPub/Sub Queue (Producer - Exchange - more Queue - Consumer) Producer Exchange Consumer . 117. http://ehcache.org/ https://www.varnish-cache.org/ http://haproxy.1wt.eu/ http://meta.stackoverflow.com/questions/10369/which-tools-and-technologies-are-used-to-build-the-stackexchange-network http://highscalability.com/blog/2012/2/13/tumblr-architecture-15-billion-page-views-a-month-and-harder.html http://highscalability.com/blog/2012/3/26/7-years-of-youtube-scalability-lessons-in-30-minutes.html http://highscalability.com/display/Search?moduleId=4876569&searchQuery=twitter http://helloworld.naver.com/helloworld/284659 http://backstage.soundcloud.com/2012/08/evolution-of-soundclouds-architecture/ http://www.slideshare.net/sdec2011/sdec2011-arcus-nhn-memcached-cloud-8467157 http://dotnetcodr.com/2013/06/17/web-farms-in-net-and-iis-part-1-a-general-introduction/ http://dotnetcodr.com/2013/06/20/web-farms-in-net-and-iis-part-2-network-load-balancer/ http://dotnetcodr.com/2013/06/24/web-farms-in-net-and-iis-part-3-application-request-routing-arr/ http://dotnetcodr.com/2013/07/01/web-farms-in-net-and-iis-part-5-session-state-management/ http://weblogs.asp.net/scottgu/archive/2010/09/08/introducing-the-microsoft-web-farm-framework.aspx 118. .JAVACAFE() ALWAYS WITH YOU. http://javacafe.or.kr/ https://www.facebook.com/groups/javacafe/ hrkim3468@gmail.com

top related