ãµã¤ãã¦ãºã¯ã¯ã©ã¦ããã¼ã¹ã®ã°ã«ã¼ãã¦ã§ã¢ãæ¥åæ¹åãµã¼ãã¹ã軸ã«ã社ä¼ã®ãã¼ã ã¯ã¼ã¯åä¸ãæ¯æ´ãã¦ãã¾ãã
MySQL Clusterã®ãã¼ã¿ãã¼ãã§ããndbdï¼ãããã¯ndbmtdï¼ããã»ã¹ã¯ãå é¨çã«ã¯ãã«ããã«ã¹ãã¼ããã·ã³ï¼ãããã¯ï¼ãã·ã°ãã«ï¼ãããã¯ã¡ãã»ã¼ã¸ï¼ã交æããã¨ããæ§é ã«ãªã£ã¦ãããé«ãåæå®è¡æ§ãå®ç¾ãã¦ããã¨ãããã¨ã«ã¤ãã¦ã¯ååè¿°ã¹ãéãã§ãããä»æ¥ã¯ãndbdå é¨ã«ã©ã®ãããªã«ã¼ãã«ãããã¯ãåå¨ãããã¨ãããã¨ã«ã¤ãã¦å¤§ã¾ãã«èª¬æããããååã®è©±ãè¸ã¾ãã¦èªãã§é ããã°ãä½ã¨ãªãã¤ã¡ã¼ã¸ã ãã§ãæ´ããã®ã§ã¯ãªããã¨æããã¾ãã¯æ¬¡ã®çµµãè¦ã¦é ããããããã¯ä¿ºã®è³å ããå¼ã£å¼µãåºããndbdã®æ§é ã®ã¤ã¡ã¼ã¸å³ã§ããã ç¢å°ã¯ãããã¯å士ã®ç¸é¢é¢ä¿ï¼ã·ã°ãã«ã®éåä¿¡ãªã©ï¼ã示ãã®ã ãããã®çµµã«æããã¦ãããã®ã¯é常ã«çç¥ããããã®ã§ãããå®éã«ã¯ãã£ã¨è¤éã«çµ¡ã¿åã£ã¦ããã®ã ã¨ãããã¨ãè¦ãã¦ããã¦æ¬²ãããä¾ãã°QMGRãDBDICTã¨ãã£ããããã¯ã¯ãä»ã®ãããã¯
July 24, 200915:39 ã«ãã´ãªmysqlããã°ã©ãã³ã° ãã¤ã»ãã©ãã¯ãã¼ã« (2) - ããã«ãã¦ç§ã¯ãã©ãã¯ãã¼ã«ã«è¾¿ãçããã ããã°ã®ã¢ã¯ã»ã¹è§£æç¨ã«ä½¿ãã¹ãã¬ã¼ã¸ãé¸å®ããã®ã«å ã ã£ã¦ï¼ãããªæ¡ä»¶ä¸ã§ã®é度æ¯è¼ããã¦ã¿ãã 主ãªå¦çã¯ï¼ããã°æ¯ï¼ãããã¯ãã¼ã¸æ¯ã®ã¢ã¯ã»ã¹æ°ã®ã«ã¦ã³ãã¢ãããã¤ã¾ãï¼ããã°id & è¨äºid ããã¼ã¨ãã¦ï¼memcached ãªã set/incr, sqlãªã insert ã on duplicate key update ã æã®çºè¡ãããã200åã®ããã»ã¹ãï¼ããããå¹³è¡ãã¦ããããã¼ã®ã«ã¦ã³ãã¢ãã(æ¸ãè¾¼ã¿) ãè¡ãï¼ç¶ãã¦å¥ã®ãã¼ã®èªã¿åºããè¡ããã¨ããå¦çã500åç¹°ãè¿ãã(åè¨10ä¸åã®ã«ã¦ã³ãã¢ããã¨10ä¸åã®èªã¿åºãã«ç¸å½ã)ã¹ãã¬ã¼ã¸ã¯ï¼ãã³ããã¼ã¯ãè¡ãã¹ã¯ãªããã¨ã¯å¥ã®ãµã¼ãä¸ã«ããï¼å¿ ããããã¯ã¼ã¯
ååã®ã¨ã³ããªã¼ãã¼ã¿ãã¼ã¹ãç¨ããã»ãã·ã§ã³ãã¼ã¿ç®¡çã«ã¤ãã¦ã§ãMySQL ã¨ã¡ã¢ãªã®é¢ä¿ã«ã¤ãã¦è¯ãåãããªãé¨åãããã¨æ¸ãã¾ããã å®ã¯ããã«é¢ããç解ã¯ããªãææ§ãªé¨åããã£ã¦ã調æ»ãã¦è¿½è¨ãã¾ããã¨ãã«ã¡ã¢ãªå©ç¨éã«ã¤ãã¦ãmysqld ã®ããã»ã¹ãå©ç¨ã§ããã¡ã¢ãªã®ä¸éãã32bit OS ã®å ´åã¯3G ç¨åº¦ã¨ãããã¨ã¯ãinnodb_buffer_pool_size ããã®å¶éãåããããã«ã¤ãã¦ã®è¦åããå ã«ç´¹ä»ãããªãã¡ã¬ã³ã¹ããã¥ã¢ã«ã®ãã®ã¨ããç解ã ãã©ããã®ã ãããã¨ããã®ã1ã¤ã 2 ã¤ç®ã¯ããã®ç解ããã£ã¦ããã¨ããã¨ã4G 以ä¸ã®ã¯ã©ã¹ã®ã¡ã¢ãªãã¤ãã ãµã¼ããDB ãµã¼ãã¨ãã¦å©ç¨ããå ´åã64 bit OS ã§ãªãã¨ãªã½ã¼ã¹ã®æå¹æ´»ç¨ãã§ããªãããããã¨ããå ã«æ¸ããã¨ãããOS ã¬ãã«ã®ãã£ãã·ã¥ã¨ãã¦å©ç¨ã§ãããããçµæã¨ãã¦ãã¼ã¿ãã¡ã¤ã«ãèªã¿è¾¼ã
ã©ããã£ã¦ããããããSQLãã¼ãã«æ¥ç¶ããã°ãããã ï¼ ãã¼ããã©ã³ã¹ã¯ï¼ ãã§ã¤ã«ãªã¼ãã¼ã¯ï¼ ã¨ãããã¨ãããã¨æãããã®ãã¼ããæ±ã£ãããã¥ã¡ã³ãã¯ããããã ã¡ããã©è¯ããã®ãè¦ããããªãããããããã®ç¹ãæ確ã§ãªãããã«ããããæè¿ãµã¤ãã®ãã©ãã£ãã¯ãå¢ãã¦ãããã¨ã ãããã£ã¡ãMySQL Clusterã試ãã¦ã¿ãããï¼ãã¨ããæ°ã«ãªãããå¤ãã®äººãå©ç¨ãèºèºã£ã¦ãã¾ã£ã¦ããã®ã§ã¯ãªãã ãããï¼ãªã®ã§ä»æ¥ã¯ãã®ç¹ã«ã¤ãã¦5ãã¿ã¼ã³ã®ã½ãªã¥ã¼ã·ã§ã³ãç´¹ä»ãããã¨æãã ãã®åã«ããMySQL Clusterã£ã¦ä½ã ï¼ã·ã©ãã¼ã¨ï¼ãã£ã¦äººã¯ãMySQL Clusterã®ç¹å¾´ãã»ããã¢ããæ¹æ³ãªã©ã以åã«ThinkITã¸æ稿ããã®ã§ãã¡ããåç §ãã¦è²°ãããã http://www.thinkit.co.jp/article/95/ ã§ã¯æ¬é¡ã 1. mysqldãã¢ããªã¨å ±åæãã
åæå¯è½ãªSQLãã¼ã¿ãæ´ããã«ã¯ãSQLè¨èªã®ä¸ã§ãç¹å®ã®ç¯ãæ¼ç®åã®ä½¿ãæ¹ãç解ããå¿ è¦ããããæ¬ç¨¿ã§ç´¹ä»ããTipsã§ã¯ãæãçµæãå¾ãããã«ã¯ã©ã®ããã«ã¹ãã¼ãã¡ã³ããæ§ç¯ããã°ãããã¨ãããã¨ãç´¹ä»ããã é©åãªæå³ãæã¤ããã«ãã¼ã¿ãæ´ããã®ã¯ã ãã¨ãã«ã¯ãåç´ã«ã½ã¼ããè¡ãã ãã§ããå ´åããããã¾ããã¨ãã«ã¯ã°ã«ã¼ãåãè¡ã£ã¦åæãè¦ç´åããå¿ è¦ãããå ´åãããã幸ããSQLã§ã¯å¤æ°ã®ç¯ãæ¼ç®åãæä¾ããã¦ãããããããããç¨ãã¦ã½ã¼ããã°ã«ã¼ãåãè¦ç´åãè¡ããã¨ãå¯è½ã ã以ä¸ã«è¿°ã¹ãTipsãèªãã°ããã¤ã½ã¼ããè¡ãã¹ããããã¤ã°ã«ã¼ãåããã¹ãããããã¦ãã¤ã©ã®ããã«è¦ç´åããã¹ããããæ確ã«ç解ã§ããããã«ãªãã ãããããããã®ç¯ã¨æ¼ç®åã«é¢ãããã詳ããæ å ±ã¯Books Onlineãåç §ãã¦æ¬²ããã ï¼1ï¼ã½ã¼ãã«ãã£ã¦é çªãå®ãã ããã¦ãã®å ´åããã¼ã¿ã«ã¨ã£ã¦
ã¡ã³ããã³ã¹
ãç¥ãã
é害
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}