PS課ã®ææã§ããRDSã®ã¡ã¢ãªä½¿ç¨çãé«ãã¦å¿é ã«ãªããã¨ã¯ãªãã§ããããã ãã¨ãRDSã®ã¡ã¢ãªä½¿ç¨çã80%ï½90%ã¨ãã£ãé«ãæ°´æºã«ãªã£ã¦ãã¦ããããèªä½ããã¾ãå¿é ããå¿ è¦ã¯ãªããã¨ããå 容ã«ã¤ãã¦ã説æãã¾ãã
CloudWatchãå©ç¨ããã¨RDSã®å種ããã©ã¼ãã³ã¹æ å ±ãé²è¦§ãããã¨ãã§ãã¾ãã ä¾ãã°FreeableMemoryã¡ããªã¯ã¹ãè¦ããã¨ã§ãRDSã®ä½¿ããã¦ããªãã¡ã¢ãªé åã確èªãããã¨ãã§ãã¾ãã
Oracle RDSãä¾ã«ã¨ãã¾ãã ããã客æ§ã§ãOracle RDSã®ã¡ã¢ãªä½¿ç¨çãã常æ80%ï½90%ãããã®éã«ãªã£ã¦ãããã¨ãããã¾ããã ããã«ã¤ãã¦èª¿ã¹ã¾ããã®ã§ããã®çµæãæ¸ãã¦ã¿ããã¨æãã¾ãã
ãã¤ã³ã
- RDBMSã«ããã¦ã¯å¸¸æã¡ã¢ãªä½¿ç¨çãé«ããã¨ã¯é常ã®æåã§ãã
- Oraleã«éãããRDBMSã§ã¯ã¹ãã¬ã¼ã¸ã¸ã®ã¢ã¯ã»ã¹ãæå°åããããã«ãã¼ãã«ãã¤ã³ããã¯ã¹ããã©ã³ã¶ã¯ã·ã§ã³ã»ãã°çãã¡ã¢ãªä¸ã«ãã£ãã·ã¥ãã
- å¤ãã®RDBMSã«ã¦ãã·ã¹ãã ã§å©ç¨å¯è½ãªã¡ã¢ãªã®å¤§é¨å(70ï½80%åå¾ç¨åº¦)ããã£ãã·ã¥ã«å²ãå½ã¦ããã¨ããã¹ãã»ãã©ã¯ãã£ã¹
- Oracle RDSã¤ã³ã¹ã¿ã³ã¹ã¯ããã©ã«ãã§æ大87.5%ã®ã¡ã¢ãªã使ãããè¨å®ããã¦ãã (r4ã¯ã©ã¹ã®å ´å)
- ãã®ä»ã®OSçã®ããã»ã¹ã®ã¡ã¢ãªä½¿ç¨çãä¸ä¹ãããã¦ããããRDSã§ã¯ä½¿ç¨çãå§è¿«ããããªããããã¥ã¼ãã³ã°ããã¦ãã
詳細
以ä¸ã«æ ¹æ ã¨ãªãããã¥ã¡ã³ããè¨å®å¤ãçå±ã«ã¤ãã¦è¨è¼ãã¦ã¿ã¾ãã
Oracleã§ã¯åæåãã©ã¡ã¼ã¿ã®MEMORY_MAX_TARGETããã³MEMORY_TARGETãæå®ãããã¨ã§èªåã¡ã¢ãªãã¥ã¼ãã³ã°ãONã«ãªããã¡ã¢ãªé åã®èªå管çãããã¾ãããããOracle RDSã®ãã©ã¡ã¼ã¿ã°ã«ã¼ãã§ã¯MEMORY_MAX_TARGET/MEMORY_TARGETã¯ããããããã©ã«ãã§ä»¥ä¸ã®éãã§ãã
IF({DBInstanceClassHugePagesDefault}, 0, {DBInstanceClassMemory*3/4})
Huge Pagesæ©è½ãããã©ã«ãã§OFFã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã©ã¹ï¼m4, m3, r3, t2ï¼ã§ã¯ããã®å¤ããDBInstanceClassMemory*3/4ãã«ãªãã¾ããããã¤ã³ã¹ã¿ã³ã¹ã®ã¡ã¢ãªç·éã®3/4...ã¤ã¾ã 75% ãOracleãå©ç¨ããã¡ã¢ãªã®æ大å¤ã«ãªãã¾ãã
ä¸æ¹ã§Huge Pagesæ©è½ãããã©ã«ãã§ONã®ã¤ã³ã¹ã¿ã³ã¹ã¯ã©ã¹(r4, r5, m5ãªã©)ã§ã¯MEMORY_MAX_TARGET/MEMORY_TARGETã0ã«ãªããã®ãã©ã¡ã¼ã¿ãç¨ããèªåã¡ã¢ãªç®¡çãç¡å¹åããã¾ãããã®ä»£ããã«å¥ã®ä»çµã¿(èªåPGA/SGA管ç)ã§ã¡ã¢ãªç®¡çãè¡ãããããã«ãªããSGA_TARGET, PGA_AGGREGATE_TARGETã®äºã¤ã®ãã©ã¡ã¼ã¿ã«ããã¡ã¢ãªé åã®ç®¡çãè¡ããã¾ãã 以ä¸ãããããã®RDSã«ãããããã©ã«ãå¤ã§ãã
sga_target
IF({DBInstanceClassHugePagesDefault}, {DBInstanceClassMemory*3/4}, 0)
pga_aggregate_target
IF({DBInstanceClassHugePagesDefault}, {DBInstanceClassMemory*1/8}, 0)
SGAã¨PGAã足ãã¾ã㨠{DBInstanceClassMemory<em>3/4} + {DBInstanceClassMemory</em>1/8}
ã¨ãªãã¾ãããã¤ã³ã¹ã¿ã³ã¹ã®ã¡ã¢ãªç·éã®87.5%ãOracleã使ç¨ããæ大å¤ã§ãã
ããã«ãã©ã¹ãã¦OSãRDSã¨ãã¦ã®ç£è¦æ©æ§ã®ã¡ã¢ãªä½¿ç¨çãä¸ä¹ãããã¾ãããå¤ãã®ã¯ã¼ã¯ãã¼ãã§æ£å¸¸ã«åä½ããããã«AWSã«ãã£ã¦ãã¥ã¼ãã³ã°ããã¦ãã¾ãã®ã§100%ã«å¼µãä»ãã®ã§ã¯ï¼ã¨ããå¿é ã¯ãã¾ãããã¾ããã
æ°ãä»ããã¹ããã¨
ãããã®çç±ã«ãã£ã¦ãRDSã§å¸¸æ80%ï½90%ãè¶ ãããããªã¡ã¢ãªå©ç¨çã§ã大ããªåé¡ã¨ã¯ãªããªããã¨ããããã§ãã
ããããã®å 訳...ã¡ã¢ãªãé©åã«å©ç¨ããã¦ãããã©ããã«ã¤ãã¦ãStatspackãAWRãªã©ãå©ç¨ãã¦ãã§ãã¯ãããã¨ããã大äºã«ãªã£ã¦ãã¾ãã
ã¾ãCloudWatchã®ã¡ããªã¯ã¹ã«SwapUsageããããã¹ã¯ããã®ä½¿ç¨éãåããããã«ãªã£ã¦ãã¾ãã®ã§ããã¡ããè¦ç£è¦ã§ãã ã¡ã¢ãªã足ããSwapã«è½ã¡ããããªãã¨ãé »çºãã¦ããã°ãã¤ã³ã¹ã¿ã³ã¹ã¿ã¤ãã®å¤æ´ãæ¤è¨ããã»ããããã¨ãããã¨ã«ãªãã§ãããã
ææ å馬 (è¨äºä¸è¦§)
ãµã¼ãã¼ã¯ã¼ã¯ã¹ â æ ªå¼ä¼ç¤¾G-gen å·è¡å½¹å¡CTO
2021 Japan APN Ambassadors / 2021 APN All AWS Certifications Engineers
ãã«ãAWSã¢ã«ã¦ã³ã管çéç¨ããããã¯ã¼ã¯é¢ä¿ã®AWSãµã¼ãã¹ã«é¢ããããã°è¨äºãéå»ã«å·çã
2021å¹´09æããæ ªå¼ä¼ç¤¾G-genã«åºåãGoogle Cloud(GCP)ãå°éã«ãG-genã§ãGoogle Cloud (GCP) ã®æè¡ããã°ãå·çä¸ã