JANOG34 ã«ã¼ãã£ã³ã°ãã¥ã¼ããªã¢ã« ã§ã®çºè¡¨è³æã§ã
MySQL 5.6 ã®æ¤è¨¼ä¸ã« MySQL 5.5 ã¨ã¯éãã¿ã¤ãã®ã¬ããªã±ã¼ã·ã§ã³é 延ãè¦ã¤ããã®ã§ç´¹ä»ãã¾ãã MySQL ã®ã¬ããªã±ã¼ã·ã§ã³ã®ãããã MySQL ã®ã¬ããªã±ã¼ã·ã§ã³ã¯æ¬¡ã®ãããªä»çµã¿ã§åä½ãã¦ãã¾ãã ãã¹ã¿ã¼ã®æ´æ°ãã©ã³ã¶ã¯ã·ã§ã³ã binlog ãæ¸ã ã¹ã¬ã¼ãã® I/O ã¹ã¬ããããã¹ã¿ã¼ã«æ¥ç¶ãã binlog ãåå¾ãã relaylog ãæ¸ã. ãã¹ã¿ã¼å´ã¯ã¹ã¬ã¼ãããã®æ¥ç¶ãåãä»ããã¨(dump ã¹ã¬ãã)ãæå®ãããå ´æããææ°ã¾ã§ã® binlog ã転éãã binlog ã追è¨ãããã®ãå¾ ã£ã¦ããã«ã¹ã¬ã¼ãã«éã ã¹ã¬ã¼ãã®SQLã¹ã¬ããã relaylog ãåçãã MySQL 5.5 ã§ãããã£ãã¬ããªã±ã¼ã·ã§ã³é 延 ãã¹ã¿ã¼ã¯ä¸¦åãã¦ãã©ã³ã¶ã¯ã·ã§ã³ãå¦çãã¦ãæçµçã«ã³ãããããé ã§åæ ãããã°åé¡ãªãããã«ãªã£ã¦ãã¾ãã ä¸æ¹ãã¹
ããæè¿ã®ã¤ã³ãã©ç³»æè¡ã®æµããããããããªã¼ãã¨æã£ãã®ã§ãPuppet ãåºã辺ãããããããæ¯ãè¿ã£ã¦æ´çãã¦ã¿ããæ®´ãæ¸ããªã®ã§ãå¾ããä¿®æ£ãããæ¸ãå ããããããããç¹ã«å¾åã®æ¹ã¯ããã¾ãèããæ´çã§ãã¦ãªãã æè¿ã®ã¦ã§ãçéã§ã®ãã¤ã³ãã©ãã¨ããç¨èªã®ä½¿ããæ¹ã«ã¯ãè²ã ç°è«ãããããã ãã©ãããã§ã¯ããæè¿ä½¿ãããããã«ãªã£ã¦ãããOS ããããã«ã¦ã§ã¢ã¨ãã£ãã½ããã¦ã§ã¢ã¬ã¤ã¤ã¼ãæãè¨èã¨ãã¦ã®ã¤ã³ãã©ã«ã¤ãã¦è§¦ãããï¼è±èªåã§ãåæ§ã®æå³ã§ä½¿ããã¦ãããããªã®ã§ãããç¨åº¦å¸æ°æ¨©ãå¾ãã¨è¨ã£ã¦ãè¯ãããã ããï¼ ãããã¸ã§ãã³ã°ã¬ã¤ã¤ã¼ ã¾ããåæç¥èã¨ãã¦ãããã¸ã§ãã³ã°ã¬ã¤ã¤ã¼ã¨èªåãåæã«å¼ãã§ããã®ã«ã¤ãã¦æ´çã Chef ã Puppet ã¯ããããã¸ã§ãã³ã°ãã¬ã¼ã ã¯ã¼ã¯ãã¨ãå¼ã°ãã¦ãããã以ä¸ã®è°è«ãããå³å¯ã«ããããã«ãLee Thompson æ°ã«ãã
MySQL Casual #6ã§@studio3104ãããçºè¡¨ãã¦ããnata2ã触ã£ãã My sql casual talks vol.6 from studio3104_com ã§ãã¨ãããããã¼ã«ã«ã«nata2ãèµ·åãtd-agentãå ¥ãã¦ãã©ã°ã¤ã³ãå ¥ãã¦mysqlslapãå®è¡ãã¦ã¿ãã åä½ç°å¢ã¯Ruby2.1.2ã§ã1.9ç³»ã¯åããªãã£ãã æé ã¯githubã«ãæ¸ããã¦ãããã https://github.com/studio3104/nata2 https://github.com/studio3104/fluent-plugin-nata2 以ä¸ã¯ç°¡åãªæµãã ã¾ãnata2èªä½ã®è¨å®ã git clone https://github.com/studio3104/nata2.git cd ./nata2 bundle install vim ./config
MySQLã³ãã¥ããã£ããã¼ã¸ã£ã®Morgan Tockeræ°ã«ãããMySQL 5.6ãã¤ã³ã¹ãã¼ã«ããå¾ã«ããã©ã«ãå¤ããå¤æ´ããæ¹ããããã©ã¡ã¼ã¿ã®è§£èª¬ã æ°ã ã®ããã©ã«ãå¤ã®æ¹åã«ãã£ã¦ãéå»ã®ãã¼ã¸ã§ã³ã¨æ¯ã¹ã¦MySQL 5.6ã§ã¯è¨å®ããªãã¦ã¯ãªããªãå¤ãããªãæ¸ã£ããã¨ã¯è¨ããå¤æ´ãã¹ããã®ã«ã¤ãã¦ããã§æ¸ãã¦ããããã InnoDBã®è¨å® innodb_buffer_pool_size - ããã©ã«ãã¯128Mãããã¯ãã¡ã¢ãªã«ãã¼ãããããã¼ã¿ã¨ã¤ã³ããã¯ã¹ã®ããã«InnoDBãã©ã®ãããã¡ã¢ãªã使ãããæå®ãããã®ãªã®ã§ãè¨å®ãã¹ãéè¦ãªå¤ã ãMySQLã®å°ç¨ãµã¼ããªããæè¼ããã¦ããã¡ã¢ãªã®50%ãã80%ãæ¨å¥¨ãããè¨å®å¤ã ãä¾ãã°ã64GBã®RAMãæè¼ãã¦ãããµã¼ããªãããããã¡ãã¼ã«ã¯50GBç¨åº¦ã«ãã¹ãã ããã innodb_log_file_size -
MySQLã®ã¹ãã¼ã¯ã¨ãªãã°ãä¸è¦§ããããµãã©ã¤ãºãããåºæ¥ãNata2ã¨ãããã¼ã«ãä½ã£ãã®ã§ãMySQL Casual Talks vol.6ã§çºè¡¨ããã¦ããã£ãã id:oranieãããæ©é試ãã¦ã¿ã¦ããã¦ãæ¸ãã¦ãããããã°ã¨ã³ããªã«ããããã®ãã¯ããã¤ãã¦å¤§å¤ã«ãããããéãã§ãã MySQLã®slow query logãå¯è¦åããnata2ã大å¤ä¾¿å©ãã - iãgã«å¤ããã¨orangeã«ãªããã¨ã«æ°ã¥ããoranieã®æ¥è¨ 使ãæ¹ãªã©ãããå°ã詳ãã çºè¡¨å½æã¯ããã¥ã¡ã³ããã¾ã£ãããªãã¦å¤§å¤ã«éãªæãã ã£ãããçºè¡¨ã§èª¬æããããªãã£ãé¨åããã£ãã®ã§ãããã§æ¹ãã¦å°ã詳ãã解説ããã¾ãã Nata2ã¨ã¯ ãã¼ãºãããã¹ãã¼ã¯ã¨ãªãã°ãHTTP Postã§ç»é²ãã件æ°ã°ã©ããã¹ãã¼ã¯ã¨ãªãã°ã®å±¥æ´ãmysqldumpslowç¸å½ã®ãµãã©ã¤ãºãªã©ã®è¡¨ç¤ºãåºæ¥ãã¦ã§ãã¢ããªã±
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}