ããŠããã¹ãã¯ã©ã¹ã¿ãŒãã»ããã¢ããããŸãããå®éã®ã¯ã©ã¹ã¿ãŒã«è¿ã¥ãã骚ã§çœå®³ãåæããŸãã ãã¹ãŠã®ããã©ãŒãã³ã¹ã®äœäžã枬å®ããã¡ã¢ãªãªãŒã¯ãèŠã€ãããµãŒãã¹å埩ã®ããã»ã¹ãåæããŸãã ãããŠããã¹ãŠãèœãšãç©Žã®ç 究ã«ã»ãŒ1幎ãè²»ãããArtemy Kapitulaã®ãªãŒããŒã·ããã®äžã§ãã¯ã©ã¹ã¿ãŒã®ããã©ãŒãã³ã¹ãäœäžãããŒãã«èœã¡ããã¬ã€ãã³ã·ãŒãäžé©åãªå€ã«ãžã£ã³ãããŸããã§ããã ãããŠãç§ã¯èµ€ãã°ã©ããåŸãŸãããããã¯ã¯ããã«è¯ãã§ãã
次ã«ã DevOpsConf Russia 2018ã®æé«ã®ã¬ããŒãã®1ã€ã®ãããªããã³ããã¹ãããŒãžã§ã³ãèŠã€ããŸãã
ã¹ããŒã«ãŒã«ã€ããŠïŒ Artemy Kapitulaã·ã¹ãã ã¢ãŒããã¯ãRCNTECã å瀟ã¯ãIPãã¬ãã©ããŒïŒã³ã©ãã¬ãŒã·ã§ã³ããªã¢ãŒããªãã£ã¹ã®çµç¹ããœãããŠã§ã¢ããã¡ã€ã³ãã¹ãã¬ãŒãžã·ã¹ãã ãé»æºç®¡ç/é é»ã·ã¹ãã ïŒã®ãœãªã¥ãŒã·ã§ã³ãæäŸããŠããŸãã å瀟ã¯äž»ã«äŒæ¥éšéã§åããŠãããããDevOpsåžå Žã§ã¯ããŸãç¥ãããŠããŸããã ããã§ããå€ãã®ãããžã§ã¯ãã§ã¹ãã¬ãŒãžã€ã³ãã©ã¹ãã©ã¯ãã£ã®åºæ¬èŠçŽ ãšããŠäœ¿çšãããŠããCephã«ã¯ãããçšåºŠã®çµéšãèç©ãããŠããŸãã
Cephã¯ãå€ãã®ãœãããŠã§ã¢ã³ã³ããŒãã³ããæã€ãœãããŠã§ã¢å®çŸ©ã®ãªããžããªã§ãã
å³ã§ã¯ïŒ
- äžäœã¬ãã«ã¯ãã¯ã©ã¹ã¿ãŒèªäœãéä¿¡ããå éšã¯ã©ã¹ã¿ãŒãããã¯ãŒã¯ã§ãã
- äžäœã¬ãã«-å®éã«ã¯Ceph-ã¯ãããŒã¿ãæ ŒçŽããå éšCephã®ããŒã¢ã³ïŒMONãMDSãããã³OSDïŒã®ã»ããã§ãã
å³ã§ã¯ããããã3ã€ã®OSDãæã€3ã€ã®ã°ã«ãŒããç¹å¥ã«éžæããŠããããããã®åã°ã«ãŒãã«ã¯éåžž1ã€ã®ããŒã¿ã¬ããªã«ãå«ãŸããŠããŸãã ãã®çµæãããŒã¿ã¯3ã€ã®ã³ããŒã«ä¿åãããŸãã
é«ã¬ãã«ã®ã¯ã©ã¹ã¿ãŒãããã¯ãŒã¯ã¯ãCephã¯ã©ã€ã¢ã³ããããŒã¿ã«ã¢ã¯ã»ã¹ããããã®ãããã¯ãŒã¯ã§ãã ãããä»ããŠãã¯ã©ã€ã¢ã³ãã¯ã¢ãã¿ãŒãMDSïŒå¿ èŠãªãŠãŒã¶ãŒïŒãOSDãšéä¿¡ããŸãã åã¯ã©ã€ã¢ã³ãã¯ãåOSDããã³åã¢ãã¿ãŒãšç¬ç«ããŠåäœããŸãã ãããã£ãŠã ã·ã¹ãã ã«ã¯åäžé害ç¹ããªããã ãéåžžã«åã°ããããšã§ãã
ã客ããŸ
âS3ã®ã客æ§
S3ã¯HTTPçšã®APIã§ãã S3ã¯ã©ã€ã¢ã³ãã¯HTTPäžã§åäœããCeph Rados GatewayïŒRGWïŒã³ã³ããŒãã³ãã«æ¥ç¶ããŸãã ãããã¯ã»ãšãã©ã®å Žåãå°çšãããã¯ãŒã¯ãä»ããŠã³ã³ããŒãã³ããšéä¿¡ããŸãã ãã®ãããã¯ãŒã¯ïŒS3ãããã¯ãŒã¯ãšåŒã³ãŸãïŒã¯HTTPã®ã¿ã䜿çšããŸãããäŸå€ã¯ãŸãã§ãã
âä»®æ³ãã·ã³ãåãããã€ããŒãã€ã¶ãŒ
ãã®é¡§å®¢ã°ã«ãŒãã¯ãã䜿çšãããŸãã ãããã¯ã¢ãã¿ãŒããã³OSDã§åäœããããããã¯ã©ã¹ã¿ãŒã®ç¶æ ãšããŒã¿ã®ååžã«é¢ããäžè¬æ å ±ãåãåããŸãã ããŒã¿ã®å Žåããããã®ã¯ã©ã€ã¢ã³ãã¯ãã¯ã©ã¹ã¿ãŒãããªãã¯ãããã¯ãŒã¯ãä»ããŠOSDããŒã¢ã³ã«çŽæ¥ã¢ã¯ã»ã¹ããŸãã
âRBDã¯ã©ã€ã¢ã³ã
ç©ççãªBRéå±ãã¹ãããããéåžžã¯Linuxã§ãã RBDã¯ã©ã€ã¢ã³ãã§ãããCephã¯ã©ã¹ã¿ãŒå ã«æ ŒçŽãããŠããã€ã¡ãŒãžïŒä»®æ³ãã·ã³ã®ãã£ã¹ã¯ã€ã¡ãŒãžïŒã«ã¢ã¯ã»ã¹ããŸãã
âCephFSã¯ã©ã€ã¢ã³ã
ã¯ã©ã€ã¢ã³ãã®4çªç®ã®ã°ã«ãŒãã¯ãŸã å€ããããŸããããé¢å¿ãé«ãŸã£ãŠããŸãããCephFSã¯ã©ã¹ã¿ãŒãã¡ã€ã«ã·ã¹ãã ã¯ã©ã€ã¢ã³ãã§ãã CephFSã¯ã©ã¹ã¿ãŒã·ã¹ãã ã¯ãå€ãã®ããŒãããåæã«ããŠã³ãã§ãããã¹ãŠã®ããŒããåãããŒã¿ã«ã¢ã¯ã»ã¹ããŠãåOSDãšé£æºããŸãã ã€ãŸããã²ãŒããŠã§ã€èªäœã¯ãããŸããïŒSambaãNFSãªã©ïŒã åé¡ã¯ããã®ãããªã¯ã©ã€ã¢ã³ãã¯Linuxã§ãããªããããªãæ°ããããŒãžã§ã³ã§ãããšããããšã§ãã
åœç€Ÿã¯äŒæ¥åžå Žã§åããŠãããESXiãHyperVãªã©ãæ¯é ããŠããŸãã ãããã£ãŠãäŒæ¥éšéã§äœããã®åœ¢ã§äœ¿çšãããŠããCephã¯ã©ã¹ã¿ãŒã¯ãé©åãªææ³ããµããŒãããå¿ èŠããããŸãã Cephã§ã¯ããã ãã§ã¯äžååã ã£ããããã³ã³ããŒãã³ãã䜿çšããŠCephã¯ã©ã¹ã¿ãŒãæ¹è¯ããã³æ¡åŒµããå¿ èŠããããŸãããå®éã«ã¯ãããŒã¿ãæ ŒçŽããããã®ç¬èªã®ãã©ãããã©ãŒã ã§ããCeph以å€ã®ãã®ãæ§ç¯ããŸããã
ããã«ãäŒæ¥éšéã®ã¯ã©ã€ã¢ã³ãã¯Linuxã䜿çšããŠããŸããããã»ãšãã©ã®å ŽåWindowsãå Žåã«ãã£ãŠã¯Mac OSã¯Cephã¯ã©ã¹ã¿ãŒã«ç§»åã§ããŸããã ãããã¯ããçš®ã®ã²ãŒããŠã§ã€ãééããå¿ èŠãããããã®å Žåã¯ããã«ããã¯ã«ãªããŸãã
ããããã¹ãŠã®ã³ã³ããŒãã³ããè¿œå ããå¿ èŠãããããããã«å¹ ã®åºãã¯ã©ã¹ã¿ãŒãåŸãããŸããã
2ã€ã®äžå¿çãªã³ã³ããŒãã³ãããããŸããSCSIGateways ã°ã«ãŒã㯠ãFibreChannelãŸãã¯iSCSIãä»ããŠCephã¯ã©ã¹ã¿ãŒå ã®ããŒã¿ãžã®ã¢ã¯ã»ã¹ãæäŸããŸãã ãããã®ã³ã³ããŒãã³ãã¯ãHyperVããã³ESXiãCephã¯ã©ã¹ã¿ãŒã«æ¥ç¶ããããã«äœ¿çšãããŸãã PROXMOXã¯ã©ã€ã¢ã³ãã¯ãRBDãä»ããŠç¬èªã®æ¹æ³ã§åäœããŸãã
ãã¡ã€ã«ã¯ã©ã€ã¢ã³ããã¯ã©ã¹ã¿ãããã¯ãŒã¯ã«çŽæ¥å ¥ããªãããã«ããããã€ãã®ãã©ãŒã«ããã¬ã©ã³ãã²ãŒããŠã§ã€ãå²ãåœãŠãŸãã åã²ãŒããŠã§ã€ã¯ãNFSãAFPããŸãã¯SMBãä»ããŠãã¡ã€ã«ã¯ã©ã¹ã¿ãŒã·ã¹ãã ãžã®ã¢ã¯ã»ã¹ãæäŸããŸãã ãããã£ãŠãLinuxãFreeBSDããŸãã¯ã¯ã©ã€ã¢ã³ãããµãŒããŒïŒOS XãWindowsïŒã ãã§ãªããã»ãŒãã¹ãŠã®ã¯ã©ã€ã¢ã³ããCephFSã«ã¢ã¯ã»ã¹ã§ããŸãã
ããããã¹ãŠã管çããããã«ãå®éã«ç¬èªã®CephãªãŒã±ã¹ãã¬ãŒã¿ãŒãšãå€æ°ã®ã³ã³ããŒãã³ãããã¹ãŠéçºããå¿ èŠããããŸããã ããããããã«ã€ããŠè©±ãã®ã¯æå³ããããŸããããããç§ãã¡ã®éçºã ããã§ãã ã»ãšãã©ã®äººã¯ããŸã ã裞ã®ãCephèªäœã«èå³ããããŸãã
Cephã¯é »ç¹ã«äœ¿çšãããå Žåã«ãã£ãŠã¯é害ãçºçããŸãã 確ãã«ãCephã§åããã¹ãŠã®äººãCloudMouseã®äŒèª¬ãç¥ã£ãŠããŸãã ããã¯ã²ã©ãéœåžäŒèª¬ã§ããããã¹ãŠãèŠãç®ã»ã©æªãã¯ãããŸããã Rosreestrã«ã€ããŠã®æ°ããããšã話ããããŸãã Cephã¯ã©ãã§ãå転ããŠããããã®å€±æã¯ã©ãã«ã§ããããŸããã ã©ããã§èŽåœçã«çµäºããã©ããã§ããã«çµæãæé€ããããšãã§ããŸããã
æ®å¿µãªããããã¬ãã£ããªçµéšãå ±æããããšã¯æ £ç¿ã§ã¯ãªãã誰ããé¢é£æ å ±ãé ãããšããŠããŸãã å€åœäŒæ¥ã¯ããå°ããªãŒãã³ã§ããç¹ã«ãDigitalOceanïŒä»®æ³ãã·ã³ãé åžããæåãªãããã€ããŒïŒãã»ãŒ1æ¥éCephã«å€±æããŸãããããã¯4æ1æ¥ã§ãã-çŽ æŽãããæ¥ã§ãïŒ åœŒãã¯ãããã€ãã®ã¬ããŒãã以äžã®çããã°ã«æçš¿ããŸããã
åé¡ã¯åå7æã«å§ãŸãã11æã«äœãèµ·ãã£ãŠããã®ããç解ãã倱æãæé€ãå§ããŸããã ãããè¡ãããã«ã圌ãã¯2ã€ã®ã³ãã³ããå²ãåœãŠãŸããã1ã€ã¯äœããã®çç±ã§ãµãŒããŒãå®è¡ããããã«ã¡ã¢ãªãã€ã³ã¹ããŒã«ãããã1ã€ã¯äœããã®çç±ã§ãµãŒããŒãæåã§èµ·åãããã¹ãŠã®ãµãŒããŒã泚ææ·±ãç£èŠããŸããã ãªãã§ïŒ ã¯ã³ã¯ãªãã¯ã§ãã¹ãŠããªã³ã«ããããšã«æ £ããŠããŸãã
åæ£ã·ã¹ãã ãå¹æçã«æ§ç¯ãããã»ãŒãã®æ©èœã®éçã§åäœããå Žåãåºæ¬çã«äœãèµ·ããã§ããããïŒ
ãã®è³ªåã«çããã«ã¯ãCephã¯ã©ã¹ã¿ãŒã®æ©èœãšé害ã®çºçæ¹æ³ã調ã¹ãå¿ èŠããããŸãã
Cephé害ã·ããªãª
æåã¯ãã¯ã©ã¹ã¿ãŒã¯æ£åžžã«æ©èœãããã¹ãŠãæ£åžžã«æ©èœããŠããŸãã ãã®åŸãäœããçºçãããšãããŒã¿ãä¿åãããŠããOSDããŒã¢ã³ã¯ãã¯ã©ã¹ã¿ãŒã®äžå€®ã³ã³ããŒãã³ãïŒã¢ãã¿ãŒïŒãšã®æ¥ç¶ã倱ããŸãã ãã®æç¹ã§ãã¿ã€ã ã¢ãŠããçºçããã¯ã©ã¹ã¿ãŒå šäœãé¢äžããŸãã ã¯ã©ã¹ã¿ãŒã¯ãäœããããããããšã«æ°ä»ããŸã§ãã°ããåŸ æ©ãããã®åŸãå éšã®ç¥èãä¿®æ£ããŸãã ãã®åŸãã«ã¹ã¿ããŒãµãŒãã¹ã¯ããçšåºŠåŸ©å ãããã¯ã©ã¹ã¿ãŒã¯åã³å£åã¢ãŒãã§åäœããŸãã ãããŠé¢çœãã®ã¯ãéåžžã¢ãŒããããéãåäœããããšã§ã-ããã¯é©ãã¹ãäºå®ã§ãã
ãã®åŸãé害ãæé€ããŸãã é»æºãåãããšä»®å®ãããšãã©ãã¯ã¯å®å šã«åæãããŸããã é»æ°æåž«ãèµ°ã£ãŠæ¥ãŠããã¹ãŠã埩å ããé»åãäŸçµŠãããµãŒããŒã®é»æºãå ¥ããŠããã楜ãã¿ãå§ãŸããŸãã ã
ãµãŒããŒãæ éãããšãã¹ãŠãæªããªãããµãŒããŒã®é»æºãå ¥ãããšãã¹ãŠãè¯ããªããšããäºå®ã«èª°ããæ £ããŠããŸãã ããã§ã¯ãã¹ãŠãééã£ãŠããŸãã
ã¯ã©ã¹ã¿ãŒã¯å®è³ªçã«åæ¢ãããã©ã€ããªåæãå®è¡ããŠãããã¹ã ãŒãºã§äœéãªå埩ãéå§ããåŸã ã«éåžžã¢ãŒãã«æ»ããŸãã
äžã®å³ã¯ãé害ãçºçãããšãã®Cephã¯ã©ã¹ã¿ãŒã®ããã©ãŒãã³ã¹ã®ã°ã©ãã§ãã ããã§ç§ãã¡ã話ãããŸãã«ãã®ééãéåžžã«æ確ã«ãã¬ãŒã¹ãããŠããããšã«æ³šæããŠãã ããïŒ
- çŽ70ç§ãŸã§ã®éåžžåäœã
- 1åããçŽ130ç§ã®å€±æã
- éåžžã®åäœãããèããé«ããã©ããŒã¯ãå£åããã¯ã©ã¹ã¿ãŒã®ä»äºã§ãã
- 次ã«ãæ¬ èœããŠããããŒãããªã³ã«ããŸã-ããã¯ãã¬ãŒãã³ã°ã¯ã©ã¹ã¿ã§ããããµãŒããŒã¯3å°ãšSSD 15å°ã®ã¿ã§ãã ãµãŒããŒã¯çŽ260ç§ã§èµ·åããŸãã
- ãµãŒããŒã®é»æºãå ¥ããã¯ã©ã¹ã¿ãŒã«å ¥ããŸãã-IOPS'yãèœã¡ãŸããã
ããã§å®éã«äœãèµ·ãã£ãã®ããç解ããŠã¿ãŸãããã ç§ãã¡ãæåã«èå³ãæã£ãŠããã®ã¯ããã£ãŒãã®æåã®éšåãæãäžããããšã§ãã
OSDé害
ããããã«è€æ°ã®ããŒãããã3ã€ã®ã©ãã¯ãæã€ã¯ã©ã¹ã¿ãŒã®äŸãèããŠã¿ãŸãããã å·ŠåŽã®ã©ãã¯ã«é害ãçºçããå Žåããã¹ãŠã®OSDããŒã¢ã³ïŒãã¹ãã§ã¯ãããŸããïŒïŒäžå®ã®ééã§Cephã¡ãã»ãŒãžã§èªåèªèº«ãPingããŸãã è€æ°ã®ã¡ãã»ãŒãžã倱ãããå Žåãã¡ãã»ãŒãžãã¢ãã¿ãŒã«éä¿¡ãããŸãããç§ãOSDãªã©ãOSDãªã©ã«å°éã§ããŸãããã
ãã®å Žåãã¡ãã»ãŒãžã¯éåžžãã¹ãããšã«ã°ã«ãŒãåãããŸããã€ãŸããç°ãªãOSDããã®2ã€ã®ã¡ãã»ãŒãžãåããã¹ãã«å°çãããšããããã¯1ã€ã®ã¡ãã»ãŒãžã«çµåãããŸãã ãããã£ãŠãOSD 11ãšOSD 12ãOSD 1ã«å°éã§ããªããšå ±åããå Žåãããã¯ãã¹ã11ãOSD 1ã«ã€ããŠäžå¹³ãèšã£ããšè§£éãããŸããOSD21ãšOSD 22ãå ±åãããå Žåããã®åŸãã¢ãã¿ãŒã¯OSD 1ãããŠã³ç¶æ ã«ãããšèŠãªããããã«ã€ããŠãã¹ãŠã®ã¯ã©ã¹ã¿ãŒã¡ã³ããŒã«ïŒOSDãããã®å€æŽãä»ããŠïŒéç¥ããäœæ¥ã¯äœäžã¢ãŒãã§ç¶è¡ãããŸãã
ãã®ãããããã«ã¯ã©ã¹ã¿ãšé害ã®ããã©ãã¯ïŒãã¹ã5ãšãã¹ã6ïŒããããŸãã é»æºããªã³ã«ãªã£ãããããã¹ã5ãšãã¹ã6ããªã³ã«ãã...
Cephã®å
éšåäœ
ãããŠä»ãæãèå³æ·±ãéšåã¯ã æåã®ããŒã¿åæãéå§ããŠããããšã§ãã ã¬ããªã«ã¯å€æ°ããããããããã¯åæããåãããŒãžã§ã³ã§ããå¿ èŠããããŸãã OSDã®éå§ããã»ã¹ã®éå§ïŒ
- OSDã¯ãå©çšå¯èœãªããŒãžã§ã³ãå©çšå¯èœãªå±¥æŽïŒpg_log-ãªããžã§ã¯ãã®çŸåšã®ããŒãžã§ã³ãå€æããããïŒãèªã¿åããŸãã
- ãã®åŸãææ°ããŒãžã§ã³ã®å£åãªããžã§ã¯ãïŒmissing_locïŒãã©ã®OSDã«ãããã©ããé ããŠããããå€æããŸãã
- äžäœããŒãžã§ã³ãä¿åãããŠããå Žåã¯ãåæãå¿ èŠã§ããæ°ããããŒãžã§ã³ã¯ãããŒã¿ã®èªã¿åãããã³æžã蟌ã¿ã®åç §ãšããŠäœ¿çšã§ããŸãã
ãã¹ãŠã®OSDããåéãããã¹ããŒãªãŒã䜿çšãããŸããããã®ã¹ããŒãªãŒã¯éåžžã«å€ããªãå¯èœæ§ããããŸãã 察å¿ããããŒãžã§ã³ãååšããã¯ã©ã¹ã¿ãŒå ã®ãªããžã§ã¯ãã®ã»ããã®å®éã®å Žæã決å®ãããŸãã ã¯ã©ã¹ã¿ãŒå ã®ãªããžã§ã¯ãã®æ°ãååŸãããã¬ã³ãŒãã®æ°ãã¯ã©ã¹ã¿ãŒãå£åã¢ãŒãã§é·æéæŸçœ®ãããŠããå Žåãã¹ããŒãªãŒã¯é·ããªããŸãã
æ¯èŒã®ããã« ãRBDã€ã¡ãŒãžã§äœæ¥ããå Žåã®ãªããžã§ã¯ãã®äžè¬çãªãµã€ãºã¯4 MBã§ãã æ¶å»ã³ãŒãã§äœæ¥ããå Žå-1MBã 10 TBã®ãã£ã¹ã¯ãããå Žåããã£ã¹ã¯äžã«100äžã¡ã¬ãã€ãã®ãªããžã§ã¯ããååŸããŸãã ãµãŒããŒã«10åã®ãã£ã¹ã¯ãããå Žåãæ¢ã«1,000äžåã®ãªããžã§ã¯ããããã32åã®ãã£ã¹ã¯ãããå ŽåïŒå¹ççãªã¯ã©ã¹ã¿ãŒãæ§ç¯ããŠãããããå²ãåœãŠãå³ããïŒã3200äžåã®ãªããžã§ã¯ããã¡ã¢ãªã«ä¿æããå¿ èŠããããŸãã ããã«ãå®éã«ã¯ãåãªããžã§ã¯ãã«é¢ããæ å ±ã¯è€æ°ã®ã³ããŒã«ä¿åãããŸããããã¯ãåã³ããŒããã®å Žæã«ãã®ããŒãžã§ã³ã«ããããã®ããŒãžã§ã³ã«ããããšã瀺ããŠããããã§ãã
RAMã«ããèšå€§ãªéã®ããŒã¿ãå€æããŸãã
- ãªããžã§ã¯ããå€ãã»ã©ãmissing_locã®å±¥æŽã倧ãããªããŸãã
- PGãå€ãã»ã©ãpg_logãšOSDããããå€ããªããŸãã
ããã«ïŒ
- ãã£ã¹ã¯ãµã€ãºã倧ããã»ã©ã
- å¯åºŠïŒåãµãŒããŒã®ãã£ã¹ã¯æ°ïŒãé«ãã»ã©ã
- ã¯ã©ã¹ã¿ãŒã®è² è·ãé«ãã»ã©ãã¯ã©ã¹ã¿ãŒã®é床ãéããªããŸãã
- OSDã®ããŠã³æéãé·ããªãïŒãªãã©ã€ã³ç¶æ ïŒ;
èšãæãããšã æ§ç¯ããã¯ã©ã¹ã¿ãŒãæ¥åŸé ã§ãã¯ã©ã¹ã¿ãŒã®äžéšãå¿çããªãã£ãæéãé·ãã»ã©ãèµ·åæã«å€ãã®RAMãå¿ èŠã«ãªããŸã ã
極端ãªæé©åã¯ãã¹ãŠã®æªã®æ ¹æºã§ã
ã...ãããŠãé»ãOOMã¯å€ã«æªãç·ã®åãšå¥³ã®åã«æ¥ãŠãå·Šå³ã®ãã¹ãŠã®ããã»ã¹ã殺ããŸãã
åžã®ã·ã¹ãã 管çè ã®äŒèª¬
ãã®ãããRAMã«ã¯å€ãã®ã¡ã¢ãªãå¿ èŠã§ãããã¡ã¢ãªæ¶è²»éãå¢å ããŠããïŒã¯ã©ã¹ã¿ã®3åã®1ã§ããã«éå§ããŸããïŒãåœç¶ã®ããšãªããã·ã¹ãã ãSWAPã«ç§»è¡ã§ããŸãã SWAPãæªããšæã£ãŠããããäœæããŠããªããšèãã人ã¯ãããããããšæããŸãã ç§ãã¡ã«ã¯ããããã®èšæ¶ããããŸãïŒãããããããã¯ééã£ãã¢ãããŒãã§ãã
SWAPãã¡ã€ã«ãäºåã«äœæãããŠããªãå ŽåãLinuxãããå¹ççã«åäœããããšã決å®ããããããé ããæ©ãããã¡ã¢ãªãã©ãŒïŒOOMãã©ãŒïŒãçºçããŸããæåã«äžéã ã£ã人ã ç§ãã¡ã¯æ¥œèŠ³çãªå Žæãäœã§ããããç¥ã£ãŠããŸã-ç§ãã¡ã¯èšæ¶ãæ±ãã圌ãã¯ç§ãã¡ã«ãããçŽæããŸããç§ãã¡ã¯èšããŸãïŒãä»ãç§ãã¡ã«1ã€ãäžããŠãã ããã
ããã¯ãä»®æ³ã¡ã¢ãªé åã§æ§æãããŠããªãéããéåžžã®Linuxãžã§ãã§ãã
ããã»ã¹ã¯ã¡ã¢ãªãã©ãŒããæãåºããçŽ æ©ãå·é ·ã«æãèœã¡ãŸãã ããã«ã圌ãæ»ãã ä»ã®ããã»ã¹ã¯ç¥ããŸããã 圌ã¯èª°ã«ãäœããéç¥ããæéããªãã圌ãã¯åã«åœŒãçµäºãããŸããã
ãã®åŸãããã»ã¹ã¯ãã¡ããåèµ·åããŸã-systemdãå®è¡ããå¿ èŠã«å¿ããŠãèœäžããOSDãèµ·åããŸãã åããOSDãå§ãŸãã...é£éåå¿ãå§ãŸããŸãã
ç§ãã¡ã®å ŽåãOSD 8ãšOSD 9ãèµ·åããŸãããããããã¯ãã¹ãŠãç²ç ãå§ããŸãããã幞éãªããšã«OSD 0ãšOSD 5ã¯ãããŸããã§ããã 圌ãã¯åèµ·åããŸãã-圌ãã¯åœŒãã®ããŒã¿ãèªã¿ãåæãå§ããæ®ããç²ç ãå§ããŸããã ããã«3ã€ã®äžéïŒOSD 9ãOSD 4ããã³OSD 7ïŒã ããã3ã€ã¯åèµ·åããã¯ã©ã¹ã¿ãŒå šäœã«å§åãããå§ããŸããã次ã®ããã¯ã¯äžéã§ããã
ã¯ã©ã¹ã¿ãŒã¯æåéãç§ãã¡ã®ç®ã®åã§ã°ãã°ãã«ãªãå§ããŸã ã å£åã¯éåžžã«è¿ éã«çºçãããã®ãéåžžã«é«éãã¯éåžžæ°åãæ倧æ°ååã§è¡šãããŸãã 30åã®ããŒãïŒã©ãã¯ããšã«10åã®ããŒãïŒããããåé»ã®ããã«ã©ãã¯ãåæžããå Žåã6ååŸã«ã¯ã©ã¹ã¿ãŒã®ååãååšããŸãã
ãããã£ãŠã次ã®ãããªãã®ãåŸãããŸãã
ã»ãšãã©ãã¹ãŠã®ãµãŒããŒã§ãOSDã«é害ãçºçããŠããŸãã ãããŠãåãµãŒããŒã§ãã€ãŸããé害ã®ããOSDã®é害ã®åãã¡ã€ã³ã§çºçããå Žåã ã»ãšãã©ã®ããŒã¿ã«ã¢ã¯ã»ã¹ã§ããŸãã ã æžã蟌ã¿ãèªã¿åãã®ãããã®èŠæ±ããããã¯ãããŸãããéãã¯ãããŸããã ããã ãã§ãïŒ èµ·ããŸããã
ãã®ãããªç¶æ³ã§äœããã¹ããïŒ ããæ£ç¢ºã«ã¯ã äœãããå¿ èŠããããŸãããïŒ
åçïŒã¯ã©ã¹ã¿ãŒãã€ãŸãã©ãã¯å šäœãããã«èµ·åããªãã§ãã ããããã ããããŒã¢ã³ã1ã€ãã€æ éã«çºçãããŠãã ããã
ããããç§ãã¡ã¯ãããç¥ããŸããã§ããã ããã«å§ããŠãåŸããã®ãæã«å ¥ããŸããã ãã®å Žåã4ã€ã®ããŒã¢ã³ïŒ8ã9ã10ã11ïŒã®ãããããèµ·åãããšãã¡ã¢ãªæ¶è²»ãçŽ20ïŒ å¢å ããŸãã ååãšããŠãç§ãã¡ã¯ãã®ãããªé£èºãéããŸãã ãã®åŸãã¯ã©ã¹ã¿ãŒã®æ§èœäœäžã«é¢ããæ å ±ãä¿æããããã«äœ¿çšãããæ§é ã®äžéšããªããªããããã¡ã¢ãªæ¶è²»éãæžå°ãå§ããŸãã ã€ãŸããé 眮ã°ã«ãŒãã®äžéšãéåžžã®ç¶æ ã«æ»ããå£åç¶æ ãç¶æããããã«å¿ èŠãªãã¹ãŠã®ãã®ã解æŸãããŸã- çè«çã«ã¯è§£æŸãããŸãã
äŸãèŠãŠã¿ãŸãããã å·Šå³ã®Cã³ãŒãã¯ã»ãšãã©åãã§ãããéãã¯å®æ°ã®ã¿ã§ãã
次ã®2ã€ã®äŸã¯ãã·ã¹ãã ã«ç°ãªãéã®ã¡ã¢ãªãèŠæ±ããŸãã
- å·Š-å1 MBã®2048åã
- å³-2097152åã®1 Kãã€ãã
ããããäž¡æ¹ã®äŸã¯ç§éãããããäžã§æ®åœ±ããã®ãåŸ ã£ãŠããŸãã EnterããŒãæŒããšãã¡ã¢ãªã解æŸãããŸãïŒæåŸã®éšåãé€ããã¹ãŠïŒã ããã¯éåžžã«éèŠã§ã-æåŸã®éšåãæ®ããŸãã ãããŠåã³ã圌ãã¯ç§ãã¡ãåçãæ®ãã®ãåŸ ã£ãŠããŸãã
以äžã¯å®éã«èµ·ãã£ãããšã§ãã
- ãŸããäž¡æ¹ã®ããã»ã¹ãéå§ããã¡ã¢ãªãé£ã¹ãŸããã çå®ã®ããã«èãããŸã-2 GB RSSã
- ENTERãæŒããŠé©ããŠãã ããã 倧ããªãã£ã³ã¯ã§åŒ·èª¿è¡šç€ºãããæåã®ããã°ã©ã ã¯ã¡ã¢ãªãè¿ããŸããã ãããã2çªç®ã®ããã°ã©ã ã¯æ»ããŸããã§ããã
ãããèµ·ãã£ãçç±ã«å¯Ÿããçãã¯ãLinux mallocã«ãããŸãã
ã¡ã¢ãªã倧ããªãã£ã³ã¯ã§èŠæ±ããå Žåãããã»ããµã®ã¢ãã¬ã¹ç©ºéã«äžããããå¿åmmapã¡ã«ããºã ã䜿çšããŠçºè¡ãããããããã¡ã¢ãªãã«ãããããŸãã freeïŒïŒãå®è¡ãããšãã¡ã¢ãªã解æŸãããããŒãžãããŒãžãã£ãã·ã¥ïŒã·ã¹ãã ïŒã«è¿ãããŸãã
ã¡ã¢ãªãå°ããã€å²ãåœãŠããšãsbrkïŒïŒãå®è¡ãããŸãã sbrkïŒïŒã¯ããã€ã³ã¿ãããŒãã®æ«å°Ÿã«ã·ããããŸããçè«çã«ã¯ãã¡ã¢ãªã䜿çšãããŠããªãå Žåãã¡ã¢ãªã®ããŒãžãã·ã¹ãã ã«è¿ãããšã§ãã·ãããããæ«å°Ÿãæ»ãããšãã§ããŸãã
次ã«å³ãèŠãŠãã ããã å£åãããªããžã§ã¯ãã®å Žæã®å±¥æŽã«ã¯å€ãã®èšé²ãããããã®åŸããŠãŒã¶ãŒã»ãã·ã§ã³ã衚瀺ãããŸãããããã¯é·å¯¿åœã®ãªããžã§ã¯ãã§ãã ç§ãã¡ã¯åæããäœåãªæ§é ã¯ãã¹ãŠãªããªããŸããããé·åœã®ãªããžã§ã¯ãã¯æ®ããsbrkïŒïŒãæ»ãããšã¯ã§ããŸããã
SWAPãããã°è§£æŸã§ãã空ãé åããŸã ãããããããŸãã ããããæã ã¯è³¢ãã§ã-SWAPãç¡å¹ã«ããŸããã
ãã¡ãããããŒãã®å é ããã¡ã¢ãªã®äžéšã䜿çšãããŸãããããã¯äžéšã«éãããéåžžã«éèŠãªæ®ãã®éšåãå æããããŸãŸã«ãªããŸãã
ãã®ãããªç¶æ³ã§äœããã¹ããïŒ çãã¯ä»¥äžã§ãã
å¶åŸ¡ãããèµ·å
- 1ã€ã®OSDããŒã¢ã³ãèµ·åããŸãã
- åæããããŸã§åŸ æ©ããã¡ã¢ãªããžã§ããã確èªããŸãã
- 次ã®æªéã®éå§ã«èããããšãã§ãããšç解ãããã次ã®æªéãéå§ããŸãã
- ããã§ãªãå Žåã¯ãã»ãšãã©ã®ã¡ã¢ãªãæ¶è²»ããããŒã¢ã³ããã°ããåèµ·åããŸãã 圌ã¯çãéããŠã³ããŠããã圌ã¯å€ãã®æŽå²ãè¡æ¹äžæãªã©ãæã£ãŠããªãã®ã§ã圌ã¯ããå°ãªãã¡ã¢ãªãé£ã¹ãã§ããããã¡ã¢ãªã®äºç®ã¯ãããã«å¢å ããŸãã
- ã¯ã©ã¹ã¿ãŒãé§ãå·¡ãããããå¶åŸ¡ãããã¹ãŠãåŸã ã«äžããŠãããŸãã
- 次ã®OSDã«é²ãããšãã§ãããã©ããã確èªããŸãã
DigitalOceanã¯å®éã«ãããéæããŸããã
ãåœç€Ÿã®ããŒã¿ã»ã³ã¿ãŒããŒã ã¯ãåãã¹ãã®ã¡ã¢ãªããžã§ãããæåã§ç®¡çããªãããå¥ã®ããŒã ããã£ãããšããŒããç«ã¡äžããªãããã¡ã¢ãªæ¡åŒµãå®è¡ããŸããã
æ§æãšçŸåšã®ç¶æ³ã«æ»ããŸãããã ããã§ãã¡ã¢ãªãŒäžè¶³ãã©ãŒã®é£éåå¿åŸã«ã¯ã©ã¹ã¿ãŒã厩å£ããŸããã èµ€ã®ãã¡ã€ã³ã§ã¯OSDã®èªååèµ·åãçŠæ¢ããéã®ãã¡ã€ã³ããããŒãã1ã€ãã€èµ·åããŸãã ç§ãã¡ã®æåã®ã¿ã¹ã¯ã¯åžžã«serviceã埩å ããããšã§ãããããããããªãèµ·ãã£ãã®ãç解ããããšãªãã åŸã§ãµãŒãã¹ã埩å ãããšãã«æŽçããŸãã åäœäžãããã¯åžžã«åœãŠã¯ãŸããŸãã
ãµãŒãã¹ã埩å ããããã«ã¯ã©ã¹ã¿ãŒãã¿ãŒã²ããç¶æ ã«ãããã®åŸãæ¹æ³è«ã«åŸã£ãŠOSDã®èµ·åãéå§ããŸãã ã¡ã¢ãªããžã§ããã調æŽããããã«ãå¿ èŠã«å¿ããŠä»ã®ã³ã³ããŒãã³ããåèµ·åããŸãïŒæ¬¡ã®9ã10ã11ïŒãã¯ã©ã¹ã¿ã¯åæãããã¡ã³ããã³ã¹ãéå§ããæºåãã§ããŠããããã§ãã
åé¡ã¯ãCephã§ã®æžã蟌ã¿ã¡ã³ããã³ã¹ã®å®è¡æ¹æ³ã§ã ã
1ã€ã®ãã¹ã¿ãŒOSDãš2ã€ã®ã¹ã¬ãŒãã®3ã€ã®ã¬ããªã«ããããŸãã åé 眮ã°ã«ãŒãã®ãã¹ã¿ãŒ/ã¹ã¬ãŒãã«ã¯ç¬èªã®ãã®ããããŸãããããããã«1ã€ã®ãã¹ã¿ãŒãš2ã€ã®ã¹ã¬ãŒããããããšãæ確ã«ããŸãã
æžã蟌ã¿ãŸãã¯èªã¿åãæäœã¯ãã¹ã¿ãŒã«ãªããŸãã èªããšãã«ããã¹ã¿ãŒãæ£ããããŒãžã§ã³ãæã£ãŠããå Žåã圌ã¯ãããã¯ã©ã€ã¢ã³ãã«æž¡ããŸãã èšé²ã¯ããå°ãè€éã§ãããã¹ãŠã®ã¬ããªã«ã§èšé²ãç¹°ãè¿ãå¿ èŠããããŸãã ãããã£ãŠãã¯ã©ã€ã¢ã³ããOSD 0ã«64 KBãæžã蟌ããšããã®äŸã®åã64 KBã¯OSD 5ããã³OSD 8ã«éãããŸãã
ããããå€ãã®ããã»ã¹ãåèµ·åãããããOSD 8ã¯éåžžã«å£åããŠããŸãã
Cephã§ã¯å€æŽã¯ããŒãžã§ã³ããããŒãžã§ã³ãžã®ç§»è¡ã§ãããããOSD 0ããã³OSD 5ã§ã¯æ°ããããŒãžã§ã³ããOSD 8ã§ã¯å€ãããŒãžã§ã³ã䜿çšãããŸãã ã€ãŸããèšé²ãç¹°ãè¿ãïŒ64 Kbãéä¿¡ïŒã«ã¯ãOSD 8ã®ããŒãžã§ã³ãæŽæ°ããå¿ èŠããããŸã-ããã¯4 MbïŒãªããžã§ã¯ããµã€ãºïŒã§ãã ã€ãŸããOSD 0ã§4 MBãèªã¿åããOSD 8ã«éä¿¡ããæžã蟌ã¿ãåæç¶æ ã«ãªããŸãã ä»ã§ã¯ã©ãã«ãåãæ°ããããŒãžã§ã³ãããããããã64 Kbãæžã蟌ã¿ãŸãã
ä»ãæ°åãè¡ã-æãèå³æ·±ãã
ã¯ã©ã¹ã¿ãŒããã©ãŒãã³ã¹ã®ãã¹ãïŒ
- 4 Kãã€ãã®æžã蟌ã¿æäœã«ã¯1ããªç§ããããããã©ãŒãã³ã¹ã¯1ã¹ããªãŒã ã§1000æäœ/ç§ã§ãã
- ãµã€ãºã4 MBïŒãªããžã§ã¯ããµã€ãºïŒã®æäœã«ã¯22ããªç§ãããã©ãŒãã³ã¹ã¯45æäœ/ç§ããããŸãã
ãããã£ãŠã3ã€ã®ãã¡ã€ã³ã®1ã€ã«é害ãçºçãããšãã¯ã©ã¹ã¿ãŒã¯ãã°ããã®éå£åç¶æ ã«ãªããããããªããžã§ã¯ãã®ååã¯ç°ãªãããŒãžã§ã³ã«å¿ããŠæ¡æ£ããæžã蟌ã¿æäœã®ååã¯åŒ·å¶ãªã«ããªããå§ãŸããŸãã
匷å¶å埩æéã¯ãããèšç®ãããŸã-å£åãããªããžã§ã¯ããžã®æžã蟌ã¿æäœã
ãŸãã22ããªç§ã§4 MBãèªã¿åãã22ããªç§ã§æžã蟌ã¿ã次ã«1ããªç§ã§4 KBã®ããŒã¿èªäœãæžã蟌ã¿ãŸãã SSDäžã®å£åãããªããžã§ã¯ããžã®æžã蟌ã¿æäœããšã«åèš45ããªç§ãæšæºããã©ãŒãã³ã¹ã1ããªç§ã ã£ãå Žå- ããã©ãŒãã³ã¹ã45åäœäžããŸãã ã
å£åãããªããžã§ã¯ãã®å²åãå€ãã»ã©ãæªåããŸãã
å¹³åãµãŒãã¹æé
- ãªããžã§ã¯ãã®ååãå£åããå Žåãå¹³åãµãŒãã¹æéã¯ïŒ45 + 1ïŒ/ 2 = 23ããªç§ã§ãã
- ãªããžã§ã¯ãã®75ïŒ ãå£åããå ŽåãïŒ45 * 3 + 1ïŒ/ 4 = 34ããªç§ ã
- 90ïŒ -ïŒ45 * 9 + 1ïŒ/ 10 = 41 ms-éåžžã¢ãŒãããã40åé ãå Žåã
ããã¯Cephã®å·¥å Žæäœã¡ã«ããºã ã§ãããäœãã§ããŸããã ã¯ã©ã¹ã¿ãŒãéšåçã«ãªãã©ã€ã³ã«ãªããåæã«å¥ã®éšåãã¯ã©ã€ã¢ã³ããªã¯ãšã¹ããåŠçããå Žåãã¹ã€ããããªã³ã«ãããšãäžéšã®æäœã§ããã©ãŒãã³ã¹ãæ¥æ¿ã«æ°ååäœäžããŸãã
次ã«ãç·æ¥ã¢ãŒãã§ã®Cephããã©ãŒãã³ã¹ãã¹ãã®çµæã2ã€ã®ã°ã©ãã§äžåºŠã«æ€èšããŸãã
- äžçªäžã®ã°ã©ãã¯ããªãã¿ã§ã-ããã¯ã¯ã©ã¹ã¿ãŒã®ããã©ãŒãã³ã¹ã§ããéåžžã¢ãŒããé害ãé害æ€åºãå£åã¢ãŒããå£åã¢ãŒãã§ã®åäœã§ãã
- ããã-ã¬ã€ãã³ã·ãŒã ããã§ãå®éã«ã¯ãã¬ã€ãã³ã·ã¯äºæ³ããããã«æªåããŠããŸãã ãã®ã¯ã©ã¹ã¿ãŒã¯ããã¹ãäžã«ã»ãŒ100ïŒ
å£åããŸããïŒåçãèŠäºãªãã®ã«ãªããæåã®æ·±ããããªãã«å±ãããã«ãç¹ã«é·ãä¿æããŸããïŒã ãªãŒããŒãããã«ãã60ããªç§ããã®é
延ãåæèšç®ã§ã¯èæ
®ãããŠããŸããã
ã¯ã©ã¹ã¿ãŒã¯éåžžã®äœæ¥ã§åŸ©å ãããäž»ã«ãããã¯ãŒã¯äžã«çœ®ãããŸãã 10 Gbãããã¯ãŒã¯ãã€ãŸã1,200 Mb / sãããã¯ããã£ã¹ã¯ã®æ°ã«é¢ä¿ãªãããµãŒããŒããã1ç§ããã300ãªããžã§ã¯ããæå³ããŸãã 10åã®SSDããããŸã-æ¯ç§300åãã¹ãŠã®ãªããžã§ã¯ãã1ã€ã®ãã£ã¹ã¯-ããããæ¯ç§300åã®ãªããžã§ã¯ãããããŸãã
å¹ççãªã¯ã©ã¹ã¿ãŒãæ§ç¯ããã¬ããªã±ãŒã·ã§ã³ãããã¯ãŒã¯ã«å ¥ããŸããã
ããã«ããã£ã¹ã¯åž¯åå¹ ããŸã ãããŸãã éåžžã¢ãŒãã®ãã£ã¹ã¯ã¯900 MB / sãçæããŸãïŒããã¯å¹³åçãªSSDã§ãïŒã éåžžã1ç§ããã128 KBã§çŽ2,500ã®æäœãæäŸããŸãïŒéåžžãESXiãšHyperVã¯èŠæ±ã128 KBã«æããŸãïŒã ããããå£åç¶æ ã«å ¥ããšã1ç§ããã225åã®ãªããžã§ã¯ãã«ééããŸãã ãªããžã§ã¯ãã¹ãã¢ã§ã¯ãªããã¡ã€ã«ã¹ãã¢ã䜿çšãããšããã°ïŒäºéãšã³ããªïŒãããã1ç§ããã110åã®æäœãè¡ããããã¹ãŠãéåžžã«æ²ãããªããŸãã
SSDã¯æ¯ç§110åã®æäœãæäŸããŸã-çœå®³ïŒ
äœãã§ããŸããïŒ
åç1ïŒã¢ãŒããã¯ãã£ãšã®ã¿æŠãããšãã§ããŸã - 倱æã®é åãå¢ãããŠãã ãã ã
ããã§ãåã¯å·Šããå³ãžïŒå€±æãããã¡ã€ã³ã®æ°ã å£åããPGã®å²åã
察å¿ããé害ãèæ ®ããå¹³åãµãŒãã¹æé
æåŠããå ŽåïŒ
- 3ã€ã®ãã¡1ã€ã®ãã¡ã€ã³ã次ã«45ããªç§ã¯ã楜芳çãªèŠç©ããã§ãã
- 10åã®1ã®é åïŒäºæ³ãèæ ®ã«å ¥ãã確çè«ã«ããã°ïŒã¯çŽ14ããªç§ã§ãã
- 20ã®ãã¡ã€ã³ã次ã«8ããªç§ïŒPGã®çŽ10ïŒ ãå£åïŒã
ã€ãŸãã ãã¡ã€ã³ã®è¿œå ã¯å¹æçã§ãã ãé害ã®ãã¡ã€ã³ã¯é»æºé害ããµãŒããŒããã®ä»ã®æ©åšåãã«èšèšãããŠããããããåžžã«å¯èœã§ãããšã¯éããªãããã è²»çšãããããŸãã
åç2ïŒ 2çªç®ã®ãªãã·ã§ã³ã¯ãç»åå ã®ãªããžã§ã¯ãã®ãµã€ãº ïŒé åºããªããžã§ã¯ããµã€ãº ïŒãå°ããããããšã§ãã
ãªããžã§ã¯ãã®ãµã€ãºãå°ãããããšãããšãã°ã4 MBããã®æäœã¯2ãŸãã¯1 MââBã«ãªããŸãã ãã®åŸããã¹ãŠãæ°åé«éã«ãªããŸãããããã§ãéåžžã¢ãŒãããã¯ããã«é ããªããŸãã ãã®å ŽåïŒ
- ãªããžã§ã¯ãã®è€è£œæéã¯å€§å¹ ã«æžå°ããŸã
- å埩äžã®ã¯ã©ã¹ã¿ãŒã®ã¬ã€ãã³ã·ãŒãæ¯äŸçã«åæžããŸããã
ãã ãããã¹ãŠã®æéãæ¯æãå¿ èŠããããŸãã
- ãªããžã§ã¯ãã®æ°ãå¢å ããŸãã
- ã¡ã¢ãªæ¶è²»éã¯ãã»ãŒèŠå ã«ãã£ãŠå¢å ããŸãã
- æãäžå¿«ãªããšã¯ããã§ã«äœæãããã€ã¡ãŒãžã®ãªããžã§ã¯ãã®ãµã€ãºãå€æŽã§ããªãããšã§ãã 4 MBã§äœæãããããããã®ãŸãŸæ®ããŸãã
æ倧ã®ããã©ãŒãã³ã¹ïŒ32 MBãªããžã§ã¯ãïŒã®ããã«äœæããå Žåãããã«éåžžã«æ確ã«ãªããŸããïŒ
åç3ïŒå¥ã®æ¹æ³ã¯Cephãæ¹è¯ããããšã§ã ã
ç§ã®æ©èœç責任ã®äžéšãšããŠãã·ã¹ãã ã¢ãŒããã¯ãããã³éçºè ãšããŠãç§ã¯Cephã«æ·±ãå ¥ããŸãã ã 調æ»ã®éçšã§ãå£åãããªããžã§ã¯ãã§ã®èšé²äžã«ã¯ã©ã¹ã¿ãŒãå šå¡ã«è€è£œããããåæã«ã¯ã©ã¹ã¿ãŒã®æŽåæ§ãç¶æãããã€ãŸãéä¿¡ããŒã¿ã®äžéšãåãæšãŠãããã«åŒ·å¶ããŸããã ããã§éåžžã«èå³æ·±ãåçã§ããããšãå€æããŸããã
äžã®ã°ã©ãã®ã¯ã©ã¹ã¿ãŒããã©ãŒãã³ã¹ãäžã®ã°ã©ã-ã¬ã€ãã³ã·ãŒã é-人å¡é 眮å³ãèµ€-å®éšçã é 延ã¯å®éã«ã¯æå°ã§30ïŒ å¢å ããŸããããã®ã¹ã±ãŒã«ã§ã¯èŠããªãã ãã§ããã€ãŸãããã¹ãŠãããŸãããããã§ã¯ãããŸããã
ã³ãã¥ããã£ã§ã¯ããã®ã³ãŒãã¯çç£åã®ç¶æ ã§ããããããŸã å©çšã§ããŸããã å€åºå ã§æå¹ã«ããããšã¯ã§ããŸããããããã¯ç§ãã¡ã«ã¯é©ããŠããŸããã æåŸã«ããããããããšããç§ãã¡ã¯ãããããŸãã
ãããã«
ãã®äœæ¥ã¹ã±ãžã¥ãŒã«ãååŸããã®ã«çŽ1人幎ããããŸããã ããã»ã©å€ãã®åŽåãè²»ããæ©äŒããªããCephã®äžã«å ¥ããããã§åºæ¬çãªããšããããªããããã§ã§ããããšã¯ããã«ãããŸãã
â äºæ ã®éã«äœããããã®ã¯ç¡æå³ã§ãã
äºæ ã®éããããã¯ã«é¥ãããšã¯ãªãããã®ããã®æºåãå¿ èŠã§ãã ããã¯éåãå¿ ãè¡ãããªããã°ãªããªãããšãæå³ããŸãã ããããªããã°ãããªãã®çè«çç 究ã¯ãã¹ãŠç¡é§ã§ãã ããã«ãæ¬çªç°å¢ãšã»ãŒåãæ§æã§æŒç¿ãå®æœããããšã匷ããå§ãããŸãã æŒç¿ã§ååãªããŒã¿ããªãå ŽåãDigitalOceanãšç§ãã¡ãééããã¡ã¢ãªã®åé¡ãèžãããšã¯ãããŸããã 倧éã®ããŒã¿ãããå Žåã¯ã次ã«é²ããšäœããã¹ããããããŸããã
ããã«ãããŒã¿ãå°ãªãè² è·ãå°ãªãå Žåãããã©ãŒãã³ã¹ããã®ããã«äœäžââããããšã¯ãããŸããã ã¯ã©ã€ã¢ã³ããããªãã®ãšããã«æ¥ãŠãå«ã³å§ããŸãã äœãèµ·ãã£ãã®ã§ããïŒïŒã圌ãã¯ããªãã®æè¡ãµããŒããåŒããæè¡ãµããŒãã¯ããªãããããªãã¯é ãæ¡ããããŸãã ãã¹ãŠãæ²ãããªããŸãããããŠããªãã¯ãã®ããã«æºåããå¿ èŠããããŸãïŒæã ãå°ããå Žæãã©ããããã®ããŠã³ã¿ã€ã ããããç¶ãããç解ããããã«ã
â ã¯ã©ã¹ã¿ãŒã³ã³ããŒãã³ãïŒOSDïŒãåé€ããããšã¯ã§ããŸããã
äžèŠé»å®³çãªã³ã³ããŒãã³ããåé€ãããã³ã«ãããŒã¿ã®äžéšããããŸã§ã®åé·ããŒã¿ã®äžéšã倱ãããŸãããä»ã®å Žæã§åé¡ãçºçããå Žåã¯ãå¿ èŠã«ãªãå ŽåããããŸãã ãããã£ãŠãå€åºå ã§OSDã¯ã©ã¹ã¿ãŒã³ã³ããŒãã³ãïŒã¢ãã¿ãŒãªã©ïŒãåé€ããªãã§ãã ãã ã ãããè¡ãå Žåãããªãèªèº«ã¯éªæªãªããããªã§ãã
â ã¯ã©ã¹ã¿ãŒãæ£ããèšèšããŸãã
èšèšæ®µéã§ã¯ãã¹ã±ãžã¥ãŒã«ãããã¢ã¯ãã£ããã£ãŸãã¯èšç»å€ã®ç¶æ³ãçºçããå Žåã«ã䜿çšã§ããªãOSDã®æ°ãæå°éã«æããå¿ èŠããããŸãã å¯èœã§ããã°ãããå€ãã®é害ãã¡ã€ã³ãäœæããŸã ã ã§ããªãå Žåã¯ãå°ãªããšããã®ãããªããŒããŠã§ã¢ãéžæããŠããµãŒããŒãã·ã£ããããŠã³ããã«ãã£ã¹ã¯ãå€æŽã§ããããã«ããŸãã
â OSDããŒãã«ååãªRAMãå²ãåœãŠãŸãã
â SWAPãç¡å¹ã«ããªãã§ãã ããã
SWAPã®åäœã¯ãCephã®åäœã ãã§ãªããäžè¬çãªLinuxã®åäœå šè¬ã§ãã ããã«åããŠããããèŠããŠããå¿ èŠããããŸãã
â ã¯ã©ã¹ã¿ãŒè€è£œãããã¯ãŒã¯ã®ããã©ãŒãã³ã¹ãæ倧åããŸãã
100ïŒ ãããã«ã¯10ïŒ ã®éåžžã¢ãŒãã§äœ¿çšããªãã§ãã ããã ããããç·æ¥äºæ ãçºçããå Žåãäœåãªã®ã¬ããããããã°ãããªãã®ç掻ã¯ããç°¡åã«ãªããéåžžã«å€§ãããªããŸãã
â é »ç¹ã«å€æŽãããRBDãªããžã§ã¯ãã®ãµã€ãºãå°ããããããRados Getwayã§ãªããžã§ã¯ãã®ãµã€ãºãå°ãããããããããšãçã«ããªã£ãŠããå ŽåããããŸãã
ãã ãããªããžã§ã¯ãã®ãµã€ãºãå°ããããã«ã¯è¿œå ã®RAMãå¿ èŠã«ãªãããšã«æ³šæããŠãã ããã SWAPãè¿œå ããããšãå¿ããªãã§ãã ãã-ãããæããå¿ èŠã¯ãããŸããã SWAPã¢ã¯ãã£ããã£ããããšããäºå®ã¯ããã»ã©æããããã®ã§ã¯ãããŸãããã·ã¹ãã ãç¹ã«ç©æ¥µçã«äœ¿çšãããŠããªããã®ãå¹ãé£ã°ãå¯èœæ§ãé«ãããã§ãã
â DevOpsConf Russia. . , youtube , DevOps-.