ãCDP Advent Calendar 2013 ã®14æ¥ç®ã§ãã主ã«åçãªWeb/ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã®è©±ã§ãããAutoScalingæãé害çºçæã«å½±é¿ãªãå¦çãç¶ç¶ããã«ã¯ã»ãã·ã§ã³ã®ä¿ææ¹æ³ã«ä¸å·¥å¤«å¿
è¦ã§ããã¾ããã°ãªã©ããã¼ã«ã«ã«ä¿åããã¨å¾ã
é¢åãããã§ãããã®è¾ºãã解決ããã«ã¯ããµã¼ãã®ç¶æ
ï¼ã»ãã·ã§ã³ã»ãã°ã»etcï¼ãå¤åºãããã®ãä¸çªã§ããååãä»ããã¨ãããããStateless Serverãã¿ã¼ã³ãã§ããæ¨ä»ã®Immutable Infrastructureã®æ¦å¿µã«ãå½±é¿ãåãã¦ãã¾ãã
1 解決ããã課é¡
ãAutoScalingãå©ç¨ããã¨ãè² è·ã®å¢æ¸ã«å¿ãã¦ãµã¼ãã®å¢æ¸ãåºæ¥ããããããåçãµã¼ãã®å ´åã¯ã»ãã·ã§ã³ãµã¼ããåã ã®ãµã¼ãã«ä¿æãã¦ããã¨ããµã¼ããå¢æ¸ãã¦å¥ã®ãµã¼ãã«æ¯ãåããããå ´åã»ãã·ã§ã³ç¶æãåºæ¥ãã«åé¡ãçãããã¾ãè² è·ãä¸ãã£ã¦ãµã¼ããæ¸ãéããããã©ã«ãã®ã¾ã¾ã§ããã°ãã°ã¯æ¶å¤±ãã¦ãã¾ãã
2 ã¯ã©ã¦ãã§ã®è§£æ±º/ãã¿ã¼ã³ã®èª¬æ
ãã»ãã·ã§ã³æ å ±ããã°ãªã©ã®ãWeb/ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãèªèº«ã«ä¿æããã®ã§ã¯ãªããå°ç¨ã®ã¹ãã¢ãç¨æãã¦å¤é¨ã«ä¿åãããå¤åºããããã¨ã«ããå¯ç¨æ§ã»åé·æ§ãé«ããããæ§æãã¨ããèé害æ§ããããAutoScalingãé害çºçæã«å¼·ãæ§æãã¨ããã
4 æ§é
ãã»ãã·ã§ã³ã¹ãã¢ã¨ãã°ã¹ãã¢ãå¤åºããããã»ãã·ã§ã³ã¹ãã¢ã®å¤åºãã®å®è£ æ¹æ³ã¯ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã«ãã£ã¦ç°ãªãããMemcacheãRedisãRDB/NoSQLã«ä¿åãããªã©è²ã ãªæ¹æ³ãåå¨ãããAWSã®å ´åãElasticCacheãDynamoDBãå©ç¨ããã¨ãå¯ç¨æ§ã®ç¢ºä¿ãè² è·å¯¾çãã»ã¼èªåã§ç¢ºä¿åºæ¥ããã¾ããã°ã«ã¤ãã¦ã¯Fluentdã®ãããªãã°éç´ãã¬ã¼ã ã¯ã¼ã¯ãå©ç¨ãã¦ãAmazon S3ã«ä¿åãããªã©ã®æ¹æ³ãããã
5 å©ç¹
ã»AutoScalingãã¤ã³ã¹ã¿ã³ã¹é害ãçºçãã¦å¥ãµã¼ãã«æ¯ãåãããã¦ããã»ãã·ã§ã³ãç¶æåºæ¥ã
ã»ãã°ãæ¶å¤±ããªã
ã»ãµã¼ãã®å¢æ¸ãç°¡å
6 注æç¹
ã»ã»ãã·ã§ã³ã®åææ¹æ³ã¯ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã®å®è£ ã«ããç°ãªãã
ã»ã»ãã·ã§ã³ãåæãããã¿ã¤ãã³ã°ããå®è£ ã«ããç°ãªããï¼åæã»éåæï¼
æå¾ã«
ãç´ç²ã«AWSã®ãµã¼ãã¹ã®è©±ã¨ãããããä¸ã¢ãã®ããã«ã»ã¢ããªã¨ã©ãçµã¿åããããããã¼ãã§ãããã®è¾ºãã¾ã§å«ããã¨CDPã¯ç¡éã«åºããã¾ããã
See Also:
Statelessなサーバについて 〜クラウド時代のサーバの在り方
何故、fluentdなのか?
Immutable InfrastructureとChefと冪等性の話
åç
§ï¼
CDP Advent Calendar 2013