ãããã¤ã³ã¿ã¼ããã移è¡è¨#3 ã¯ã¦ãªããã¯ãã¼ã¯ç§»è»¢
ãã¦ã移è¡è¨ã #3 ã¨ãªãã¾ãããä»åã¯å æ¥ä½æ¥ãçµããã¯ã¦ãªããã¯ãã¼ã¯ã®ç§»è»¢ã«ã¤ãã¦ã
æ§ãµã¼ãã¼ã«ã¼ã ãããããã¤ã³ã¿ã¼ãããã®iDCã¸ã®ãµã¼ãã¼ç§»è»¢ä½æ¥ã«ãã ãã¶æ £ãã¦æ¥ããã®ãããããã¾ã§ã¯æ¯è¼çã¯ã¦ãªå ã®ä»ãµã¼ãã¹ã¨ã®é£æºãçã«ãªã£ã¦ããããè² è·ãããã¾ã§é«ããªããã®ã§ãã£ããã¨ç§»è¡ãããããã®ããæã£ã¦ãã£ã¦ã¾ããããããããé£ããã¨ããæãä»ããææã«æ¥ã¾ãã¦ãã¯ã¦ãªããã¯ãã¼ã¯ã®ç§»è»¢ã§ãã
以åã«æ¸ãã はてなブックマークの裏側その後 - naoyaのはてなダイアリー ã§ã¯ 2006å¹´10ææç¹ã§
- ã¦ã¼ã¶ã¼: 60,000 人
- ããã¯ãã¼ã¯æ°: 787ä¸ä»¶
- ãµã¼ãã¼: 30å°
ã¨ãªã£ã¦ãã¾ããã移転ãããã®ããã¯ã¨ããã¨
- ã¦ã¼ã¶ã¼: 80,000 人
- ããã¯ãã¼ã¯æ°: 1,182ä¸ä»¶
- ãµã¼ãã¼: 移転åç´45å° (ç§»è»¢å¾ ç´25å°)
ã¨ããå ·åã«ãªã£ã¦ãã¾ãããé 調ã«ä¼¸ã³ã¦ãã¾ãã
ãµã¼ãã¼ã 40å°ãããã®ã§æ©ãã ã®ã§ããã
- å¤ããµã¼ãã¼ã¯æã£ã¦ãããªã
- æ°ãã iDC ã移ããã¡ãªãããçããã¦ãã·ã³åä½ã®æ§è½ãä¸ãã¦å°æ°ãæ¸ãã
- ã½ããã¦ã§ã¢ã®ã»ããã¢ããã«æéãããããªãããã«å·¥å¤«ãã
ã¨ããè¨ç»ã§ç§»è»¢ããããã¨ã«ãã¾ãããããããããµã¼ãã¼ã 20å°ã»ã© iDC ã«ã»ããã¢ãããã¦ããã¦ç§»è»¢åæ¥ã¾ã§ã«å¯è½ãªã¨ããã¾ã§æ§æ§æã¨ã®åæããã¦ããã¦ãå½æ¥ã¯æä½éã®ãµã¼ãã¼ã ããæã£ã¦ãããã¨ãããã®ã§ããã
ã¾ãæ°ãããµã¼ãã¼ã§ãããããã¾ã§ã®èªä½ãµã¼ãã¼ã¨ã¯ã¡ãã£ã¨è¶£åãå¤ã㦠Dell ã® PowerEdge SC1435 ã使ããã¨ã«ãã¾ãããAMD Opteron 2212HE (ä½æ¶è²»é»åã®ãã¥ã¢ã«ã³ã¢ Opteron 2.0GHz) x 2 ãæè¼ããã¦ããè²»ç¨å¯¾å¹æã®é«ããµã¼ãã¼ã§ãã
Opteron ã«æ±ºããçç±ã¯æ¶è²»é»åããµã¼ãã¼ã®ã©ãã¯ãã¦ã³ãã¯ããªãã¹ãããããã®ãµã¼ãã¼ãç©ããã¨è¦å¿ãã¦ããã¨å®ã¯é»åãé æã¡ã«ãªãã¨ããã®ãçµé¨ä¸åãã£ã¦ãã¾ããã1ã¤ã®ã©ãã¯ã«åãããã CPU ã®æ°ã¨ããã®æ°ã«ãã£ã¦å¾ãããæ§è½ãæ¶è²»é»åéãªã©ãç·åãã¦èããã¨ç¾æç¹ã§ã¯ Opteron ã®ä½æ¶è²»é»åçãæããã©ã³ã¹ãããããã ã¨ããå¤æã§ãã®ãµã¼ãã¼ã«ãã¾ããã
èªä½ã«ããªãã£ãã®ã¯ãCPU ã Opteron x 2 ã«ã㦠ECC buffered ãªã¡ã¢ãªã 4GB ç©ãã§...ã¨ããæ§æã§è¦ç©ãã£ãå ´åã«ãæè¿ã¯åç¨ã®ãµã¼ãã¼ã®ä¾¡æ ¼ãããªãããªãã¦ãããã¨ãããã³ã¹ãé¢ã§ã¡ãªãããåºããªãã£ããã¨ã iDC ãå°ççã«é¢ãã¦ããã®ã§èªä½ãµã¼ãã¼ã®é·æã§ããå³ç´ã§ãããã¨ãçãããªãã¨ãã£ãã¨ãããçç±ã§ããä¸æ¹ç¹æ®ãªãã¼ãã¦ã§ã¢æ§æã®å ´åã¯ãã¯ãèªä½ã®ã¡ãªãããæ大éçãããã®ã§ãä»å¾ã¯ã³ã¢ãã£ãã£ãªãµã¼ãã¼ã¯åç¨ã®1Uã§ããã以å¤ã¯èªä½ã®ãã®ãã¨ä¸¦è¡ãã¦ä½¿ã£ã¦ãããã¨æã£ã¦ãã¾ãã
移転ãããµã¼ãã¼ã«ã¯ MySQL ãåãããã¼ã¿ãã¼ã¹ãµã¼ãã¼ãçµæ§ãªæ°ãããã¾ããããã¯ã¦ãªããã¯ãã¼ã¯ã®å ´å OS ã®ãã¼ã¸ãã£ãã·ã¥ã«è¼ãåããªãåã®ãã¼ã¿ã«å¯¾ãããã£ã¹ã¯I/Oã§å¾ ãããã¦ããããããã«ããã¯ã«ãªãã®ã¯åãã£ã¦ãã¾ãããããã§ãã£ã¹ã¯å¨ãã®I/Oããã«ããã¯ã解æ¶ããããã«æ°ãã 3ware ã® RAID ã«ã¼ãã使ã£ã¦ã¿ã¾ããã
é¸ãã ã®ã¯ 3ware 9650SE-4LPML ã¨ãã SATA II ç¨ã® RAID ã«ã¼ãã§ããPCI-Express ã«æ¿ãã¦ä½¿ãã¾ããDell ã® 1U ã«ã¯ PCI-Express ã¹ãããã1ã¹ãããæ¡å¼µç¨ã«ç¨æããã¦ãã¦ãããã«æ¿ãã¦ä½¿ã£ã¦ã¾ãã(ä¸ã®åçã¯ã¯æ¤è¨¼æã«èªä½ãµã¼ãã¼ã«æ¿ãã¦ä½¿ã£ã¦ãã¨ããã)
ãã® RAID ã«ã¼ããé¸ãã ã®ã¯ WEB+DB PRESS ã®è¨äºã«ããªã£ã http://www.klab.org/media/mysql/index3.html ã®ã³ã©ã 㧠3ware ã®ã©ã¤ããã£ãã·ã¥ä»ãã«ã¼ããè¯ããããã¨åè©å¤ãèãã¦ããã®ããã£ããã§ãããªã³ã¯å ã®è¨äºã«ãæ¸ããã¦ãã¾ããããã®ã«ã¼ãã«ã¯ãã£ã¹ã¯ã¸ã®ã©ã¤ããä¸æ¦ãã£ãã·ã¥ããããã®ã¡ã¢ãªãè¼ã£ã¦ã¾ããã¾ãä¸æã®é»æºææã«ãã£ãã·ã¥ãå¹ã£é£ãã§ãã£ã¹ã¯ã®å 容ããããããªã£ã¦ãã¾ããªãããã«å é»å¼ã®ããããªã¦ããããä»ãã¦ãã¼ã¿ãä¿è·ãããã¨ãå¯è½ã«ãªã£ã¦ãã¾ãã
å®éã«è³¼å ¥ãã¦ã¿ã¦ RAID 0 / RAID 1 ã§è©ä¾¡ãã¦ã¿ã¾ããããLinux 2.6 ã§ã®åä½(ããã¤ã¹ãã©ã¤ãã¯ä»å±ãã¦ãã¾ããã2.6.19 以éã§ããã°ã«ã¼ãã«ã½ã¼ã¹ã«ãã©ã¤ããå«ã¾ãã¦ãã¾ãã) ãããã©ã¼ãã³ã¹ããããã¹ã¯ããã®ä¿¡é ¼æ§ãä¸ã ã§ããã製åã¯ã¦ã§ãã®é販ã§è³¼å ¥ãããããæ£è¦ä»£çåºãããã«ã¯ã§ã¾ã¨ãã¦è³¼å ¥ããã¨å®ãã£ãã§ããã¨ããããã¨ã§æ¯è¼çå®ä¾¡ã«é©åº¦ã«é«éãªã¹ãã¬ã¼ã¸ãæã«å ¥ãã¾ããããããã« SAS ã® RAID ã«æ¯ã¹ãã¨è¥å¹²ããã©ã¼ãã³ã¹ã¯è½ã¡ã¾ãããå®ä¾¡ãª SATA II ãã£ã¹ã¯ã大éè³¼å ¥ãã¦ããã°ãã¤ã§ãããã©ã¼ãã³ã¹ã®é«ãã¹ãã¬ã¼ã¸ãçµããã¨ããã®ã¯ãããã¯ã¼ã¯ã軽ãã¦è¯ãã§ããã
ãµã¼ãã¼ãã©ããã³ã°ã DB ã«ä½¿ããã·ã³ã¯ RAID ã«ã¼ããæ¿ãã¦ã»ããã¢ããããããã§ãããããã¯ç¾å°ä½æ¥ã«ãªãã¾ããè²ã ã¨ä½å使ãããã ãªãã¨æã£ã¦ãã¾ããããDell ã®ãµã¼ãã¼ã¯ãã¼ãã¦ã§ã¢ã®æ¡å¼µãã©ããã³ã°ã®éã«ä¸åãã¸æ¢ããå¿ è¦ã¨ããªã工夫ãããã¦ãã¦ãäºæ³ã«åãã¦ã¬ã¼ã«ã®åãä»ãã RAID ã«ã¼ãã®çµã¿è¾¼ã¿ããã£ã¹ã¯ã®åãå¤ãã©ããæãã®ã»ãç°¡åã«æ¸ãã§æ¥½ã§ãããDell++ã
ãã ã§ããããããã«ãµã¼ãã¼20å°ã¨ããªãã¨æ¢±å ããã¦ãç®±ããã®ã´ãããããéã«ãªãã¾ãã
ãããªå ·åã§ãä¸ç·ã«ä½æ¥ãæä¼ã£ã¦ããããã¤ãåãéæ¹ã«æ®ãã¦ãã¾ããããå¼ç¤¾ã®ããä¸äººã®ãã¤ãåã®çä»ãè½åãé常ã«é«ããä¸ã®åçãããã©ã¢ã¼ã§ãã¢ãã¿ã¼ã¯ä»¥ä¸ã®ããã«ãªãã¾ãããããããªãã§ããããã«ãããã
20å°ã§ãã®éã§ãããã1度ã«100å°ã¨ã1,000å°ã¨ãä½æ¥ãããµã¤ãã ã¨ã©ããªæããªãã§ãããããèããããªãã
ãã¦ããã¼ãã¯ãããªæãã§ãããä¸æ¹ã®ã½ããã¦ã§ã¢ãä»ã¾ã§ã¯ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã« Fedora Core ã使ã£ã¦ãã¾ããããCPU ã®ã¢ã¼ããã¯ãã£ã x86_64 ã«å¤ãããã¨ãããã FC 㯠Fedora Legacy ã®ãµãã¼ããçªç¶æ¢ã¾ã£ããã¨è²ã è³ãããªãç¶æ³ã ã£ãã®ã§ãä»å¾ã¯ CentOS ã使ããã¨ã«ãã¾ããã
ã¾ããå¼ç¤¾ã®ãµã¼ãã¼å¨ãã®ã¹ã¿ããã§èªç¤¾ç¨ã® yum ã¬ãã¸ããªãæ°è¨ãã¾ãããä¾ãã° mod_perl ã CPAN ã¢ã¸ã¥ã¼ã«ãªã©ããã©ããããµã¼ãã¼å¨ãã®ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«ã¯å ¨é¨ yum ã§ãApache / mod_perl ã®ãµã¼ãã¼ã«ã¯èªç¤¾ã§ä½ã£ã Apache ã¢ã¸ã¥ã¼ã«ãçµã¿è¾¼ãã ããã¦ããã¨ãããç°å¢æ§ç¯ãç ©éã«ãªã£ã¦ãã®ã§ãããRPM ã«ã¾ã¨ã㦠yum ã§ã¤ã³ã¹ãã¼ã«ã§ããããã«ãããããã§ããã®æéãã¼ãã«ãªãã¾ããã
å ãã¦ãOS ã®ã¤ã³ã¹ãã¼ã«ã PXE ãã¼ããããããã¯ã¼ã¯ã¤ã³ã¹ãã¼ã«ã§è¡ãããã«ãèªç¤¾ã®ãµããããã«ãã·ã³ãç¹ã㦠PXE ã§ãã¼ãããã㨠CentOS ã®ã¤ã³ã¹ãã¼ã«ãå§ã¾ããCPU æ°ããã£ã¹ã¯ã®æ°ã«åããã¦æé©ãªç°å¢ã§ã¤ã³ã¹ãã¼ã«ãè¡ãããã®å¾ã®ãããã¯ã¼ã¯è¨å®ã yum ããã®è¿½å ã½ããã¦ã§ã¢ã®ã¤ã³ã¹ãã¼ã«ããããã§è¡ãç°å¢ãä½ãã¾ããã(ã¤ã³ã¹ãã¼ã«ãå®äºããã¨ç¤¾å ã® IRC ã«ãããã¯ã¼ã¯ã¢ãã¬ã¹ã¨å ±ã«éç¥ãæ¥ãã¨ãããã¾ãã¤ããæ å½è ã®è¶ç®ã£æ°ã) 20å°ãµã¼ãã¼ãæ°è¨ããã¾ããããOS ã¤ã³ã¹ãã¼ã«ã¯ãããã¯ã¼ã¯ã«ç¹ãã§é»æºå ¥ãã¦æ¾ç½®ã§ããã£ãã®ã§é常ã«å©ããã¾ããã
ãããããOSã¤ã³ã¹ãã¼ã«ããã®ãé¢åã ããããã£ã¹ã¯ããã¨é害確çãä¸ãããããã¨ãã話ããã£ã¦ãä»å¾ã¯ iSCSI ã NFS ãã§ãã¹ã¿ãã¡ã¤ã«ãµã¼ãã¼ãä½ããPXE ãã¼ããã¦ããã root ãã¨ãã¦ã³ããã¦ãã£ã¹ã¯ã¬ã¹ã«ãããããªã¨è¨ç»ãã¦ãã¾ããã¾ãæè¿å··ã§è©±é¡ã® cfengine ã puppetãã¾ãä»®æ³åãªãããæ¤è¨ãã¤ã¤éç¨ã³ã¹ããä¸ããæ¹æ³ã模索ãã¦ãã¾ããæ¥æ¬ã®ãµã¼ãã¼å¨ãã¯éå»ã®ç°å¢ãããã®ã§ããç°¡åã«ã¯ãããªãã®ã§ãããã¢ã¡ãªã«ã®æ¹ã®ãµã¼ãã¼å¨ãã¯æ°è¦ãªã®ã§ãããã¿ããªãããã®æã®æ°ããç°å¢ã®å°å ¥ããããªãããããã§ãã
ãããªæãã§ç§»è»¢ã«åããã¦è²ã ãã¤ã¤ããããµã¼ãã¹åéããã¼ãã¦ã§ã¢ã®æ§è½ãä¸ãã£ããããã©ã¼ãã³ã¹ãç¸å½æå¾ ã§ãããã! ã¨æã£ãã®ã§ãããããªãã¦ã§ããµã¼ãã¼ãéè² è·ã«ãªã£ã¦èºãã¾ãããçµæ§ç¦ãã¾ããã調ã¹ã¦ãããã¡ã« Perl ã®ãã¤ããªã«åé¡ããããã¨ãããããåé¡ç®æã®ããããæãã RPM ãä½æããªããã¦äºãªããå¾ã¾ããã
以ä¸ã®ä½æ¥ã§ãµã¼ãã¼å°æ°ã¯åæ°è¿ãã¾ã§æ¸ã£ã¦ãä¸æ¹ã®ããã©ã¼ãã³ã¹ã¯æ°å以ä¸ã«åä¸ããããã«æãã¾ãããããã¤ã³ã¿ã¼ãããã®iDCã«ç§»è»¢ãããã¨ã§åç·å質ãåä¸ãã¾ãããã移è¡ããå½åã«æéãããã¦æ§ç¯ããåé·æ§ã®é«ããããã¯ã¼ã¯ã·ã¹ãã ã«åã¾ããã¨ãã§ãã¦èé害æ§ãã¬ãã«ã¢ããããããã¨ãã§ãã¾ãããRAID ã«ã¼ãå°å ¥ã«ãããã£ã¹ã¯I/Oã®è»½æ¸å ·åã絶好調ã§ãã
移転ã«ä¼´ã£ã¦èããå¿ è¦ã®ãããã¨ããããããã大å¤ã§ããããçµæå¿é ãã¨ãè²ã ã¨ãªããªã£ã¦æ¯æ¥è¯ãç ããããã«ãªãã¾ãããå¤ãããã¾ã§ã«ã¯ããå¼·åºã§éç¨ã³ã¹ãã®ä½ãã·ã¹ãã ãæ§ç¯ãã¦ãä¸çªå¤§ããªãµã¼ãã¹ã®ã¯ã¦ãªãã¤ã¢ãªã¼ã®ç§»è»¢ãçµããããªãã¨æã£ã¦ãã¾ããããã¾ãã
# ãªããååå¿é ãããæ¹ãããææããã ãã¾ããããé常 iDC å ã§ã®åçæ®å½±ã¯ç¦æ¢ã§ãããã®åçã¯äºåã«ãããã¤ã³ã¿ã¼ãããããã«æ®å½±è¨±å¯ãããã ãã¦æ®å½±ãã¦ãããã¨ãè¨è¼ãã¦ããã¾ãã