ã¯ããã«
DynamoDBã®ãã£ãã·ãã£ã¼ã¢ã¼ãï¼ãªã³ããã³ã/ãããã¸ã§ãã³ã°ï¼ãåã³ããã«ããéãã«ã¤ãã¦æ¸ããã¨æãã¾ãã
â»èªåã®åå¿é²ãå ¼ãã¦ã¾ãã*1
åæãã®1ï¼ããã£ãã·ãã£ã¼ã¢ã¼ããã£ã¦ï¼
ãã£ããè¨ãã¨ãDynamoDBã®åä½ã¢ã¼ãï¼ã¿ãããªãã®ï¼ãã¨ãªãã¾ãã
DynamoDBã«ã¯ãä¸è¨2ã¤ã®ã¢ã¼ããããã¾ãã
- ãªã³ããã³ãï¼ããã©ã«ãï¼
- ãããã¸ã§ã³ã
ãã£ãã·ãã£ã¼ã¢ã¼ãã«ãã大ããç°ãªãã®ã¯ã主ã«ä»¥ä¸2ã¤ã§ãã
- é«è² è·æã®åä½ï¼âãªã¼ãã¹ã±ã¼ãªã³ã°ï¼
- 課éä½ç³»
åæãã®2ï¼ããªã¯ã¨ã¹ãã¦ããããããã£ãã·ãã£ã¦ããããã£ã¦ï¼
ãªã³ããã³ãã¨ãããã¸ã§ã³ããã©ã¡ãã®ã¢ã¼ãã«ãããDynamoDBã®èª²éã¯ãã¦ããããã§å®æ½ããã¾ãã
ãã®ã¦ãããã§ããããªã³ããã³ãã»ãããã¸ã§ã³ãã§ãããããä¸è¨ã®å称ã¨ãªã£ã¦ãã¾ãã
ã¢ã¼ã | å称 | æ¸ãè¾¼ã¿åä½ | èªã¿è¾¼ã¿åä½ | åè |
---|---|---|---|---|
ãªã³ããã³ã | è¦æ±ã¦ããã(RU) | WRU | RRU | RUã®Rã¯Requestã®R |
ãããã¸ã§ã³ã | ãã£ãã·ãã£ã¦ããã(CU) | WCU | RCU |
ä¸è¦ããããããã§ãããRU/CUå ±ã«èªã¿è¾¼ã¿ã»æ¸ãè¾¼ã¿æã®1ã¦ãããã®å®ç¾©ã¯ã»ã¼åãã§ãä¸è¡¨ã®ããã«ãªã£ã¦ãã¾ããï¼è©³ç´°ã¯åã¢ã¼ãã®èª¬æã§è§¦ãã¾ãï¼
â»æ¸ãè¾¼ã¿/èªã¿è¾¼ã¿å®¹éãå¢ããã¨ããã®åæ¶è²»RU/CUãå¢ãã¾ã
æ¸ãè¾¼ã¿æ
â»1KBã¾ã§ã®æ¸ãè¾¼ã¿ã«å¯¾ãã¦ãä¸è¨ã®WRU/WCUãæ¶è²»ããã
æ¸ãè¾¼ã¿ã¢ã¼ã | æ¶è²»WRU/WCUæ° | åè |
---|---|---|
æ¨æºæ¸ã込㿠| 1 | ããã©ã«ãã¯ãã |
ãã©ã³ã¶ã¯ã·ã§ã³æ¸ã込㿠| 2 |
èªã¿è¾¼ã¿æ
â»4KBã¾ã§ã®èªã¿è¾¼ã¿ã«å¯¾ãã¦ãä¸è¨ã®RRU/RCUãæ¶è²»ãããï¼ãªãæéè¨ç®æã«ã¯ã1æªæºã®ç«¯æ°ã¯1ã«åãä¸ãããã¾ãï¼
èªã¿è¾¼ã¿ã¢ã¼ã | æ¶è²»RRU/RCUæ° | åè |
---|---|---|
çµææ´åæ§ | 0.5 | ããã©ã«ãã¯ããã |
å¼·åãªæ´åæ§ | 1 | |
ãã©ã³ã¶ã¯ã·ã§ã³ | 2 |
ãªã³ããã³ãã¢ã¼ã
ãªã³ããã³ãã¢ã¼ãã¯ãããããã使ã£ãï¼ï¼èªã¿æ¸ãããï¼åã ãæéãæ¯æããã¢ã¼ãã§ããï¼ãµã¼ãã¼ã¬ã¹ã£ã½ãåä½ï¼
以ä¸ã®ç¹å¾´ãããã¾ãã
ç´°ããè¨å®ã»ç®¡çãä¸è¦
ã使ã£ãåã ãæããã¢ã¼ããªã®ã§ãäºåã«ããããç´°ããè¨å®ãä¸è¦ã§ãã¨ããããDynamoDBã使ã£ã¦ã¿ããã®ã«åãã¦ãã¾ãã
ãã®ããããããããå©ç¨ç¶æ³ã®äºæ¸¬ãåºæ¥ãªãã¦ã使ç¨å¯è½ã§ãã
ãªã¯ã¨ã¹ãæ°ã®å¤åã«å¼·ã
ãªã¯ã¨ã¹ãæ°ã®æ¥æ¿ãªå¤åã«ãDynamoDBå´ã§æè»ã«å¯¾å¿ãã¦ãããã®ã§ï¼Auto Scallingï¼ãäºæ³å¤ã®ãªã¯ã¨ã¹ãã«ãå¼·ãã§ããï¼ãã¡ããé度ã¯ããã¾ãï¼
課éä½ç³»
- èªã¿è¾¼ã¿ã»æ¸ãè¾¼ã¿ãªã¯ã¨ã¹ãã§æ¶è²»ããWRU/RRUã«å¯¾ãã¦èª²éããã¾ãã
- èªã¿è¾¼ã¿ã»æ¸ãè¾¼ã¿ãªã¯ã¨ã¹ãã§æ¶è²»ããWRU/RRUã¯ãåæãã®2ãã®è¡¨ã®éãã§ãã
â»ãã£ãã·ãã£ã¢ã¼ãã¨éãã1ç§å½ãããã¨ããæ¡ä»¶ã¯ããã¾ãããï¼ããã¾ã§ãå®éã«æ¶è²»ããWRU/RRUã«å¯¾ãã課éï¼
ãããã¸ã§ã³ãã¢ã¼ã
ãããã¸ã§ã³ãã¢ã¼ãã¯ãæ³å®ãããæ¶è²»WRU/RCUãäºåã«è¨å®ãã¦ããã¢ã¼ãã§ãã
ãªã³ããã³ãã¢ã¼ãã¨éããããç¨åº¦éç¨ç®¡çã®æéãçºçãã¾ããããã®åã³ã¹ãã¯ãªã³ããã³ãããæããããå¾åãããã¾ãã(ãã§ãã©ã£ã¡ã使ãã¹ãï¼ï¼ã¦ã¼ã¹ã±ã¼ã¹ï¼ããåç
§)
ãªããå³å¯ã«ããã¨ãä¸è¨é ç®ãäºåã«è¨å®ããå¿ è¦ãããã¾ããï¼èªã¿è¾¼ã¿/æ¸ãè¾¼ã¿å ±ã«ï¼
- æå°ï¼æ大ãã£ãã·ãã£ã¦ããã
- 使ç¨ç
- ãããã¸ã§ã³ãããæåã®ã¦ããã*2
ç¹å¾´ã¨ãã¦ã¯ã以ä¸ã®éãã§ãã
ãªã³ããã³ãã¢ã¼ãããå®ä¾¡ã«ãªãå¾åããã
å価ããªã³ããã³ãã¢ã¼ãããå®ä¾¡ãªããããªã³ããã³ãã¢ã¼ãããã³ã¹ããæããããå¾åãããã¾ãã
ä¸ï½å¤§è¦æ¨¡ãªä½¿ç¨ã«åãã¦ãã
è¦æ¨¡ã大ãããªãã°ãªãã»ã©ãå価ããªã³ããã³ãã¢ã¼ãããå®ä¾¡ãã®å½±é¿ã大ãããªã£ã¦ãã¾ãã
ãã®ããè¦æ¨¡ã大ããã»ã©ãããã¸ã§ã³ãã¢ã¼ãã®æ©æµã大ããã§ããï¼ãããã¸ã§ã³ãã¢ã¼ãã使ç¨å¯è½ãªãã°ï¼
課éä½ç³»
- ãäºåã«è¨å®ããWCU/RCUãã«å¯¾ãã¦èª²éãçºçãã¾ãã
- å®éã«æ¶è²»ããWCU/RCUã¯é¢ä¿ããã¾ãã
- ã1ç§ããããã§WCU/RCUãæ¶è²»ãã¾ãã
- ãªã³ããã³ãã¢ã¼ãã¨éããæéã®æ¡ä»¶ãããã¾ãã
ãªã1ç§ãããã«æ¶è²»ããWCU/RCUã¯ãåæãã®2ãã®è¡¨ã®éãã§ãã
ã§ãã©ã£ã¡ã使ãã¹ãï¼ï¼ã¦ã¼ã¹ã±ã¼ã¹ï¼
ä¸çªæ°ã«ãªããã©ã¡ãã使ãã¹ããªã®ããã§ãããå人çã«ã¯ä¸è¨ã§ã¯ãªããã¨æãã¾ãã
ãªã³ããã³ãã¢ã¼ããè¯ãã±ã¼ã¹
æ¯è¼çå°è¦æ¨¡ãªå ´å
ãããã¸ã§ã³ãã¢ã¼ãã®èª¬æã§è¿°ã¹ãéããè¦æ¨¡ã大ãããªãã»ã©ãããã¸ã§ã³ãã¢ã¼ãã¨ãªã³ããã³ãã¢ã¼ãã®å·®ã¯å¤§ãããªããã¡ãã§ãã
éã«ããã¨ãè¦æ¨¡ãå°ããå ´åã¯ããã¾ã§å·®ãçºçããªãã®ã§ãéç¨ç®¡çã³ã¹ããèããã¨ãªã³ããã³ãã¢ã¼ãã®æ¹ãè¯ãå ´åãå¤ãã§ãã
å©ç¨ç¶æ³ãäºæ¸¬ä¸å¯è½ãªå ´å
ãããã¸ã§ã³ãã¢ã¼ãã¯ãããããWCU/RCUãè¨å®ãã¦ããå¿ è¦ãããã®ã§ãå©ç¨ç¶æ³ãäºæ¸¬ã§ããªãã¨ä½¿ç¨ãã¥ãããã¹ããããªã³ã°ã®çºçã«ãã¤ãªãã£ã¦ãã¾ãã¾ãã
ãªã³ããã³ãã¢ã¼ãã¯ãã®ããããDynamoDBå´ãæè»ã«å¯¾å¿ãã¦ãããã®ã§ãå©ç¨ç¶æ³ãäºæ¸¬ã§ããªãå ´åãæ±ããããã§ãã
ãããã¸ã§ã³ãã¢ã¼ããè¯ãã±ã¼ã¹
ä¸ï½å¤§è¦æ¨¡ãªå ´å
å è¿°ã®éããè¦æ¨¡ã大ãããªãã°ãªãã»ã©ãããã¸ã§ã³ãã¢ã¼ãã¨ãªã³ããã³ãã¢ã¼ãã®å·®ã¯å¤§ãããªããã¡ãªã®ã§ãä¸ï½å¤§è¦æ¨¡ã«ãªãï¼=è¦æ¨¡ã大ãããªãï¼å ´åãï¼å©ç¨ç¶æ³ãäºæ¸¬ã§ãããªãï¼ãããã¸ã§ã³ãã¢ã¼ãã®ã»ããè¯ããã¨ãå¤ãã§ãã
å©ç¨ç¶æ³ãäºæ¸¬å¯è½ãªå ´å
ãããããå©ç¨ç¶æ³ãäºæ¸¬ã§ãããªãããããã¸ã§ã³ãã¢ã¼ãã®æ¹ãå®ä¾¡ã«æ¸ãã±ã¼ã¹ãå¤ãã§ãã
ãã ãå ç¨è¿°ã¹ãéããå°è¦æ¨¡ã ã¨ããã¾ã§å·®ãçºçããªãã®ã§ãéç¨ç®¡çã³ã¹ããèããã¨ä¸ï½å¤§è¦æ¨¡ãªå ´åã«ãããã¸ã§ã³ãã¢ã¼ãã使ç¨ããã®ãè¯ãããããã¾ããã
å®éã«ãããã¯ãã«å°å ¥ããå ´åã®ä½¿ãæ¹
å®éã«ãããã¯ãã§å°å ¥ããå ´åã¯ã
- ã¾ãã¯ãªã³ããã³ãã¢ã¼ãã§å°å ¥ãããã°ããæ§åãè¦ã
- ãã®å¾ã¡ããªã¯ã¹ã§æ¶è²»WCU/RCUã確èªããWCU/RCUã®ç®æãä»ãï¼åãæ¿ããæ¹ãè¯ãå ´åã¯ããããã¸ã§ã³ãã¢ã¼ãã«åãæ¿ãã
ã¨ããã¹ããããè¸ãã®ãè¯ãã¨æãã¾ãã
ã¡ãªã¿ã«æ¶è²»WCU/RCUã¯ãä¸è¨ã¡ããªã¯ã¹ã§ç¢ºèªã§ãã¾ããï¼ãã®ã¡ããªã¯ã¹ã¯ãããã¸ã§ã³ãã¢ã¼ãã«ããã¦ããå®éã«æ¶è²»ããWCU/RCUæ°ãã示ãã¾ãï¼
- ConsumedWriteCapacityUnitsï¼æ¸ãè¾¼ã¿ï¼
- ConsumedReadCapacityUnitsï¼èªã¿è¾¼ã¿ï¼
åèï¼ DynamoDB ã®ã¡ããªã¯ã¹ã¨ãã£ã¡ã³ã·ã§ã³
ã¾ããããã¸ã§ã³ã¢ã¼ãã¯éç¨ç®¡çã®æéãããç¨åº¦çºçãã¾ãã®ã§ãåã«ã³ã¹ãã ãã§ãªãããããã£ãæéãèæ ®ãã¦ã©ã¡ãã«ããã決ããæ¹ãè¯ãã¨æãã¾ãã
ï¼åèï¼ãããã¸ã§ã³ãã¢ã¼ãã¨ãªã³ããã³ãã¢ã¼ãã®æçåå²ç¹
ä¸è¬çã«ããããã¸ã§ã³ãã¢ã¼ãæã®è¨å®WCU/RCUã«å¯¾ãã¦ãå®éã®ãªã¯ã¨ã¹ãæ°ã14.4%ç¨åº¦ã®å ´åã«ãªã³ããã³ãã¢ã¼ãã¨ãããã¸ã§ã³ãã¢ã¼ãã®éé¡ãä¸è´ãããããã§ãã
ãã£ããè¨ãã¨ãå®éã®ãªã¯ã¨ã¹ãæ°ãããããã¸ã§ã³ãã¢ã¼ãæã®è¨å®WCU/RCUããç®åºãããªã¯ã¨ã¹ãæ°ã®14.4%以ä¸ãªããªã³ããã³ãã¢ã¼ãã®æ¹ãããããè¶ ãããªããããã¸ã§ã³ãã¢ã¼ãã®æ¹ãå®ããã¨ãããã¨ã§ããï¼è©³ç´°ãªè¨ç®æ¹æ³ã¯ä¸è¨è¨äºãåç §ï¼
ã¾ã¨ã
以ä¸ãDynamoDBã®ãã£ãã·ãã£ã¢ã¼ãã®éãã§ããã
ç§èªèº«ããããã¸ã§ã³ãã¢ã¼ãã®ä»æ§ã¯ä½åæ±ã£ã¦ããããããã£ã¦ãã¾ãé¨åãããã®ã§ï¼ç¹ã«è¨å®ã課éä½ç³»ï¼ãå®æçã«è¦ç´ãã¦ããããã¨æãã¾ããã
宣ä¼
2/1(å)ã«å¯å±±ã§éå¬ããããBuriKaigi 2025ãã«ããã¦ãAmazon Aurora ãã¼ã¸ã§ã³ã¢ããã«ã¤ãã¦ãæ¹ãã¦ç解ãã ï½ ãã¼ã¸ã§ã³ã¢ããææ³ã¨æåã³ã¼ãã¸ã®å½±é¿ ï½ãã¨ããã»ãã·ã§ã³ã§ç»å£ããã¦é ããã¨ã«ãªãã¾ããã
å 容ã¨ãã¦ã¯Amazon Aurora ã®ãã¼ã¸ã§ã³ã¢ããæ¦è¦ããã¼ã¸ã§ã³ã¢ããããªããã¨ã§ã®å½±é¿ãã¾ããã¼ã¸ã§ã³ã¢ããæã«æ°ãä»ãããã¨ãªã©ãã話ãããäºå®ã§ãã
ããã§ã¯ãä»åã¯ãã®è¾ºã§
*1:éå»ã«ä½åãæ±ãã¾ãããããã°ã«æ¸ãã¦ãªãã£ãã®ã§ãä»åããæ©ä¼ã ã£ãã®ã§ããã°ã«ãã¾ããã
*2:ãã¼ãã«ã¾ãã¯ã¤ã³ããã¯ã¹ã®éå§æã«ãããã¸ã§ãã³ã°ããã容éããªã³ããã³ããããããã¸ã§ãã³ã°ããã容éã¢ã¼ãã«åãæ¿ããã¨ãããã¼ãã«ã¾ãã¯ã¤ã³ããã¯ã¹ã®ãã©ãã£ãã¯ãå¦çã§ãããããååã«é«ãè¦é ã«è¨å®ããå¿ è¦ããã