Dockerã®ã軽ãã
ãä»®æ³åæè¡ã¯å©ä¾¿æ§ãé«ããæ§ã ãªã·ã¼ã³ã§æ´»ç¨ããã¦ãã¾ããããããªãããå¾æ¥ã®ä»®æ³åæè¡ã¯ãã¯ãç©çç°å¢ã¨æ¯è¼ããã¨ãèµ·åãé ãããå¦çé度ãè½ã¡ããã¨ãã£ãå¼å®³ããããã¦ã¼ã¹ã±ã¼ã¹ãéããã¦ãã¾ã£ã¦ãããã¨ãããã¾ããã
ãDockerã¯ä»®æ³åæè¡ã§ãããªããå§åçãªã軽ãããå®ç¾ãããã®åé¡ã解決ãã¦ãã¾ããã¾ãããã¼ãã¦ã§ã¢ä»®æ³åãç©çãã·ã³ã¨ã®æ¯è¼ãéãã¦ãDockerã®ã軽ãããè¦ã¦ã¿ã¾ãããã
èµ·åãéã
ããã¼ãã¦ã§ã¢ä»®æ³åã¯ãCPUãã¡ã¢ãªããã¼ããã£ã¹ã¯ãªã©ã®ãã¼ãã¦ã§ã¢ãä»®æ³åãã¦ããããããã¼ãã¦ã§ã¢ãOSã®èµ·åãå¿ è¦ã¨ãªããèµ·åã«ååä½ã®æéãè¦ãã¾ãã
ãä¸æ¹ã§ãã³ã³ããåä»®æ³åã«ããã¦ã¯ãã³ã³ããèµ·åæã«ã¯OSã¯ãã§ã«èµ·åãã¦ãããããã»ã¹ã®èµ·åã®ã¿è¡ããããç§åä½ã®æéã§å®äºãã¾ãã
å¦çãéã
ãOSä¸ã®ã¢ããªã±ã¼ã·ã§ã³ãæä½ããå ´åããã¼ãã¦ã§ã¢ä»®æ³åã«ããã¦ã¯ãä»®æ³åããããã¼ãã¦ã§ã¢ããã³ãã¤ãã¼ãã¤ã¶ã¼ãçµç±ãã¦å¦çãè¡ããã¾ãããã®çµç±ãã¦ããåã ããé常ã®ç©çãã·ã³ãããå¦çã«ä½åãªæéï¼ãªã¼ãã¼ãããï¼ãè¦ãã¾ãã
ãä¸æ¹ã§ãã³ã³ããåä»®æ³åã¯ã«ã¼ãã«ãå ±æãã¦ãããåããã»ã¹ãå¦çãè¡ãã®ã¨åãç¨åº¦ã®æéããããããªããããã»ã¨ãã©ãªã¼ãã¼ããããããã¾ããã
ç©çãã·ã³ã¨ã³ã³ããåä»®æ³åã®æ¯è¼
ãã軽ããã®æ¤è¨¼ã®ä¸è²«ã§ãç©çãã·ã³ã¨æ¯è¼ãã¦ã©ã®ãããã®ãªã¼ãã¼ããããããã®ãã¨ãããã¨ãããsysbenchãã¨ãããã³ããã¼ã¯ãã¼ã«ã使ã£ã¦ãããã©ã¼ãã³ã¹è¨æ¸¬ãã¦ã¿ã¾ããã
ãä»åã®è¨æ¸¬ã§ã¯ãCPUãã¡ã¢ãªããã¡ã¤ã«I/Oã®3ã¤ã®è¦³ç¹ã§ãç©çãã·ã³ãã³ã³ããåä»®æ³åï¼Dockerï¼ããã¼ãã¦ã§ã¢ä»®æ³åï¼VirtualBoxï¼ã®3ã¤ãæ¯è¼ãã¦ãã¾ããçµæã¯æ¬¡ã®ã°ã©ãã®ããã«ãªãã¾ããã
ãç©çãã·ã³ã¨ã³ã³ããåä»®æ³åã®ããã©ã¼ãã³ã¹ã¯ãå ¨ã¦ã®é ç®ã«ããã¦ã»ã¼åçã¨ããçµæã«ãªã£ã¦ãã¾ãã
ãä¸æ¹ã§ããã¼ãã¦ã§ã¢ä»®æ³åã¯ã¡ã¢ãªããã¡ã¤ã«IOã§ã¯ç´2åãCPUã§ã¯ç´5åã®æéãããã£ã¦ãã¾ãã
ããã®çµæãããã³ã³ããåä»®æ³åã§ã¯ãç©çãã·ã³ã¨æ¯è¼ãã¦ããããã©ã¼ãã³ã¹ã®å£åãã»ã¨ãã©ãªããã¨ãåããã¾ãã