ãã®è¨äºã¯ãè² è·ãã¹ãåå¦è
åãã®è¨äºã®ç¬¬ 1 åã¨ãã¦ãè² è·ãã¹ãã¨ã¯ï¼ããAWSä¸ã§ã®è² è·ãã¹ãã®æ¹æ³ãã解説ãã¦ãã¾ãã
次åã®è¨äºä»¥éã«ã¦ãã Distributed Load Testing on AWS ããå©ç¨ãã¦å®éã«è² è·ãã¹ããå®æ½ããã¾ã§ã®è©¦é¨è¨ç»ãå®æ½ã¾ã§ã®æµãã解説ãã¾ãã
ããã«ã¡ã¯ï¼ã¨ã³ã¿ã¼ãã©ã¤ãºã¯ã©ã¦ãé¨ã¯ã©ã¦ãã³ã³ãµã«ãã£ã³ã°èª²ã®æ¥é«ã§ãã ããç§ã®ãã¨ãå°ãã§ãç¥ãããã¨æã£ã¦ããã ãããªããç§ã®å¾è¼©ãæ¸ãã¦ããã以ä¸ã®ããã°ãè¦ãã¦ã¿ã¦ãã ããã
- ã¯ããã«
- è² è·ãã¹ãã®åºç¤
- è² è·ãã¹ãã®é²ãæ¹
- AWSã§ã®è² è·ãã¹ããã¼ã«
- ã¾ã¨ã
ã¯ããã«
ç¾å¨ãç§ã¯ ANGEL Dojo 2024 ã¨ãã 3 ã¶æéã§ãµã¼ãã¹ã®ä¼ç»ããéçºã¾ã§è¡ããã¬ã¼ãã³ã°ã«åå ããã¦ãã¾ãã
â»ANGEL Dojo 2024 ã«ã¤ãã¦è©³ããã¯ä»¥ä¸ã®è¨äºãã覧ãã ããã
ããã§ãå®éã«ä½æãããµã¼ãã¹ã稼åãã¦ãã AWSç°å¢ ã«ããã¦ãã·ã¹ãã ãæ³å®ãããã¦ã¼ã¶ã¼æ°ã«å¿ãã¦ã¹ã±ã¼ã«ã§ããã®ããã¾ããã®è² è·ã«èããããã®ããæ¤è¨¼ãããã¨èãã¾ããã
ããããå½æç§ã«ã¯è² è·ãã¹ãã¯å
¨ãã®æªçµé¨ã§ããã
ããã§ãéå»ã®ç§ã¨åãããã«è² è·ãã¹ãã«è©³ãããªãæ¹ã«åãã¦ãè² è·ãã¹ãã®åºç¤ãããå®éã«ã©ã®ããã«è©¦é¨ãè¨ç»ããç®æ¨æ§è½ãè¨å®ãã¦ãããã¨ãã£ãæèã®æµããè¨è¼ãã¦ããã¾ãã
ã¾ããæ¬è¨äºã§ç´¹ä»ãã¦ããå®è·µå
容ã¯ãè² è·ãã¹ã on AWS ã®ããã ãåèã«ãã¦ãã¾ãã
ãã®ãããè¨äºå
ã§ã¯åã¬ã¤ãã®å
容ãå¼ç¨ã»åèã«ããç®æãããã¤ãå«ã¾ãã¦ãã¾ãã
è² è·ãã¹ãã®åºç¤
è² è·ãã¹ãã¨ã¯ä½ã
è² è·ãã¹ãã¨ã¯ãã¢ããªã±ã¼ã·ã§ã³ã«æå³çã«é«ãè² è·ãããããã®æ§è½ã確èªããããã®ãã¹ãã§ãã
ã·ã¹ãã ãã©ãã ãã®ã¦ã¼ã¶ã¼ã«èãããããããã©ãã«ããã©ã¼ãã³ã¹ã®ããã«ããã¯ãããã®ããææ¡ããããã«è¡ããã¾ãã
è² è·ãã¹ãã§ã¯ãããã©ã¼ãã³ã¹ï¼æ§è½ï¼ãã確èªãã¾ãããããã«ã¯ä¸»ã«ä»¥ä¸ã®2ã¤ã®è¦³ç¹ãããã¾ãã
- å¦çéï¼ã¹ã«ã¼ãããï¼
- å¦çæéï¼ã¬ã¹ãã³ã¹ã¿ã¤ã ï¼
ãã®2ã¤ã®è¦³ç¹ããã·ã¹ãã ã®å¿çæ§ãèä¹ æ§ãè©ä¾¡ããããã®éè¦ãªææ¨ã¨ãªãã¾ãã
å¦çéï¼ã¹ã«ã¼ãããï¼
ã¹ã«ã¼ãããã¯ãåä½æéï¼é常1ç§ï¼ãããã«å¦çããããªã¯ã¨ã¹ãã®æ°ã示ãã¾ãã
ãªã³ã©ã¤ã³ã¢ããªã±ã¼ã·ã§ã³ã§ã¯ãç§éã«å¦çã§ãããã©ã³ã¶ã¯ã·ã§ã³æ°ï¼TPS: Transactions Per Secondï¼ããªã¯ã¨ã¹ãæ°ï¼RPS: Requests Per Secondï¼ã§å®ç¾©ããã¾ãã
ã¾ããªã¯ã¨ã¹ãæ°ã¯ããªã¯ã¨ã¹ãã®æ° ï¼ åææ¥ç¶ã¦ã¼ã¶ã¼æ° à ãªã¯ã¨ã¹ãçºè¡é »åº¦ ã§è¡¨ããã¨ãã§ãã¾ãã
- åææ¥ç¶ã¦ã¼ã¶ã¼æ°ï¼åæã«ãªã¯ã¨ã¹ããéä¿¡ãã¦ããã¦ã¼ã¶ã¼ã®æ°ã
- ãªã¯ã¨ã¹ãçºè¡é »åº¦ï¼1ç§éã«ã¦ã¼ã¶ã¼ãéããªã¯ã¨ã¹ãã®åæ°ãããªã¯ã¨ã¹ããéãééã
ä¾ãã°ã10人ã®ã¦ã¼ã¶ã¼ã1ç§éã«1åãã¤ãªã¯ã¨ã¹ããéãå ´åãã¹ã«ã¼ãããã®çè«å¤ã¯10RPSã§ãã
ãã ããå®éã®ã¹ã«ã¼ãããã¯ã·ã¹ãã ã®å¦çè½åã«ä¾åãã¾ããã·ã¹ãã ãå¦çè½åãè¶
ããè² è·ãåããã¨ãã¹ã«ã¼ãããã¯çè«ä¸ã®æ大å¤ã«éãããæ§è½ãä½ä¸ãã¾ãã
å¦çæéï¼ã¬ã¹ãã³ã¹ã¿ã¤ã ï¼
ã¬ã¹ãã³ã¹ã¿ã¤ã ã¯ãã¦ã¼ã¶ã¼ããã®ãªã¯ã¨ã¹ããå¦çããã®ã«ãããæéã§ãã
ã¦ã¼ã¶ã¼ã«ã¨ã£ã¦éè¦ãªã®ã¯ããªã¯ã¨ã¹ããã©ãã ãéãå¦çããããã§ãã
ã¬ã¹ãã³ã¹ã¿ã¤ã ãçãã»ã©ãã¦ã¼ã¶ã¼ã¯ã¢ããªã±ã¼ã·ã§ã³ãå¿«é©ã«å©ç¨ã§ãã¾ãã
ã¬ã¹ãã³ã¹ã¿ã¤ã ã®è©ä¾¡ã«ã¯ãåã«å¹³åå¤ã使ãã®ã§ã¯ãªãããã¼ã»ã³ã¿ã¤ã«å¤ãç¨ãããã¾ãã
ãã¨ãã°ã95ãã¼ã»ã³ã¿ã¤ã«ã§3ç§ä»¥å
ãã¨ã¯ãå
¨ãªã¯ã¨ã¹ãã®ãã¡95%ã3ç§ä»¥å
ã«å®äºãããã¨ãæå³ãã¾ãã
ãã®ããã«ãã¼ã»ã³ã¿ã¤ã«å¤ã使ããã¨ã§ãæ§è½ã®å®å®æ§ãä¸é¨ã®é ããªã¯ã¨ã¹ããã¦ã¼ã¶ã¼ä½é¨ã«ã©ãã»ã©å½±é¿ããããæ£ç¢ºã«ææ¡ã§ãã¾ãã
Tips: ã¬ã¹ãã³ã¹ã¿ã¤ã ãå¹³åå¤ã§ã¯ãªãçµ±è¨çã«è¦ãçç±
ã¬ã¹ãã³ã¹ã¿ã¤ã ãå¹³åå¤ã§ã¯ãªãããã¼ã»ã³ã¿ã¤ã«ãªã©ã®çµ±è¨ææ³ã§è©ä¾¡ããçç±ã¯ãã·ã¹ãã ã®ããã©ã¼ãã³ã¹ã®ã°ãã¤ããããæ£ç¢ºã«ææ¡ããããã§ãã以ä¸ã«ã主ãªçç±ãç°¡æ½ã«èª¬æãã¾ãã
1.å¹³åå¤ã®éç
- å°æ°ã®æ¥µç«¯ã«é ããªã¯ã¨ã¹ãï¼ã¢ã¦ãã©ã¤ã¤ã¼ï¼ããå¹³åå¤ã大ããå¼ãä¸ãã¦ãã¾ããã¨ãããã¾ãã
- ãã®ãããã»ã¨ãã©ã®ãªã¯ã¨ã¹ããé«éã§ããå¹³åå¤ãå®éã®ããã©ã¼ãã³ã¹ãæ£ç¢ºã«åæ ããªããã¨ãããã¾ãã
2.ãã¼ã»ã³ã¿ã¤ã«ã®å©ç¹
- ãã¼ã»ã³ã¿ã¤ã«ã¯ãå ¨ãªã¯ã¨ã¹ãã®ä¸ã§ä½ãã¼ã»ã³ããã©ã®æéå ã«å¦çããããã示ãã¾ãã
- ãã¨ãã°ã95ãã¼ã»ã³ã¿ã¤ã«ã§3ç§ãªããå ¨ãªã¯ã¨ã¹ãã®95%ã3ç§ä»¥å ã«å¦çããããã¨ãæå³ãã¾ãã
- ããã«ãããå®éã®ããã©ã¼ãã³ã¹ãã©ã®ç¯å²ã«åã¾ã£ã¦ããã®ããåããã¾ãã
3.ã¦ã¼ã¶ã¼ä½é¨ã®åæ
- å¤ãã®ã¦ã¼ã¶ã¼ãã©ããããã®æéã§å¿çãå¾ãããããæ£ç¢ºã«ææ¡ã§ãã¾ãã
å°æ°ã®é ããªã¯ã¨ã¹ããå¹³åå¤ã«å½±é¿ããã®ã§ã¯ãªããã»ã¨ãã©ã®ã¦ã¼ã¶ã¼ä½é¨ãåºã«è©ä¾¡ã§ãããããã·ã¹ãã ã®å¥å ¨æ§ãææ¡ãããããªãã¾ãã
SLAãSLOã«å¯¾å¿
å¤ãã®ãµã¼ãã¹ã¬ãã«ç®æ¨ï¼SLOï¼ããµã¼ãã¹ã¬ãã«åæï¼SLAï¼ã§ã¯ããã¼ã»ã³ã¿ã¤ã«ã使ã£ã¦ç®æ¨ãè¨å®ããã¾ãã
- ä¾ãã°ã95ãã¼ã»ã³ã¿ã¤ã«ã§2ç§ä»¥å ãã¨ãã£ãå½¢ã§ãããç¾å®çã§ã¦ã¼ã¶ã¼ä½é¨ã«åºã¥ããç®æ¨ãè¨å®ã§ãã¾ãã
ãã¼ã»ã³ã¿ã¤ã«ã使ããã¨ã§ãã·ã¹ãã ã®ããã©ã¼ãã³ã¹ãããæ£ç¢ºã«ææ¡ã§ããã¦ã¼ã¶ã¼ä½é¨ããµã¼ãã¹ã¬ãã«ç®æ¨ã«ã対å¿ããè©ä¾¡ãå¯è½ã«ãªãã¾ãã
ãã®ãããå¹³åå¤ã§ã¯ãªãçµ±è¨çææ³ã§è©ä¾¡ãããã¨ãä¸è¬çã§ãã
ãªãå®æ½ããã®ã
è² è·ãã¹ãã®ç®çã¯ãã¢ããªã±ã¼ã·ã§ã³ããã¸ãã¹ã®è¦æ±ã«å¿ããæ§è½ãæã£ã¦ããã確èªãããã¨ã§ãã
ã¢ããªã±ã¼ã·ã§ã³ã®ãæ§è½ã足ããªããã¨ã¯ãã¹ã«ã¼ããããã¬ã¹ãã³ã¹ã¿ã¤ã ããã¸ãã¹ã®è¦æ±ã«å¿ããããªãç¶æ
ãæãã¾ãã
â»åç»é ä¿¡ãµã¼ãã¹ã®ä¾
- ã¹ã«ã¼ãããä¸è¶³ï¼æ°ä½æ ç»ã®å ¬éæãå¤ãã®ã¦ã¼ã¶ã¼ãåæã«ã¢ã¯ã»ã¹ããã¨ãå¦çè½åã足ããããµã¤ãã«ã¢ã¯ã»ã¹ã§ããªããåç»ãåçã§ããªããªã©ã®åé¡ãçºçããå¯è½æ§ãããã¾ãã
- ã¬ã¹ãã³ã¹ã¿ã¤ã é 延ï¼åç»ã®åçãé ãã¨ãã¦ã¼ã¶ã¼ã¯é¢è±ããä»ã®ãµã¼ãã¹ã«ç§»ããªã¹ã¯ãããã¾ãã
ä¾ã«æããéããã¢ããªã±ã¼ã·ã§ã³ããã¸ãã¹è¦æ±ã«å¿ãããããã確èªãããã¼ã¯æã®ããã©ã¼ãã³ã¹ãéçæ§è½ãææ¡ãããã¨ã¯é常ã«éè¦ã§ãã
è² è·ãã¹ãã§ã¯ããã®ãããªãã¸ãã¹ä¸ã®æ失ãé²ãããã«å®æ½ãã¾ãã
å®ç¾©
è² è·ãã¹ãçã®æ§è½ã«é¢ãã試é¨ã®å称ã¯ãã¾ãã¾ãªãã®ãæãããã¦ãã¾ãã
ãã®ç« ã§ã¯è² è·ãã¹ãã®è¨èã«ã¤ãã¦å®ç¾©ãã¦ããã¾ãã
ã¾ããè² è·ãã¹ãã®å®ç¾©ãæ§è½è©¦é¨ã®ç¨®é¡ã»å®ç¾©ã«ã¤ãã¦ã¯ãè² è·ãã¹ã on AWS ã®ããã 第 2 å : è² è·ãã¹ããè¨ç»ããã - æ¬é¡ã«å ¥ãåã« : æ§è½è©¦é¨ã®ç¨®é¡ã¨è¨èã®å®ç¾©ã§é常ã«ãããããã解説ããã¦ãã¾ããä»åã¯ããã®ä¸ããç¹ã«éè¦ãªé¨åãæç²ãã¦ç´¹ä»ããã¦ããã ãã¾ãã
çµè«ï¼è² è·ãã¹ã on AWS ã®ããã 第 2 å : è² è·ãã¹ããè¨ç»ããã ã®æç²ï¼
- æ§è½è©¦é¨ : ã·ã¹ãã æ§è½ãæ ä¿ããããã«å®æ½ãããã¹ãå ¨ä½ãæããã®ã¨ãã¦å®ç¾©ãã¾ãã以ä¸ã§æãã試é¨ç¨®å¥ããã¹ã¦å å«ããããã¹ãã®å¤§ã㪠1 ã«ãã´ãªãæãã¾ãã
- è² è·ãã¹ã : ãè² è·ã¯ã©ã¤ã¢ã³ããç¨ãã¦ããªã³ã©ã¤ã³å¦çã®è² è·ãçºçããããã¹ããã¨ãã¦å®ç¾©ãã¾ããããªãã¡ã以ä¸ã§æãã試é¨ç¨®å¥ã®ãã¡ãâ¡ãã¼ã¯æ§è½è©¦é¨ããâ¢éçæ§è½è©¦é¨ããâ£é·æéè² è·è©¦é¨ããâ¦ãªã³ã©ã¤ã³ã»ãããä¸¦èµ°è² è·è©¦é¨ãããã®å¯¾è±¡ã¨ãªãã¾ãã
- ãªã³ã©ã¤ã³åæ§è½è©¦é¨ï¼åä½ã§ã¬ã¹ãã³ã¹ã¿ã¤ã ã測å®ããåé¡ããªãã確èªããã
- ãã¼ã¯æ§è½è©¦é¨ï¼å¤§éã®ã¦ã¼ã¶ã¼ãªã¯ã¨ã¹ãã模æ¬ããç®æ¨ã¨ããè² è·ã§ã¨ã©ã¼ãªããã¬ã¹ãã³ã¹ã¿ã¤ã ãåºæºå ã«åã¾ãã確èªããã
- éçæ§è½è©¦é¨ï¼è² è·ãå¾ã ã«å¢ããã¦ãããã·ã¹ãã ãå¿çã§ããªããªããã¤ã³ãã確èªããããã«ããã¯ãç¹å®ããã
- é·æéè² è·è©¦é¨ï¼é·æéã®è² è·ããããã¡ã¢ãªãªã¼ã¯ãæ§è½å£åãçºçããªãã確èªããã
- ãããåæ§è½è©¦é¨ï¼ãããå¦çãåä½ã§å®è¡ããç®æ¨ã®å¦çæéã«åã¾ãã確èªããã
- ãããè¤å試é¨ï¼è¤æ°ã®ãããå¦çã並走ããç°å¢ã§ãå ¨ä½ã®å¦çæéãåé¡ãªãã確èªããã
- ãªã³ã©ã¤ã³ã»ãããä¸¦èµ°è² è·è©¦é¨ï¼ãªã³ã©ã¤ã³å¦çã¨ãããå¦çã並走ããç°å¢ã§ã両æ¹ã«æ§è½åé¡ããªãã確èªããã
è² è·ãã¹ãã®é²ãæ¹
è² è·ãã¹ãã®é²ãæ¹ã«ã¤ãã¦ã¯ãè² è·ãã¹ã on AWS ã®ããã 第 1 å : è² è·ãã¹ãã®å ¨ä½åãç解ããã - 2. è² è·ãã¹ãã®é²ãæ¹ã§é常ã«ãããããã解説ããã¦ãã¾ãã
ä»åã¯ããã®ä¸ããç¹ã«éè¦ãªé¨åãæç²ãã¦ç´¹ä»ããã¦ããã ãã¾ãã
å ¨ä½å
試é¨è¨ç»
ã¾ãåãã«è¡ãã®ãã試é¨è¨ç»ãã§ãããã®æ®µéã§ã¯ããã¹ãã®ç®çãç®æ¨ã試é¨é
ç®ã決å®ããè² è·ãã¹ãå
¨ä½ã®æ çµã¿ãåºãã¾ãã
è¨ç»ã®æ®µéã§ãã£ããã¨ããåå°ãä½ããã¨ã§ãå¾ã®ãã¹ããã¹ã ã¼ãºã«é²ã¿ã¾ãã
è² è·ãã¹ãã®ç®çã»ç®æ¨ã決å®ãã
- è² è·ãã¹ãã§ã¯ãã·ã¹ãã ãæ³å®ãããæ大ã¢ã¯ã»ã¹éãå¦çã§ããããããã¦ãã®æã«ã¬ã¹ãã³ã¹ã¿ã¤ã ãç®æ¨å ã«åã¾ã£ã¦ãããã確èªãã¾ãã
ä¾ãã°ããªã³ã©ã¤ã³ã·ã§ããã§ã®å¤§è¦æ¨¡ã»ã¼ã«æã®ãã¼ã¯ã¢ã¯ã»ã¹ãããããå¦çã®éè¤ãªã©ãå ·ä½çãªãã¸ãã¹ä¸ã®ã·ãã¥ã¨ã¼ã·ã§ã³ãåºã«ãæ§è½ã®ç®æ¨ãå®ãã¾ãã
ä¾: ãã»ã¼ã«éå§ç´å¾ã«çºçãã大éã®ã¢ã¯ã»ã¹ã«èããããã確èªããã
- ç®æ¨ã®è¨å®ã«ã¯ãéå»ã®å®ç¸¾ãã¼ã¿ããã¸ãã¹ã®äºæ¸¬ãåºã«ãæ大ã¢ã¯ã»ã¹æ°ãã¬ã¹ãã³ã¹ã¿ã¤ã ãæ°å¤åãã¦å®ç¾©ãã¾ãã
è² è·ã·ããªãªã¨è² è·ã¢ãã«ãä½æãã
- 次ã«ãã·ã¹ãã ã«ãããè² è·ã®ã·ããªãªãä½æãã¾ãã
- ä¾ãã°ãã¦ã¼ã¶ã¼ãããããã¼ã¸ã«ã¢ã¯ã»ã¹ããååãæ¤ç´¢ãã¦ã«ã¼ãã«è¿½å ãæçµçã«è³¼å ¥ããã¨ããæµããã·ãã¥ã¬ã¼ããã¾ãããã®ã·ããªãªã«åºã¥ãã¦ãã©ã®æä½ã«ã©ãã ãã®è² è·ãããããã決å®ãã¾ãã
- è² è·ã¢ãã«ã§ã¯ãå ¨ã¦ã®æä½ãåç¾ãããã¨ã¯é£ãããããã¢ã¯ã»ã¹ãã°ãªã©ãåºã«ä¸»è¦ãªãªã¯ã¨ã¹ãï¼80ã90ï¼ ãå ãããã®ï¼ãé¸å®ããããã«åºã¥ãã¦è² è·ãåç¾ãã¾ãã
åææ¡ä»¶ã®è¨å®
- ã·ã¹ãã ã®ããã©ã¼ãã³ã¹ã«å½±é¿ãä¸ããè¦å ã¨ãã¦ããã¼ã¿ãã¼ã¹ã®ãã¼ã¿éããã£ãã·ã¥ã®ç¶æ ãªã©ãèæ ®ããå¿ è¦ãããã¾ãã
- ä¾ãã°ããã¼ã¿ãã¼ã¹ã«å¤§éã®ãã¼ã¿ãæ ¼ç´ããã¦ããç¶æ ãããã£ãã·ã¥ãã¯ãªã¢ãããç¶æ ã§ã®ãã¹ããè¡ããæ¬çªã«è¿ãæ¡ä»¶ã§è² è·ãããã¾ãã ä¾: ãã¼ã¿ãã¼ã¹ã«å¤§éã®ã¬ã³ã¼ããåå¨ããå ´åãæ¤ç´¢å¦çã®ããã©ã¼ãã³ã¹ã«å½±é¿ãåºããããå®éã®ãã¼ã¿éã模å£ããç¶æ ã§ãã¹ããè¡ãã¾ãã
試é¨ç°å¢ã®æ§ç¯
- ãã¹ããå®æ½ããç°å¢ãéè¦ã§ãã
- ã¯ã©ã¦ãã使ç¨ããå ´åã¯ãæ¬çªç°å¢ã¨åãã¹ã±ã¼ã«ã§ãã¹ãç°å¢ãæ§ç¯ããè² è·ã«å¯¾ãã¦æ£ç¢ºãªè©ä¾¡ãè¡ããããã«ãã¾ãã
- 縮å°çç°å¢ã§ã¯å®éã®è² è·ãã¹ãã®å¹æãèãããããã§ããã ãæ¬çªåæ§ã®ç°å¢ãæºåãããã¨ãæ¨å¥¨ããã¾ãã
ç£è¦ãã¼ã«ã®é¸å®
- è² è·ãã¹ãä¸ã«ã¯ã·ã¹ãã ã®åä½ç¶æ³ãç£è¦ããããã®ãã¼ã«ãå¿ è¦ã§ãã
- ã¬ã¹ãã³ã¹ã¿ã¤ã ãã¹ã«ã¼ãããã®æ¸¬å®ããªã½ã¼ã¹ä½¿ç¨çããªã¢ã«ã¿ã¤ã ã§ç¢ºèªãããã¹ãå¾ã®ããã«ããã¯åæã«å½¹ç«ã¦ã¾ãã
試é¨æºå
è¨ç»ãæ´ã£ããã次ã«ã試é¨æºåãã«ç§»ãã¾ããããã§ã¯å®éã«ãã¹ããå®è¡ããããã®ç°å¢ããã¼ã«ãæºåãã¾ãã
試é¨ç¨ã·ã¹ãã ã®æºå
- è² è·ãããã対象ã®ã·ã¹ãã ãã¯ã©ã¤ã¢ã³ãç°å¢ãæ´ãã¾ãã
- ä¾ãã°ããã¼ã¿ãã¼ã¹ãã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ãé©åã«æ§æããã¦ãããã確èªãã試é¨ä¸ã«ä½¿ç¨ãããã¼ã«ï¼ä¾ï¼JMeterï¼ã®è¨å®ãè¡ãã¾ãã
è² è·ã¯ã©ã¤ã¢ã³ãã®è¨å®
- è² è·ããããããã®ã¯ã©ã¤ã¢ã³ãï¼ãã¹ããã¼ã«ï¼ãæºåããã©ã®ãããªè² è·ãã©ã®ã¿ã¤ãã³ã°ã§ãããããã·ããªãªã«åºã¥ãã¦è¨å®ãã¾ãã
- åæ£åã®è² è·ãã¹ããã¼ã«ã使ãå ´åãã¯ã©ã¤ã¢ã³ãæ°ãè² è·éãèªç±ã«èª¿æ´ã§ãããããã¹ã ã¼ãºãªãã¹ãå®æ½ãå¯è½ã§ãã
ãã¼ã¿ä½æ
- ãã¹ããè¡ãéã®ãã¼ã¿ãã¼ã¹ã®ç¶æ ãæ´ãããã¨ãéè¦ã§ãã
- ãã¼ã¿ãã¼ã¹ã«å¤§éã®ãã¼ã¿ãæ ¼ç´ããã¦ããç¶æ ãããã£ãã·ã¥ãã¯ãªã¢ãããç¶æ ã§ãã¹ããè¡ããæ¬çªç°å¢ã«è¿ãæ¡ä»¶ã§è² è·ãããã¾ãã
ç£è¦ã¨ãã©ãã«ã·ã¥ã¼ãã£ã³ã°ã®æºå
- è² è·ãã¹ãä¸ã«ã·ã¹ãã ã«ä½ãåé¡ãçºçããå ´åãããã«åå ãç¹å®ã§ããããããã°ãã¡ããªã¯ã¹ã®ç£è¦ãã»ããã¢ãããã¾ãã
- ç¹ã«ãã¢ãã¿ãªã³ã°ãã¼ã«ãå©ç¨ãã¦ãããã©ã¼ãã³ã¹ã®åé¡ãæ©æã«çºè¦ã§ããããã«ãããã¨ãéè¦ã§ãã
試é¨å®æ½
ããããè² è·ãã¹ããå®æ½ãã段éã§ãããã¹ãã¯ä¸åã§çµãããã¨ã¯å°ãªããç®æ¨ãéæããããã«è¤æ°åå®è¡ãããã¨ãä¸è¬çã§ãã
ãã®æ®µéã§éè¦ãªã®ã¯ãã·ã§ãããã¨å¼ã°ãããã¹ããç¹°ãè¿ããªãããã¥ã¼ãã³ã°ãã¦ãããã¨ã§ãã
- ã·ã§ããæºå: ã·ã§ããã¨ã¯ãä¸åã®ãã¹ãã®ãã¨ã§ããã©ã®ã·ã§ããã§ä½ã確èªããããä¾ãã°ããã¼ã¯æã®è² è·ã«èããããããããååã®ãã¹ãå¾ã®æ¹åç¹ãã©ã®ããã«å½±é¿ãããããå®ç¾©ãã¾ãã
- ã·ã§ããå®è¡: ãã¹ããã¼ã«ã使ã£ã¦ã·ã¹ãã ã«è² è·ããããçµæã確èªãã¾ãããã®æããã¼ã¿ãã¼ã¹ã®ç¶æ ãä¸å®ã«ä¿ã¤ããã«ãã¼ã¿ã®åæåãªã©ãè¡ãã¾ãã
- ã·ã§ããåæ: ã¹ã«ã¼ãããï¼å¦çé度ï¼ãã¬ã¹ãã³ã¹ã¿ã¤ã ï¼å¿çæéï¼ã確èªããç®æ¨ãéæã§ããããè©ä¾¡ãã¾ããã¾ããã·ã¹ãã ã®ããã«ããã¯ãã©ãã«ããããåæãã¾ãã
çµæè©ä¾¡
è² è·ãã¹ããå®äºãããããã®çµæããã¨ã«ã·ã¹ãã ã®è©ä¾¡ãè¡ãã¾ãã
ãã®è©ä¾¡ãåºã«ãéç¨ä¸ã«ã©ã®ããã«ã·ã¹ãã ãæ¹åããããæ¤è¨ãã¾ãã
- ãã¹ãçµæã®åãã¾ã¨ã: ãã¹ãã§å¾ããããã¼ã¿ãã¾ã¨ããã·ã¹ãã ãã©ã®ãããã®è² è·ã«èããããããã¾ãã¯ã©ããæ¹åã®ä½å°ãããããå ±åãã¾ãã
- ãã¥ã¼ãã³ã°çµæã®æ´ç: ãã¹ãä¸ã«è¡ã£ããã¥ã¼ãã³ã°å 容ãæ´çããããã«ãã£ã¦ã©ã®ãããªå¹æããã£ãããã¾ã¨ãã¾ãã
- 次ã®ã¢ã¯ã·ã§ã³ãæ¤è¨: ãã¹ãçµæãåºã«ãä»å¾ã®æ¹åãéç¨æ¹éã決å®ãã¾ããä¾ãã°ããã¼ã¯æã«ã¹ã±ã¼ãªã³ã°ããåºæºãè¨ããããªã©ã§ãã
AWSã§ã®è² è·ãã¹ããã¼ã«
AWS ã®ãµã¼ãã¹ã¨ãã¦ãAWS Fault Injection Simulatorï¼FISï¼ã¨Distributed Load Testing on AWS ãåå¨ãã¦ãã¾ãã
ããããã¢ããªã±ã¼ã·ã§ã³ã®ãã¹ããç®çã¨ããAWSã®ãµã¼ãã¹ã§ãããç®çã¨ã¢ããã¼ããç°ãªãã¾ãã
以ä¸ã«ãã®éãã説æãã¾ãã
AWS Fault Injection Simulator (FIS)
FIS ãå©ç¨ããç®çã¯ã ã«ãªã¹ã¨ã³ã¸ãã¢ãªã³ã°ãè¡ããã·ã¹ãã ã®èé害æ§ãå復åããã¹ããããã¨ã§ãã
FISã¯ãæ
æã«ã·ã¹ãã ãã¢ããªã±ã¼ã·ã§ã³ã«é害ã注å
¥ãããã¨ã§ãã¢ããªã±ã¼ã·ã§ã³ã®å復è½åãå復æ¹æ³ã確èªãããã¼ã«ã§ãã
ä¾ãã°ãã¤ã³ã¹ã¿ã³ã¹ã®åæ¢ãé
延ãçºçããããããããã¯ã¼ã¯æ¥ç¶ã®æ絶ãªã©ãã·ãã¥ã¬ã¼ããããã¨ãã§ãã¾ãã
ãã®ããã»ã¹ã¯ãã«ãªã¹ã¨ã³ã¸ãã¢ãªã³ã°ãã¨å¼ã°ããé害ãçºçããéã«ã·ã¹ãã ãã©ãåä½ãããã確èªããäºæãã¬åé¡ãããã«ããã¯ãçºè¦ããããã«ä½¿ããã¾ãã
主ãªç¹å¾´ã以ä¸ã«ç¤ºãã¾ãã
- ã·ã¹ãã å ¨ä½ã®éå®³æ³¨å ¥ã·ããªãªãå®è¡ã
- ã¤ã³ã¹ã¿ã³ã¹ãã³ã³ããã®åæ¢ãCPUè² è·å¢å ããããã¯ã¼ã¯ã®åé¡ãªã©ãã·ãã¥ã¬ã¼ã·ã§ã³ã
- ã·ã¹ãã ã®å¾©æ§ããã»ã¹ããªã¼ãã¹ã±ã¼ãªã³ã°ã®åä½ç¢ºèªã
- å©ç¨ã·ã¼ã³: å¯ç¨æ§ãéè¦ãªã·ã¹ãã ããã·ã¹ãã é害æã«ã©ã対å¦ãããããã¹ãããå ´åã«æç¨ã
Distributed Load Testing on AWS
Distributed Load Testing on AWS ãå©ç¨ããç®çã¯ãåæ£è² è·ãã¹ããè¡ããã¢ããªã±ã¼ã·ã§ã³ãã·ã¹ãã ã®ããã©ã¼ãã³ã¹ã確èªãããã¨ã§ãã
Distributed Load Testingã¯ãWebã¢ããªã±ã¼ã·ã§ã³ãAPIãªã©ã«å¯¾ãã¦å¤§éã®ã¦ã¼ã¶ã¼ã¢ã¯ã»ã¹ãã·ãã¥ã¬ã¼ã·ã§ã³ããã·ã¹ãã ã®ã¹ã±ã¼ã©ããªãã£ãããã©ã¼ãã³ã¹ãè©ä¾¡ããããã®ãã¼ã«ã§ãã
ããã«ããããã©ãã£ãã¯ãéä¸ããç¶æ³ã§ã·ã¹ãã ãã©ã®ããã«å¿çããããè² è·ã«èãããããããã¹ããã¾ãã
AWSã®ãã®ãµã¼ãã¹ã¯JMeterããã¼ã¹ã«ãã¦ãããè² è·ãè¤æ°ã®ãªã¼ã¸ã§ã³ã«åæ£ããã¦å®æ½ãããã¨ãå¯è½ã«ãªã£ã¦ãã¾ãã
主ãªç¹å¾´ã以ä¸ã«ç¤ºãã¾ãã
- é«ãã©ãã£ãã¯ã®ã·ããªãªãã·ãã¥ã¬ã¼ã·ã§ã³ããã·ã¹ãã ã®éçã測å®ã
- è² è·åæ£ã®ããã©ã¼ãã³ã¹ãã¹ã±ã¼ãªã³ã°ã®ç¢ºèªã
- ãªã¯ã¨ã¹ãé 延ãã¨ã©ã¼ã¬ã¼ããã¹ã«ã¼ããããªã©ã®ææ¨ãè¨æ¸¬ã
- å©ç¨ã·ã¼ã³: Webã¢ããªã±ã¼ã·ã§ã³ãAPIã®ã¹ã±ã¼ã©ããªãã£ãè² è·å¦çè½åãå¿çæéã測å®ãããå ´åã«æç¨ã
éãã®ã¾ã¨ã
- AWS FISã¯ãã·ã¹ãã ã®èé害æ§ãå復åããã¹ãããããã«æå³çã«é害ãå¼ãèµ·ãããã¼ã«ã§ãã«ãªã¹ã¨ã³ã¸ãã¢ãªã³ã°ã«ç¦ç¹ãå½ã¦ã¦ãã¾ãã
- Distributed Load Testing on AWSã¯ãã·ã¹ãã ã«å¤§éã®ãã©ãã£ãã¯ãããã¦è² è·ãã·ãã¥ã¬ã¼ã·ã§ã³ããããã©ã¼ãã³ã¹ãã¹ã±ã¼ã©ããªãã£ããã¹ããããã¼ã«ã§ãã
ã©ã¡ããã·ã¹ãã ã®å ç¢æ§ããã¹ãããããã«å½¹ç«ã¡ã¾ãããFISã¯ãé害çºçæã®åä½ç¢ºèªããDistributed Load Testingã¯ãé«è² è·æã®ããã©ã¼ãã³ã¹ç¢ºèªãã主ãªç®çã¨ãªãã¨èãã¦ãã¾ãã
ã¾ã¨ã
è² è·ãã¹ãã«ã¤ãã¦å
¨ãã®åå¦è
ã ã£ãã®ã§ãå
¨ä½åãææ¡ããã®ã«è¦å´ãã¾ããã
æ¬è¨äºã誰ãã®å©ãã«ãªãã°å¹¸ãã§ãã
ã¾ããå¾ç·¨ã®è¨äºã§ã¯ãã Distributed Load Testing on AWS ããå©ç¨ãã¦å®éã«è² è·ãã¹ããå®æ½ããã¾ã§ã®è©¦é¨è¨ç»ãå®æ½ã¾ã§ã®æµãã解説ãã¦ããããã¨æãã¾ãã
ããã§ã¯ãã¾ã 次åã®è¨äº ã§ãä¼ããã¾ããã !
æ¥é« å太(å·çè¨äºã®ä¸è¦§)
2024 Japan AWS Jr. Champions / 2024 Japan AWS All Certifications Engineers
ECé¨ã¯ã©ã¦ãã³ã³ãµã«ãã£ã³ã°èª²æå±ã2022å¹´ITæªçµé¨ã§SWXã¸æ°åå
¥ç¤¾ã
è¨äºã«é¢ãããåãåãããä¿®æ£ä¾é ¼â [email protected]