Immutable ï¼ä¸å¤ãªï¼ Infrastructure ã¯ããµã¼ããä¸åº¦ã»ããã¢ãããããäºåº¦ã¨å¤æ´ãå ããªãã¨ããéç¨ã¹ã¿ã¤ã«ã®ãã¨ãæãã¾ãã ã¯ã©ã¦ãç°å¢ã§ã¯ãå¿ è¦ã«å¿ãã¦ããã«ãµã¼ããç¨æããä¸è¦ã«ãªã£ããç°¡åã«ç ´æ£ãããã¨ãã§ãã¾ããImmutable Infrastructure ã¯ããã®ãããªã¯ã©ã¦ãã®ç¹æ§ãæ´»ããéç¨ã¹ã¿ã¤ã«ã¨ãã¦ã注ç®ããã¤ã¤ããã¾ãã èæ¯ Immutable Infrastructure ãæå±ãããèæ¯ã«ããæè¡ã¨ãã¦ã Auto Scaling ã Blue-Green Deployment*1 ãªã©ãããã¾ãã Auto Scaling Auto Scaling ã¯ãè² è·ã«å¿ãã¦èªåçã«ãµã¼ãå°æ°ãå¢æ¸ãããæè¡ã§ã AWS ã§ã¯æ¨æºã§æä¾ããã¦ãã¾ãã常ã«å¿ è¦ãªå°æ°ã ãèµ·åãã¦ããã°ããã®ã§ãã³ã¹ãåæ¸ã«ãªãã¨ãããã®ã§ãã Auto S
ããæè¿ã®ã¤ã³ãã©ç³»æè¡ã®æµããããããããªã¼ãã¨æã£ãã®ã§ãPuppet ãåºã辺ãããããããæ¯ãè¿ã£ã¦æ´çãã¦ã¿ããæ®´ãæ¸ããªã®ã§ãå¾ããä¿®æ£ãããæ¸ãå ããããããããç¹ã«å¾åã®æ¹ã¯ããã¾ãèããæ´çã§ãã¦ãªãã æè¿ã®ã¦ã§ãçéã§ã®ãã¤ã³ãã©ãã¨ããç¨èªã®ä½¿ããæ¹ã«ã¯ãè²ã ç°è«ãããããã ãã©ãããã§ã¯ããæè¿ä½¿ãããããã«ãªã£ã¦ãããOS ããããã«ã¦ã§ã¢ã¨ãã£ãã½ããã¦ã§ã¢ã¬ã¤ã¤ã¼ãæãè¨èã¨ãã¦ã®ã¤ã³ãã©ã«ã¤ãã¦è§¦ãããï¼è±èªåã§ãåæ§ã®æå³ã§ä½¿ããã¦ãããããªã®ã§ãããç¨åº¦å¸æ°æ¨©ãå¾ãã¨è¨ã£ã¦ãè¯ãããã ããï¼ ãããã¸ã§ãã³ã°ã¬ã¤ã¤ã¼ ã¾ããåæç¥èã¨ãã¦ãããã¸ã§ãã³ã°ã¬ã¤ã¤ã¼ã¨èªåãåæã«å¼ãã§ããã®ã«ã¤ãã¦æ´çã Chef ã Puppet ã¯ããããã¸ã§ãã³ã°ãã¬ã¼ã ã¯ã¼ã¯ãã¨ãå¼ã°ãã¦ãããã以ä¸ã®è°è«ãããå³å¯ã«ããããã«ãLee Thompson æ°ã«ãã
ããæè¿ããµã¼ãã®è¨å®ãã¡ã¤ã«ã®ç®¡ç㧠Chef ã使ãå§ãã¦ãããã¾ã å ¨ç¶è©³ãããªããã©ãä»æãã¦ãããChefã®æ¥½ãããã誰ãã«ä¼ãã¦ããããã£ãã®ã§ããã¡ã¼ã¹ãã¤ã³ãã¬ãã·ã§ã³ãç°¡åã«ã Puppetãä»ã¾ã§ãããã使ã£ã¦ããã®ã§ãã©ããã¦ãããã¨ã®æ¯è¼ãªæãã«ãªã£ã¡ããã¾ããPuppetãè¯ãã®ã ãã©ãChefã¯å¾çºã¨ãããã¨ã§ããã«è¯ããªã£ã¦ããæãã åºæ¬çãªä»çµ ããã¯ãPuppetã¨ã»ã¼åããã¯ã©ã¤ã¢ã³ã-ãµã¼ãåã®ã·ã¹ãã ãè¨å®ãæ¸ããããããµã¼ãã«ç½®ãã¦ãããã¯ã©ã¤ã¢ã³ãã¯ãµã¼ãã¨æ¥ç¶ããèªåèªèº«ã®è¨å®ãæ¸ãæããããå¿ è¦ãªã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ãããããã rubyãªè¨å®ãã¡ã¤ã« Puppetã¯åºæ¬çã«ç¬èªDSLã§è¨å®ãã¡ã¤ã«ãè¨è¿°ãã®ã§ãè¦ããã®ãããã©ãããããç´°ãããã¨ãã¡ãã£ã¨ç¡è¶ãªãã¨ããããã¨ããã¨å¤§å¤ããChefã®è¨å®ãã¡ã¤ã«ã¯rubyãã®ãã®ãªã®ã§
AWSã¯ã©ã¦ããã¶ã¤ã³ãã¿ã¼ã³ã¨ã¯ï¼ AWSã¯ã©ã¦ããã¶ã¤ã³ãã¿ã¼ã³ (AWS Cloud Design Pattern, ç¥ãã¦CDPã¨å¼ã¶)ã¨ã¯ãAWSã¯ã©ã¦ãã使ã£ãã·ã¹ãã ã¢ã¼ããã¯ãã£è¨è¨ãè¡ãéã«çºçãããå ¸åçãªåé¡ã¨ããã«å¯¾ãã解決çã»è¨è¨æ¹æ³ããåãããããåé¡ãã¦ããã¦ãã¦ã¨ãã¦å©ç¨ã§ããããã«æ´çãããã®ã§ããã ããã¾ã§å¤ãã®ã¯ã©ã¦ãã¢ã¼ããã¯ãéãçºè¦ãã¦ããããããã¯ç·¨ã¿åºãããè¨è¨ã»éç¨ã®ãã¦ãã¦ã®ãã¡ãã¯ã©ã¦ãä¸ã§å©ç¨ãå¯è½ãªãã®ãã¯ã©ã¦ããã¶ã¤ã³ã®ãã¿ã¼ã³ã¨ããå½¢å¼ã§ä¸è¦§åããæé»ç¥ããå½¢å¼ç¥ã«å¤æãããã®ã§ããã¨ãããã ãã¿ã¼ã³ã®ä¸ã«ã¯ãã¯ã©ã¦ãã§ãªãã¦ãå®ç¾ã§ãããã®ãä»ã¾ã§ã§ãå®ç¾ããã¦ãããã®ãå«ã¾ãã¦ããããã¯ã©ã¦ãä¸ã§ãä»ã¾ã§éãã®ã¢ã¼ããã¯ãã£ãå®ç¾ã§ãããã¤ã¯ã©ã¦ããå©ç¨ããäºã§ãããå®ä¾¡ã«ããã¦ãã容æã«å®ç¾ã§ãããã®ã¯ãCDPã¨ãã¦å
kazuhoããããããã®ãµã¼ã管çè ã®éã§ã¯åå¨ä¾¡å¤ãçåè¦ããã¦ä¹ ãã (Min|Max)SpareServers ã ã¨æããã¨æ¸ããããhirose31ãããå»å¹´ã®YAPC::Asiaã§{Start,{Min,Max}Spare}Servers,MaxClientsã¯åãã«ãã¦ãããã¨çºè¡¨ããããå®éåè·ã®ãµã¼ãã¯ãã®ããã«è¨å®ããã¦ããã®ã§ãããèªåã§ãã¾ã説æãã§ãã¦ãªãã£ãã®ã§ã調ã¹ãªããæ¸ãã¦ã¿ãã æ¬å½ã¯ã¤ã³ãã©ããã°ç¨ã«æ¸ãã¦ãããã®ã§ãããããã°ã£ãã®ã§è»¢è¼ã åæã¨ãã¦ãCPUã®ä½¿ç¨çã«ãããsystemã¨fork Re: ã¯ã©ã¦ãããããã¯ã¼ã¯ã²ã¼ã éçºè ã«ããããã¦ããããã® - blog.nomadscafe.jpã§ãæ¸ãã¦ããéãforkã£ã¦ã®ã¯ãµã¼ãã«ã¨ã£ã¦éãé¨é¡ã®å¦çã«ãªãã¾ããã¤ã¾ãè² è·ã®é«ãã¨ãã«forkã大éã«è¡ãã®ã¯ãã¦ã¯ãªããªããã¨ã®ï¼ã¤ã§ãã
ã¯ã¦ãªã®ãµã¼ãããããã¯ã¼ã¯ã®å種æé©åããã¼ãã¦ã§ã¢é¸å®ãéç¨ä¿å®ãªã©ãæåºãæ å½ããid:halfrackãã¨ææ¾éä»ã¨ç³ãã¾ãããã¼ãã¦ã§ã¢ãªããªãã§ã大好ãã§ããããããã¾ã§è¶£å³ã¨å®çãå ¼ããæ¥ã ãéããã¦ããã¾ãããã¦ããã®ä¸ã«ã¯ããããã®æãã¹ããã¼ãã¦ã§ã¢ãããããã§ããããã®ãªãã§ãçè ãç¹ã«æãããã¼ãã¦ã§ã¢ããã¯ã¦ãªã®ãµã¼ãã¹ãæ¯ãããµã¼ã群ã§ãããã¾ã覧ããã ãã¦ãããã®ãã¼ã¸ããæãããµã¼ã群ãæ£ããåä½ãã¦ããï¼ ãã®ãã¯ã¦ãªã®ãµã¼ãã¹ãæ¯ãããµã¼ãã®ã»ã¨ãã©ã¯ããããã¤ã³ã¿ã¼ãããæ§ã®ãã¼ã¿ã»ã³ã¿ã¼ã«è¨ç½®ãã¦ãã¾ãã ï¼â»ãã®è¨äºã¯ãããã¤ã³ã¿ã¼ãããã®æä¾ã«ããPRè¨äºã§ãï¼ â ãä¸2ç ãå®ç¾ãã¨èªããã¼ã¿ã»ã³ã¿ã¼ ç³ç©ãã¼ã¿ã»ã³ã¿ã¼ã®è¦å¦ãæ¡å ãã¦ãããããããã¤ã³ã¿ã¼ããã åç· å½¹ å¯ç¤¾é·ã®èéããããªã«ã話ãã¦ãã¦ãæè¡åã¨ã³ã¹ãæè¦ã®ãã©ã³ã¹ãããã
ããã£ãï¼DBA å ¼ãªãã¬ã¼ã·ã§ã³ã¨ã³ã¸ãã¢å ¼ã¿ã¹ã¯ããã¼ã¸ã£ãã£ã¦ã riywo ã§ããä½ã®ãã¿ãæ¸ããããªãã¨èããã®ã§ãããæ£ç´ãã¿ãä»è¾¼ãæéããªãã£ãã®ã§åããã¤ããã£ã¦ããã¨ãããã£ã¨ç´¹ä»ããã¨ãããã¨ã§åå¼ãã¦ä¸ããï¼ï¼ MySQL ãããããï¼ 03:14 hidek: ãªããã¨ã©ã¼åºã¾ãã£ã¦ããã ãã©ï¼ 03:14 zigorou: MySQL ã¨éä¿¡ãã¦ãã¨ãã£ã½ã 03:15 riywo: è¦ã¾ã ãããªããã¨ãã¯çããæ¥å¸¸è¶é£¯äºã§ãããï¼ãï¼ãï¼ãããªæã«ãDB ã«è²¬ä»»ãæã¤ãã®ã¨ãã¦çã£å ã«å¯¾å¿ããã®ãåãã®ä»äºã§ããã§ãããããå ·ä½çã«ãã®ãã¨ä½ããã¾ãããï¼æ¢ã«ãµã¼ãã¹ã¯ã¨ã©ã¼ã ããã§ä¸å»ãäºãç¶æ ã§ãã (対å¿éå§) ã¾ãã¯ã¨ã©ã¼ã¡ãã»ã¼ã¸ ä»åã®æ§ãªå ´åã¯ã¢ããªã®ã¨ã©ã¼ãã°ã«ã©ã°ã£ã¨ MySQL ã«é¢ããã¨ã©ã¼ãåºã¦ããã§ããããã¾ãã¯ãããè¦ããã¨ãå§ã¾
以åã«ãæ¸ãã¾ãããç§ã¯æãã¼ã¿ã«ãµã¤ãã®ã·ã¹ã¢ããå ¼ããã°ã©ãããã¦ãã¾ããæã ï¼åããï¼åãã¼ã¸ãã¥ã¼ãè£ãã¦ãã¾ãããã·ã¹ãã ã®ä¸çªå¤§ããªã³ã¹ãã¯ãã©ãã£ãã¯ã§ãã 100MBitå°æã¨ã¾ã§ãªãã¨æï¼ï¼ä¸ã¯è»½ãè¡ãã¾ããããã§ã¨ã«ãããã¼ã¸ãã¥ã¼ããããªããããã©ãã£ãã¯ãæ¸ãããã¨æ¥ã åªåãã¦ãã¾ãããã®è¨äºã®ç®çã¯ãã¦ã¸ã³ã°ãµã¼ãã¹ããã¢ãã¾ã³ã®ã¯ã©ã¦ãããã³ãã«ç§»è¡ããæåä¾ï¼ã¾ãã¯å¤±æä¾ï¼ã«ã¤ãã¦æ¸ãã¦ããã¾ãã ã¾ãã第ä¸åã¯æ¢åã®ã·ã¹ãã ï¼éçãã¡ã¤ã«ç¨ã®ãµã¼ãï¼ã«ã¤ãã¦ç°¡åã«èª¬æãã¾ããé·å¹´ãçµé¨ãç©ã¿ãªããè¡ã£ãè¨å®ã§ããããã¾ã§ãããµã¼ãã®ã¹ããã¯ããµã¤ãã®ç¨éã«ãã£ã¦ãéã£ã¦ãã¾ãã OSï¼ Gentoo HTTP Serverï¼ æè¿lighttpdããã¾ãApache㸠â»lighttpdã¯ãã®ãããã©ã¤ãã¦ã§ã¤ãã ãããã°ã®å¯¾å¿ãé ããã¬ã³ãã¬Made
ã¢ã¼ããã¯ãã£ã«é¢ãã質åã¨ãã¦ããââã®ä»çµã¿ã£ã¦ã©ããªã£ã¦ãã®ãã¨ãããããªãã¨ãèããã¦ãã説æä¸æãªãããããªããªãå£ã§èª¬æã§ããªããã¨ããããããã§ãUTSL (ã½ã¼ã¹èªãã°ããã)ãã¨è¨ããããã ãã©ããã¨ãã£ã¦å®éã«ããããèªãã¨ããããããªãããªãã¨ãã話ã«ããã¥ãããå ¥éçãªã³ã¼ãã¯ãã¾ãã«ãåç´ããã¦éå±ã ãããã¨ãã£ã¦ä½ãé©å½ãªèåãªãããã¯ãã®ã½ã¼ã¹ããããããæ軽ã«èªããã¨ããæãã§ã¯ãªãã ãã¦ãåã¨ã³ããªã§ epoll(7) ãã select(2) ããã®å é¨ã®èª¬æãããããã ãã©ãå¼ã³åºãå´ãã©ããªã£ã¦ããã®ãã¨ããé¨åã®ã¤ã¡ã¼ã¸ãã¤ãããªããã°ãçæè½ã¡ãã¨ãããæå³ä¸æã ããã¨ããããã«æã£ãã®ã§ãæ¥ããã®ãã§ãç°¡åãªã·ã³ã°ã«ã¹ã¬ããã®ã¤ãã³ãã«ã¼ããã¼ã¹ã® (twisted ã£ã½ã) TCP ECHO ãµã¼ããæ¸ãã¦ã¿ãã é»è»ã®ä¸ã§ãèªããã¨ããã³
Rubyã®ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯Ramazeãã¨ã£ã¦ãã¨ã£ã¦ãç´ æµãªã®ã§ããã ãã¾å®é¨ã¨ãã¦ããããªãã®ãä½æãã¦ããã¾ããHTTPdã«ã¯ä»è©±é¡ã®thinã使ããããªãã¨æã£ã¦ããã®ã§ããããããªãã¨èããªããã°ãªããªãã®ããªãã¼ã¹ãããã·ã§ãããã"reverse proxy rails" ãããã§æ¤ç´¢ããã¨çã£å ã«apacheã®è¨å®æ¹æ³ãåºã¦ããããã§ããããªãã§ãapacheã¨ããã®ãã©ãããªãã¨æãã¾ãããè¨å®ãç ©éã«ãªãã¾ããããããã§ãªãã¼ã¹ãããã·ã§ãã varnish ã試ãã¦ã¿ã¾ãããvarnishã«é¢ããããã¥ã¡ã³ãã¯ãã¾ãå¤ããªãã®ã§ãããvarnish ã¯ã¨ã£ã¦ãç°¡åãªã®ã§ç´ æ´ããã¨æãã¾ãããã£ããã§ããããvarnishã«é¢ããè¨å®æ¹æ³ãªã©ãç°¡åã«ã¾ã¨ãã¦ããããã¨æãã¾ãããªããç§ã¯ãµã¼ãã§ãã£ã¦ã ubuntu ã使ã£ã¦ããã¾ãã®ã§ï¼ææãï¼ï¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}