ãfreeeÃãã¬ã¤ããTech Meetup ãã¤ã³ãã©ç£è¦ç·¨ããéå¬ãã¾ããï¼ KARTEãæ¯ãããã«ããã©ãããã©ã¼ã (AWS/GCP)ã¤ã³ãã©ç£è¦ã«ã¤ãã¦è©±ãã¦ãã¾ãã
ãã®è¨äºã¯pyspa advent calendarã®6æ¥ç®ã¨ãã¦æ¸ããã¾ãã ã©ããfeizã§ããååã®æ稿æ¥ã2013å¹´ã¨ãã§ã¡ãã£ã¨å¼ãã¾ããã 好ããªç丼å±ã¯åé家ã§ãã å»ã7æããã20å°ã®å¤§åãéãããæ ªå¼ä¼ç¤¾ãã¼ãã©ã¦ããéè·ããBASEæ ªå¼ä¼ç¤¾ã«å ¥ç¤¾ãã¦ãã¾ããã ç¾å¨ã¯PAY.JPã¨ãããµã¼ãã¹ã§ã¤ã³ãã©ãã¡ã¤ã³ã«æ å½ãã¦ãã¾ãã é·ããã¨å¤ããä¼ç¤¾ãè¾ãã¦ä¸åºåãã¤ããã¨ããã§ãã¨ãã¨ãããªããã¨ã ã§ãæ¸ãã¦ã¿ããã¨æãã¾ãã §1 ããæ°å¹´ãwebãµã¼ãã¹ã®ã¤ã³ãã©ã®ä»äºãæ å½ãããã¨ãå¢ãããå¢ããã©ããããã»ã¼å ¨æ¡ä»¶ã¤ã³ãã©æ å½ãå ¼ä»»ãã¦ããããã«æãã æ°åã®é ããæ°ãã¦ããããµã¼ãã¼ãã¤ã³ãã©ã®äººã«é ¼ãã§å·¥é¢ãã¦ããããã¿ãããªçµé¨èªä½ãããã¾ããªãã大ä½èªåã§ä½ã£ãã管çããããã¦ãããå°ããªãã¼ã ã§ã°ããä»äºããã¦ããã°ã¾ãå½ç¶ãããããªãã §2 ãã
çµæ§åã«ä½ã£ã¦ãããã§ãããããããã¨å¿ããã¦ããã°ã«æ¸ãã¿ã¤ãã³ã°ã失ãã¦ããã®ã§å¹´æ«ã®ã¿ã¤ãã³ã°ã§ç´¹ä»ã TL;DR GoReplayãå©ç¨ãã¦ãProductionç°å¢ã®ãªã¯ã¨ã¹ããè¤è£½ããStaginsç°å¢ãéçºç°å¢ã«æããä»çµã¿ãä½ã£ã ã¤ã³ãã©æ§æã®å¤§ããªå¤æ´ç¡ãã§ãæ軽ã«Productionç°å¢ã®å®ãªã¯ã¨ã¹ããè¤è£½ããéçºãåä½æ¤è¨¼ãã§ããããã«ãªã£ã 2016å¹´ã®å¼ç¤¾ãµã¼ãã¹ã®Dockeråããã¤ã³ãã©æ§æã®å¤§å¹ ãªå¤æ´ãããã«ã¦ã§ã¢ã®ã¢ãããã¼ããã¢ããªã®æ¹ä¿®æã®ãã°äºåæ¤ç¥ã¨äºæ é²æ¢ã«å¤§ãã«å½¹ã«ç«ã£ã GoReplayã®èª¬æ GoReplay Goã§æ¸ããã¦ããããã¤ããªãè¨ç½®ãããªãã·ã§ã³ãæå®ãå®è¡ããã ãã§åä½ãã ã¢ããªã稼åãã¦ãããµã¼ãã§åãã(ä¾ãã°Nginx+Railsã稼åãã¦ãããµã¼ãã§ä¸ç·ã«GoReplayãåããæãã) libpcap ãå©ç¨ãã¦
ããã«ã¡ã¯ã缶ã³ã¼ãã¼ãæãã¦ãã¾ãªãã¯ã©ã¦ãã¯ã¼ã¯ã¹ã®ã¨ã³ã¸ãã¢æ£®ç°ã§ãã Infrastructure as Code ã¨å«ã°ãã¦ä¹ ããã§ãããç¾å®ã¯ãããªã«åç´ãªè©±ã°ãããããªãã§ããã(´ã»Ïã»`) æ°è¦ã«ç«ã¦ããµã¼ãã§è¨å®å 容ãèªæã§ããã°ãããã§ãããã©ãã æ¢ã«æ¬çªéç¨ããã¦ããã温ãã¿ã®ããè·äººã®æä»äºã«ãã£ã¦ç¶æ管çããã¦ãããµã¼ãã£ã¦ããã¾ãããï¼ ç®¡çè ãä¸äººãªãã¾ã ãããè¤æ°äººã§è¨å®å¤æ´ããããã¦ãã¨ãã©ã®ãããªè¨å®ãå ¥ã£ã¦ããã®ãããã©ãã¯ããã¯ã¹ã§ã ãããå¾ããã³ã¼ãã«ç½®ãæããã«ã¯å°é£ãä¼´ãã¾ãã ãã®ãæ¢åã®ãµã¼ããã¨ãã³ã¼ãã§çæãããµã¼ããã®ãã¡ã¤ã«ã·ã¹ãã å ¨ä½ã®å·®åãå¹ççã«èª¿æ»ããç®çã§ã ä»»æã®2ã¤ã®ãµã¼ãè¨å®ãæ¯è¼ããAjimiã¨ãã便å©ãã¼ã«ãä½ã£ãã®ã§ãç´¹ä»ãã¾ãã ã¯ããã« ãµã¼ãæ§ç¯ãã³ã¼ãã«ç½®ãæãã¦ããä½æ¥ã¯ã ChefãAnsib
ä¸ã大è¦æ¨¡ãµã¼ãã¹ã®ã¤ã³ãã©ã®æ§åãç¥ãããã¢ããªã±ã¼ã·ã§ã³ã¨ã³ã¸ãã¢åãã«ããã¨ãã¨ã¢ããªã±ã¼ã·ã§ã³ã³ã¼ããæ¸ãã¦ããè¦ç¹ãããå人çãªä½é¨ããã¼ã¹ã«ã¯ã¦ãªã§å¤§è¦æ¨¡ãµã¼ãã¹ã®ã¤ã³ãã©ãå¦ãã éç¨ãå¦ãã å 容ã®ä¸é¨ãç´¹ä»ãã¾ãã Webã¢ããªã±ã¼ã·ã§ã³ã®ãã©ãã¯ããã¯ã¹ Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ã®åããå´ ãªãè¤æ°ã®ãµã¼ããå¿ è¦ãªã®ã çªç¶ã®Webãµã¼ãã¹3層æ§æ ãªãã¼ã¹ãããã· ã¢ããªã±ã¼ã·ã§ã³ ãã¼ã¿ãã¼ã¹ ãã®ä»ã®ã³ã³ãã¼ãã³ã ãã£ãã·ã¥ã¯éº»è¬ é£ã³éå ·ã¨ãã¦ã®KVS/NoSQL éåæå¦ç ãããå¦ç Mackerelã®å ´å åè ã¾ã¨ã Webã¢ããªã±ã¼ã·ã§ã³ã®ãã©ãã¯ããã¯ã¹ ä»å¹´ãã¯ã¦ãªã¤ã³ã¿ã¼ã³ã®ææãè¿ã¥ãã¦ããã æ¯å¹´ã§ã¯ãªããã©ãã¯ã¦ãªã¤ã³ã¿ã¼ã³ã§ã¯ãã¤ã³ãã©è¬ç¾©ãã¨ããã®ããã£ã¦ããã ä»å¹´ã¯ã¤ã³ãã©è¬ç¾©ã®è¬å¸«ã¨ãã¦ã¢ãµã¤ã³ãããã®ã§ã¡ããã©ä½ã話ã
ã¢ããªã¨ã³ã¸ãã¢ããã¤ã³ãã©ã¨ã³ã¸ãã¢ã«ãªããAWSã§ã®æ§ç¯ã»éç¨ãInfrastructure as codeãå®è·µããä¸ã§è¦å´ããç¹ãããã¦ã¤ã³ãã©ç®ç·ããä»å¾ã¢ããªã¨ã³ã¸ãã¢ã«æå¾ ãããã¨ããé¢ä¿æ§ã«ã¤ãã¦æããã¨ã話ãããã¨æãã¾ãã Read less
[LT] ã¤ã³ãã©ã®äººãChefãServerspec(ã»ã)ã Rubyã ã£ããããã§ããã ããã°ã©ã ãããããã«ãªã£ã話
æè¿ã¯ã¯ã©ã¦ãä¸ã®ãµã¼ãã¼ãå©ç¨ããäºãå¤ããªã£ã¦ããã ãµã¼ãã¼ã®ç¨æããããã¯ã¼ã¯å¨ãã®è¨å®ã¯ã¤ã³ãã©é¨éããã£ã¦ããããã©ãã¢ããªã®ãããã¤ï¼è¨å®ã¯éçºè ãããäºãå¤ãã®ã§ãéçºã¡ã¤ã³ã§ãã£ã¦ãã¨ã³ã¸ãã¢ã§ãæä½éSSHã®ç¥èã¯å¿ è¦ã«ãªãã ã¾ããVagrantçã§ãã¼ã«ã«ç°å¢ã«VMãä½æããäºãããã®ã§ããã¼ã«ã«ç°å¢å ã§SSHã使ç¨ããã±ã¼ã¹ãå¢ãã¦ããã ã¨ããããã§ã¤ã³ãã©ã¨ã³ã¸ãã¢ãããªãã¦ãSSHã¯ã©ã¤ã¢ã³ãã®ç¥èã¯å¿ é ã«ãªã£ã¦ãã¦ããã®ã§ãæ¹ãã¦SSHã®åå¦ç¿ããã¦ã¿ããã¨ã«ããã SSHã¨ã¯ æå·ãèªè¨¼ã®æè¡ãå©ç¨ãã¦ãå®å ¨ã«ãªã¢ã¼ãã³ã³ãã¥ã¼ã¿ã¨éä¿¡ããããã®ãããã³ã«ã SSHã§ã¯ä»¥ä¸ã®ç¹ã§å¾æ¥ã®Telnetããå®å ¨ãªéä¿¡ãè¡ããã1 ãã¹ã¯ã¼ãããã¼ã¿ãæå·åãã¦éä¿¡ããã ã¯ã©ã¤ã¢ã³ãããµã¼ãã¼ã«æ¥ç¶ããæã«ãæ¥ç¶å ãæå³ããªããµã¼ãã¼ã«èªå°ããã¦ããªããå³å¯ã«
1. éç¨ã¨ãã¼ã¿åæã®é ãã¦è¿ãé¢ä¿ã ISUCONãæ·»ã㦠TAGOMORI Satoshi (@tagomoris) 2014/11/01(Sat) Hokkaido.pm
Amazon EC2ã¯9ææ«ããã®å é¨ã§ä½¿ç¨ãã¦ããXenãã¤ãã¼ãã¤ã¶ã®ã»ãã¥ãªãã£ãªã¹ã¯ã«å¯¾å¦ãããããå ¨ã¤ã³ã¹ã¿ã³ã¹ã®ç´10ï¼ ã«ãããã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ãã¦æ®µéçã«ãªãã¼ããè¡ãã¡ã³ããã³ã¹ãå®è¡ãã¦ãã¾ããã ãªãã¼ããã¦ã¼ã¶ã¼ãåé¿ããæ段ã¯ãªããAWSããäºåã«éç¥ãåããã¦ã¼ã¶ã¼ã¯ãªãã¼ãã«ãã£ã¦ãã¼ã¿ã失ã£ããã·ã¹ãã ããã¦ã³ãããããªãããã«ãä½ããã®å¦ç½®ãããå¿ è¦ãããã¾ããã AWSä¸ã§å¤§è¦æ¨¡ãªã·ã¹ãã ãéç¨ãã¤ã¤ããã®ã¡ã³ããã³ã¹ãªãã¼ããé£ãªãä¹ãåã£ãã®ããç±³å½ã§åç»é ä¿¡ãµã¼ãã¹ãªã©ãéç¨ããNetflixã§ãããã®çç±ã¯å社ãéçºããChaos Monkeyã¨ãããã¼ã«ã«ããã¾ããã å社ã®ããã°ã«ãã¹ããããè¨äºãA State of Xen - Chaos Monkey & Cassandraãã§ããã®é¡æ«ãç´¹ä»ããã¦ãã¾ãã Chaos Monkeyã«ãã£
ç¾å¨ã MNX ã§ã¯ã¯ã©ã¦ããã¹ãã£ã³ã°ãµã¼ãã¹ã®æ°ãããã¼ã¿ã»ã³ã¿ãç«ã¡ä¸ãã¦ããã¨ããã§ãã¨ã¦ããã¿ãã¿ãã¦ãã¾ããã¯ã©ã¦ããã¹ãã£ã³ã°ãµã¼ãã¹ã¯ãä»ã®ç§ãã¡ã®ä¸»ãªæ¥åã§ããããã®ä¼ç¤¾ãå§ã¾ã£ãå½åã¯ãLinux管çã®ã³ã³ãµã«ãã£ã³ã°ãµã¼ãã¹ãä¸å¿ã¨ãã¦ãã¾ããããã®ãµã¼ãã¹ãéãã¦ãããããã®é¡§å®¢ç°å¢ãç®ã®å½ããã«ãã¾ããããããã¨åãæ°ã ãã®ã顧客ãã¨ã«ç°ãªãããã¤ã¹åã®æå®æ¹æ³ãè¦ã¦ãã¾ãããããã¦ãã¡ããããã®å ¨ã¦ã®æå®æ¹æ³ããããªã¨æã£ãããã§ã¯ããã¾ãããååã®ä»ãæ¹ã¯ãã³ã³ãã¥ã¼ã¿èåµæããã®åé¡ã§ãããããã®ãã®ããã¹ãåã®æå®æ¹æ³ã«ã¤ãã¦ä¸å®¶è¨æã£ã¦ãã¾ãããã§ãããããã®æ¹æ³ã¯æåã®ãã¡ã¯ãã¾ããã£ã¦ããæãçµã¦ã·ã¹ãã ã¤ã³ãã©ãæ¡å¤§ããç¶æ³ã«å¿ãã¦å¤æ´ãä½åãªããããããã«ãªãã¨ãããã«æ±ãã«ãããªã£ã¦ãã¾ããã®ãã»ã¨ãã©ã§ããã ããã§ä»åã¯ãå è¿°ããç§ãã¡ã®ã
ä»å¹´ã®3æã« å ¥éChef Solo - Infrastructure as Code ã¨ããæ¬ãæ¸ããã ãã®åã®éã Chef ã®å ¥éæ¸ãªã®ã ãã©ããã®ãµãã¿ã¤ãã«ã¯ "Configuration Management Tool (æ§æ管çãã¼ã«)" ã§ããªã "Provisioning Framework (ãããã¸ã§ãã³ã°ãã¬ã¼ã ã¯ã¼ã¯)" ã§ããªããã¯ãã¾ã "Automated Infrastructure (èªååãããã¤ã³ãã©)" ã§ããªãã"Infrastructure as Code" ã«ããã ãã®ä¸å¹´ã§ Chef ã Puppet ã«ã¯ããã¶ãã¨æ³¨ç®ãéã¾ã£ãããããããAWS ãã¯ããã¨ããã¯ã©ã¦ããµã¼ãã¹ãããåºãã¦ã¼ã¶ã¼ã«æµ¸éãããã¨ã§ä»®æ³åç°å¢ãåæã«ãªã£ã¦ã以åãããé »ç¹ã«ãµã¼ãã¼ãæ§ç¯ãç´ãããããæ©ä¼ãå¢ããã¨ããã®è¾ºãã²ã¨ã¤çç±ã¨ãã¦æããããã¨æã
ããã«ã¡ã¯ãæè¤ã§ãã ITã¤ã³ãã©ã®é害ã¯ãå¤ãã®å ´åãäºæãã¬ãã¿ã¤ãã³ã°ã§çºçãã¾ããç¹ã«ãCPUãªã½ã¼ã¹ãå¤éã«æ¶è²»ããããDisk I/Oã輻輳ãã¦ããå ´åããã®åãåãã¯å°é£ãªç¶æ³ã«é¥ãããããã®ã§ãã ããã§ãæ¬æ¥ã¯ITã¤ã³ãã©ãç¹ã«OSã»ããã«ã¦ã§ã¢ãæ¯ããã«ããã£ã¦ãåé¡è§£æ±ºãå©ãã¦ãããã§ããã12åã®ã³ãã³ããåãä¸ãã¦ã¿ã¾ãããå¿ ãæ¼ããã¦ããããã5ã¤ã®ãã®ã¨ãæ´ã«è¦ããã¨ä¾¿å©ãªã³ãã³ãã7ã¤ã®2ç¯ã«åãã¦ã話ããã¾ãã â»CentOS 6.4 (64bit)ãåæã«åãä¸ãã¾ã å¿ ãæ¼ããã¦ããããã³ãã³ã ããITã¤ã³ãã©ç®¡çè ã«ãªããã¦ãªæ¹ã¯ãã² ãµã¼ããµã¤ãã®ããã°ã©ãããã£ã¦ããã®ã ããã©ãããæ¥çªç¶ãåããµã¼ã管çæ å½ãï¼ãã¨ãããã³ã渡ãããæ¹ã£ã¦ããã£ãããã¨æãã¾ããç§ã以åã¯ãã®ã¯ãã§ãã...ããããªã£ã¦ãã¾ã£ãã¨ããã¾ãã¯è¦ãã¦ãããã5ã¤
æ¬ç¨¿ã§ã¯ã"Immutable Infrastructure"æ代ã«ãããconfiguration management tool(以ä¸ãCMT)ã®è¦ä»¶ããã³ãããæºãããã¼ã«ã«ã¤ãã¦è°è«ããã èæ¯ã®æ´ç "Immutable Infrastructure"ã¨ã¯ã2013å¹´6æãTrash Your Servers and Burn Your Code: Immutable Infrastructure and Disposable Components - Chad Fowlerã«ããæå±ãããæ¦å¿µã ããã種ã®ããã°ã©ãã³ã°è¨èªã«ãããä¸å¤æ§ãããã°ã©ã ã«ãããåä»ãªåé¡ã解決ããããã«ããµã¼ãã®ç¶æ ãä¸å¤ãª(æ£ç¢ºã«ã¯ãç¶æ ãå¤æ´ããªã)ãã®ã¨ãããã¨ã§ãæé·ãç¶ããã½ããã¦ã§ã¢ã«ã¨ã£ã¦é¿ããããªããæéã®çµéã«ãããããããã種ã ã®åé¡ãã解決å¯è½ã§ããã¨ããã ããããã©ã®ãããª
(Monitoring Casual Talk in Kyotoã§çºè¡¨ãã¦ããã®ã§ãããã°ã¨ã³ããªã«ã¾ã¨ãç´ãã¾ãã) 2013å¹´ã¯ã¤ã³ãã©å¨ãã®æè¡çãªé²åã大ãããããã¤ãã®ã¨ããã¯ã¡ã¤ãã³ã°ãªæ¦å¿µã¨å®è£ ãç£ã¾ãã¾ãããå人çã«ã¯ç¹ã«ä»¥ä¸ã®2ã¤ã大ããã¨æã£ã¦ãã¾ãã AWSã®æ¬æ ¼æ®åæ Dockerã¨Immutable Infrastructure ããããè¸ã¾ãã¦ã2014å¹´ã®ã¦ã§ãã·ã¹ãã ã®é²åã®æ¹åæ§ãèãã¦ã¿ã¾ããã¾ããããã«ããã¢ãã¿ãªã³ã°ã¸ã®å½±é¿ããããã¦èãã¾ããã ãã¶é·ããªã£ã¦ãã¾ã£ãã®ã§ãæ¥ã人ã¯æå¾ã«çµè«ãã¾ã¨ãã¾ããã®ã§ããã¡ãããã©ãã! 2013å¹´ã¨ããæ代èæ¯ AWSãæ¬æ ¼æ®åæãè¿ãã¦ããã®ã¯ãè¨ãããããªã®ãã¨ã§ãRe:Inventã§ã®246件ã¨ããè¨å¤§ã®ã»ãã·ã§ã³æ°ãªã©ã«ãã®å¢ãã表ããã¦ãã¾ãã ã¾ããDockerã¯LXC (LinuX Conta
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}