AWSã§microã¤ã³ã¹ã¿ã³ã¹ã使ã£ã¦ãããæ³å®ä»¥ä¸ã«èª²éããã話
ããªãçãç®ãè¦ãã®ã§ãèªæã®æå³ãè¾¼ãã¦ã¡ã¢ã
äºè±¡
- ä»å¹´4æã«,社å åãã«ããç¨éã®ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¨ãã¦ãmicroã¤ã³ã¹ã¿ã³ã¹ä¸ã«Rails + Nginx + MySQLã®ç°å¢ãä½æã
- 6æã§ãã®ã¢ããªã®ç¨éãçµãã£ããããä¸ããã®è¦æã§7æãã£ã±ãã¯24hã§ç¨¼åããã¦ãããã¨ã«ã
- 7/31ã«ãµã¼ããTerminate.
è¦ç©ããã§ã¯ãå©ç¨æéã¯æ°ãã«ã§æ¸ãã¨èãã¦ãã¾ãããå®éã6æã¾ã§ã¯ãã®éãã§ããã
ã§ããã7æåã®å©ç¨æéã確èªãã¦ã¿ãã¨ããªãã¨80ãã«ã課éããã¦ãã¾ããã
ä¸è¨80ãã«ãã¹ã¦ãEBSã®I/Oã«å¯¾ãã¦ã®æéã§ããã ã¤ã³ã¹ã¿ã³ã¹ã®ç¨¼åæéèªä½ã¯ç¡æç¯å²å ã§ãã
7æã¯ã»ã¨ãã©ä½¿ã£ã¦ããªãã®ã«ããªãï¼ã¨èãã¦ã¿ã¾ããã
åå
調æ»ããããã«ããµã¼ãèªä½ã¯Terminateãã¦ããã®ã§ãæã®æã¡ãããããã¾ãããããããå ã¯å ¨ã¦ç§ã®æ¨æ¸¬ã§ãã
ãããæ°ã¥ãã®æ¹ããããã¨æãã¾ãããã¡ã¢ãªãä¸è¶³ãã¦swapé åã«æ¸ãè¾¼ã¿ãçºçãã¾ãã£ãã®ãåå ã§ã¯ãªããã¨èãã¦ãã¾ãã
613MBããã¡ã¢ãªããªãmicroã¤ã³ã¹ã¿ã³ã¹ä¸ã§Rails + MySQLãåããã¨ãå½ç¶ã¡ã¢ãªã¯ä¸è¶³ãã¾ããã§ãswapã«ã¬ãªã¬ãªI/Oãçºçãã¾ãã
å©ç¨ä¸ãä½åº¦ãåèµ·åããããã¦ãã¾ãããã7æã«å ¥ã£ã¦ããã¯æ¾ç½®ç¶æ ãç¶ãã¦ãã¾ãããã§ãã®ã§ãæ¾ç½®ãããåã ãã²ãããã¡ã¢ãªãé£ãç¶ãã¦ãã¾ã£ãã®ã ã¨æãã¾ãã
対ç
ä»åã®ä»¶ã¯ããã©ããããããªãã§ãããä»å¾ã®æè¨ã¨ãã¦ã¯
- (å½ç¶ã§ãã)swapã«å¯¾ãã¦ãEBSã®I/O課éãçºçããï¼
- microã¤ã³ã¹ã¿ã³ã¹ã§ç¡åæ¢ãã³ã°ã©ã³ã¯ãããªãï¼
ããã«å°½ããã®ã§ã¯ãªããã¨æãã¾ãã
microã§80ãã«æããªããm1.smallãä¸ã¶æãã«ã§ç¨¼åãããæ¹ãå®ãã§ãã
ã¨ã¯ãã£ã¦ããã¯ãmicroã®ä½æéã¯é åçãªã®ã§ã使ã£ã¦ããªãå ´åã¯ã·ã£ãããã¦ã³ãããã¨ããéåãå®ããé©å®OS/ããã«ã¦ã§ã¢ã®åæ¢ï¼åèµ·åãããæ¹ãããã¨æãã¾ãã
ããå°ã大ããè¦æ¨¡ã®è©±ãªãã¯ã©ã¦ãç ´ç£ããã¨ããã ã£ããã¨ãã話ã§ããã