Bind Peek ããã£ã¨ä½¿ãããï¼(æ´ç° æ©) - JPOUG Advent Calendar 2014(Day 5) -æ© æ´ç°
ã¡ãªã¼ã¯ãªã¹ãã¹ï¼ï¼ãããè¯ãåã®ã¿ããªï¼ï¼ãµã³ã¿ã¯ãã¼ã¹ã»ã»ã»ã§ã¯ãªãããã²ã¢ã¸ã£ã®ã¼ã¯ããã®ã¯ãªã¹ãã¹ãã¬ã¼ã³ãã ãï¼ï¼ ã¨ããããã§ãMySQL Casual Advent Calendarã®25æ¥ç®ã§ãããä»æAdvent Calendarãè¦ãã¦ã¿ãã¨ãæ¬æ¥åã®ã¨ã³ããªã¼ãç¡ãã£ãã®ã§ãæ¥é½æ¸ããã¨ã«ãããAdvent Calendaræå¾ã®æ¥ãã¯ãªã¹ãã¹ã飾ãè¨äºã®ãã¼ãã¯GTIDã ã ååã®æ稿ã§ã¯ãMySQL 5.6ã®ç®çæ©è½ã¨ãã¦ãã¬ããªã±ã¼ã·ã§ã³ãã¯ã©ãã·ã¥ã»ã¼ãã«ãªã£ããã¨ãæãããã¬ããªã±ã¼ã·ã§ã³ã¾ããã§è¨ãã°ãããã²ã¨ã¤å¤ããªãç®çæ©è½ãããããããGTIDï¼Global Transaction IDï¼ã§ããã GTIDã¯è¯ããæªããã¬ããªã±ã¼ã·ã§ã³ã®éç¨ãå¤åããããGTIDã使ããã¨ã«ãã£ã¦å¾ãããæ大ã®ã¡ãªããã¯ãCHANGE MASTER TOã§ãã¤ããªã
MySQL 5.6ãç»å ´ãã¦ããããªãã®ææ¥ãéããããä»ã®ãã¨ã§å¤å¿ã ã£ãããããMySQL 5.6ã«ã¤ãã¦ã¯ãã¾ãããã°ã§æ å ±ãçºä¿¡ãã¦ããªããã¨ã«æ°ãã¤ãããããã¯ã¤ã«ã³ï¼ï¼ã¨æããMySQL Casual Advent Calendar 2014ã«åããã¦ãMySQL 5.6ã使ç¨ããä¸ã§æããªã¹ã¹ã¡ãããæ©è½ã§ããã¯ã©ãã·ã¥ã»ã¼ããªã¬ããªã±ã¼ã·ã§ã³ã«ã¤ãã¦è§£èª¬ãããã¨æãããã®è¨äºã¯16æ¥ç®ã®è¨äºã§ããã ã¬ããªã±ã¼ã·ã§ã³ãã¯ã©ãã·ã¥ã»ã¼ãã¨ã¯ã©ããããã¨ãã¯ã©ãã·ã¥ã»ã¼ãã¨ã¯ãä½ããã®äºæ ã«ãããããã»ã¹ããã¦ã³ããããã·ã³ãé»æºãã¨è½ã¡ããï¼ã¤ã¾ãã¯ã©ãã·ã¥ï¼ãã¦ããåèµ·åå¾ã«ä»¥åã®ç¶æ ã«æ»ã£ã¦å¦çãåéã§ããã¨ãããã¨ã ããã¼ã¿ã®ã¯ã©ãã·ã¥ãªã«ããªã§ããã°ã¿ãªããæ¢ã«ãããåç¥ã§ããããï¼REDOãUNDOããã¢ã¬ã®ãã¨ã ãæ¬ç¨¿ã§ã¯é¢åèãã»ã»ã»ã§ã¯ãªãã£ããæ¬é¡ã§ã¯ãªãã
MySQL 5.6ããã®æ©è½ã§ããGTIDããFacebookã®ç°å¢ã«é©ç¨ããéã®æµãã¨ä¸»ãªä¸å ·åãããã¦ãããã®ä¿®æ£ç¹ã«ã¤ãã¦ãFacebookã®ã¨ã³ã¸ãã¢ã«ããã¾ã¨ãã by Evan Elias and Santosh Praneeth Banda Global Transaction ID (GTID)ã¯ãMySQL 5.6ã®æ°æ©è½ã®ä¸ã§ãæã使ããã«ã¯ããããªãæ©è½ã®ä¸ã¤ã ããã®ãããã§ããã§ã¤ã«ãªã¼ãããã¤ã³ãã¤ã³ã¿ã¤ã ãªã«ããªãé層ãæã£ãã¬ããªã±ã¼ã·ã§ã³ãªã©ã«é常ã«æçã ããã¯ã©ãã·ã¥ã»ã¼ããªãã«ãã¹ã¬ããã¬ããªã±ã¼ã·ã§ã³ã®å¿ é æ¡ä»¶ã«ããªã£ã¦ããããã®æ°ã¶æã§ãæã ã¯Facebookã®å ¨ã¦ã®æ¬çªç¨MySQLã¤ã³ã¹ã¿ã³ã¹ã§ãGTIDãæå¹ã«ããããã®ä¸ã§ããã®æ©è½ã®é©ç¨æ¹æ³ãæä½ã«ã¤ãã¦ãããããã®ç¥è¦ãå¾ããããããããã®ãµã¼ããµã¤ãã®ä¿®æ£äºé ã«ã¤ãã¦ã¯ãWebScaleS
ããã«ã¡ã¯ãéç¨æ¬é¨ Hazama ãã¼ã ã®æ·±è°·ã§ãã ä»å㯠MySQL 5.6 㧠loss-less semi-sync ã¬ããªã±ã¼ã·ã§ã³ãå®ç¾ãããããã«ã¤ãã¦ç´¹ä»ãã¾ãã loss-less semi-sync ã£ã¦ä½ï¼ 詳ãã説æã¯ãä»ã®æ¹ã®ããã° ãè¦ã¦ããã ãã®ãæ©ãã§ãããããã¤ã¾ãã§èª¬æããã¨ãMySQL 5.6 ã® semi-sync ã¬ããªã±ã¼ã·ã§ã³ã§ã¯éãæªãã¨ã³ãããæ¸ã¿ã®ãã©ã³ã¶ã¯ã·ã§ã³ã失ããã¦ãã¾ãã±ã¼ã¹ãããã¾ããããããæ¹ä¿®ãããã®ã§ãã å¼ç¤¾ã§ã¯ä¸é¨ãµã¼ãã¹ã§ãHA æ§æã®ããã« semi-sync ã¬ããªã±ã¼ã·ã§ã³ãæ¤è¨ãã¦ããã®ã§ããã MySQL 5.6 ã§ã¯ãã®åé¡ã解決ããã¦ããªãããã5.7 ããããã¯ãã¼ããããã¨ã«ãã¾ããã Facebook ãããã¨ã ã¨ãããã5.7 㯠5.6 ã¨ç¸å½ã³ã¼ããå¤æ´ããã¦ããããã容æã«ã¯ãããã
MySQL 5.6 ã®æ¤è¨¼ä¸ã« MySQL 5.5 ã¨ã¯éãã¿ã¤ãã®ã¬ããªã±ã¼ã·ã§ã³é 延ãè¦ã¤ããã®ã§ç´¹ä»ãã¾ãã MySQL ã®ã¬ããªã±ã¼ã·ã§ã³ã®ãããã MySQL ã®ã¬ããªã±ã¼ã·ã§ã³ã¯æ¬¡ã®ãããªä»çµã¿ã§åä½ãã¦ãã¾ãã ãã¹ã¿ã¼ã®æ´æ°ãã©ã³ã¶ã¯ã·ã§ã³ã binlog ãæ¸ã ã¹ã¬ã¼ãã® I/O ã¹ã¬ããããã¹ã¿ã¼ã«æ¥ç¶ãã binlog ãåå¾ãã relaylog ãæ¸ã. ãã¹ã¿ã¼å´ã¯ã¹ã¬ã¼ãããã®æ¥ç¶ãåãä»ããã¨(dump ã¹ã¬ãã)ãæå®ãããå ´æããææ°ã¾ã§ã® binlog ã転éãã binlog ã追è¨ãããã®ãå¾ ã£ã¦ããã«ã¹ã¬ã¼ãã«éã ã¹ã¬ã¼ãã®SQLã¹ã¬ããã relaylog ãåçãã MySQL 5.5 ã§ãããã£ãã¬ããªã±ã¼ã·ã§ã³é 延 ãã¹ã¿ã¼ã¯ä¸¦åãã¦ãã©ã³ã¶ã¯ã·ã§ã³ãå¦çãã¦ãæçµçã«ã³ãããããé ã§åæ ãããã°åé¡ãªãããã«ãªã£ã¦ãã¾ãã ä¸æ¹ãã¹
InnoDBã®ãªã³ã©ã¤ã³ALTER TABLEã®æã«ä½¿ããããã©ã¡ã¼ã¿ã¼ã ã»ãã·ã§ã³å¤æ°ã®sort_buffer_sizeã®ããã«ä½¿ããã¦ããããããµããã¶ãã ãsort_merge_passesç¸å½ã®å¦çãèµ°ãã®ã§éããªãã http://dev.mysql.com/doc/refman/5.6/en/innodb-parameters.html#sysvar_innodb_sort_buffer_size æ大å¤ã6.7GBã«è¦ãããã©å ¨ãã®ç©ºç®ã§ãæ大å¤ã¯64Mã¨å°ãããæé»ã®ããã©ã«ãã¯1Mã å®éã©ããããéãã®ãããã£ãããã¹ãã $ perl -e 'use Digest::MD5 qw/md5_hex/; open($fh, ">/data/tmp/md5.tsv"); for ($n= 1; $n<= 10000000; $n++) {printf($fh "%d\t%
MySQL 5.6ããå ãã£ã INFORMATION_SCHEMA.INNODB_METRICS ã®ãã¹ãã mysql56> SELECT name, subsystem, count, status FROM information_schema.innodb_metrics; +------------------------------------------+---------------------+-----------+----------+ | name | subsystem | count | status | +------------------------------------------+---------------------+-----------+----------+ | metadata_table_handles_opened | metad
After intensive testing and hack, we started using Semi-Synchronous MySQL Replication at Facebook production environments. Semi-Synchronous Replication itself was ready since MySQL 5.5 (GA was released 3.5 years ago!), but I'm pretty sure not many people have used in production so far. Here are summary of our objective, enhancements and usage patterns. If you want to hear more in depth, please fee
MySQL Performance Blogã®ç¿»è¨³ãALTER TABLEã«ãããã¼ãã«å¤æ´ã®é²æç¶æ³ã確èªããã«ã¯ãããã¤ãã®æ¹æ³ããããããããã®æ¹æ³ã¨å©ç¹ãæ¬ ç¹ãç´¹ä»ããã February 26, 2014 By Nilnandan Joshi Percona Supportã®ã¨ã³ã¸ãã¢ã¨ãã¦ç¾å¨é¢ãã£ã¦ããæ¡ä»¶ã®ä¸ã§ãALTER TABLEã®é²æç¶æ³ã確èªããæ¹æ³ã«ã¤ãã¦é¡§å®¢ããå°ãããããå®ã¯ãMySQL 5.5以åã¯ããã¼ãã«ã«å¯¾ããALTERã®å®è¡ç¶æ³ãæ¬çªç°å¢ã§ç¢ºèªããã®ã¯å°ã é£ããã(æ°ç¾ä¸è¡ããããããª)巨大ãªãã¼ãã«ã§ã¯ãªãããã ã£ããããã¯ããªãã«ãã¨ãã¼ãã«ã®ããã¯ãä¼´ããããããã©ã¼ãã³ã¹ä½ä¸ã ãã§ãªãã¦ã¼ã¶å½±é¿ããã£ãããã ãã¨ã¯ãããALTERãå§ãã¦ãã¾ãã°ãããããã¤çµããã®ããç¥ãã®ã¯ã¨ã¦ãéè¦ãªãã¨ã ãã¤ã³ããã¯ã¹ãä½æãã¦ããéãfast_ind
ãç¥ãã: CentOS 6.5 ã§ãåãæé ã§ã¤ã³ã¹ãã¼ã«ã§ãããã¨ã確èªæ¸ã¿ã§ãã CentOS ã®æ¨æºãªãã¸ããªããã¤ã³ã¹ãã¼ã«ã§ãã MySQL ã¯æªã ã« 5.1 ç³»ã§ãã 5.5 以éã®å§åçãªéããç¥ã£ã¦ããã®ã§ãä»ãã 5.1 ã¯ä½¿ãæ°ã«ãªãã¾ããã ã¨ããããã§ãCentOS 6.4 ã« RPM ããã±ã¼ã¸ããã¤ã³ã¹ãã¼ã«ããæé ã§ãã 4/29 æç¹ã®ææ°ãã¼ã¸ã§ã³ã¯ MySQL 5.6.11 ã§ãããã¼ã¸ã§ã³ã¯ãã®æã®ææ°ã«èªã¿æ¿ãã¦ãã ããã Download MySQL Community Server ã¾ã㯠RPM ãã¡ã¤ã«ããã¦ã³ãã¼ããã¾ãã wget -q http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.11-1.el6.x86_64.rpm \ http://dev.mysql.
ããå¯ã®å ¥ããéãã¾ããããDBAã®ããªãã§ãã GAãããããã1å¹´ã社å ã§ã¯ããç¸å½ã«ã¸ã¥ã¢ã«ã«MySQL 5.6ãã¤ã³ã¹ãã¼ã«ãã¦ãã¾ããä»ã¾ã§ã¯æ°è¦ãµã¼ãã¹(ããæ°è¦æ©è½)ã§ã®å°å ¥ãã»ã¨ãã©ã ã£ã5.6ãããã®ãã³ãã©ãã£ãã¯ã¬ã³ã¬ã³ã®ãµã¼ãã¹ã«ã¢ããã°ã¬ã¼ãã§å°å ¥ãã¾ããï¼ã¨ãåããã«è¨ã£ã¦ãã¾ããç§ã§ãªãå¥ã®DBAæ°ã主æ å½ã®ãµã¼ãã¹ã§ãï¼ ä¸»ãªçç±ã¯InnoDB Compressedã使ã£ã¦ããã®ã§ãã®æ§è½ã¢ããã«æå¾ â¦ã¨ããã¨ããã ã£ããã§ãããå¼ç¤¾DBAãç¥ä»£ã®æ代ãã試è¡é¯èª¤ãéããã©ãçãã究極ã®my.cnf(?)ãããããç§ä¼ã®ã¿ã¬ã æ®ã念ããªãããããè ãã£ãã¦ãããã å¤ãå¾¹ãã¦ã¢ããã°ã¬ã¼ãä½æ¥ããã¦ããæ å½DBAæ°ãéãé¡(æ¨å®ããã£ããã ã£ã)㧠ã¹ãããã¼ãã¯ãã¨ããªãã¼ããã1ã0ãåãããããããã«ããªãã£ãããããã ãããã©ã⦠ã¨è¨´ããå½¼ã¯ãã®
All of Perconaâs open-source software products, in one place, to download as much or as little as you need.
ãã®è¨äºã¯MySQL Casual Advent Calendar 2013 on Zusaarã®19æ¥ç®ã§ãã yokuããã®è¨äºãæ¥ã ã®è¦æ¸: ããªãã®MySQL 5.6ãã¬ã³ãåããã§ãã¯ãã15ã®è³ªåããè¦ã¦ãæ°ããå ãã£ããªããã£ãã¤ã¶ã®ãã¨ãã¡ããã¨èª¿ã¹ã¦ããªãã£ãã¨æãã¾ãã¦ãæ¹ãã¦èª¿ã¹ã¦ã¿ã¾ããã ã¾ããã©ããã種é¡ãããã§ãããããä¾ã¨ãã¦ãã²ã¨ã¾ã5ã¤ããããã§ãã Index Condition Pushdown(ICP)ã®è¿½å BKA-Joinã®è¿½å Multi-Range Read(MRR)ã®è¿½å FROMå¥ãµãã¯ã¨ãªã¼ã®æé©å Optimizer Traceã®è¿½å ããããBlock Nested-Loop(BNLJ)ãBKAãICP etcã«é¢ãã¦ãnippondanjiããã®è¨äºããããããã説æãã¦ãã ãã£ã¦ãã¾ãã ããã§ã¯ã第ä¸å¼¾(?)ã¨ãã¦ICPãæ¹
At Facebook, we have upgraded most of MySQL database tiers to 5.6, except very few tiers that have a special requirement -- very fast single threaded replication speed. As Oli mentioned, single threaded performance is worse in 5.6. The regression is actually not visible in most cases. For remote clients, the performance regression is almost negligible because network latency is longer than 5.1->5.
ãã®ã¨ã³ããªã¼ã¯Â MySQL Casual Advent Calendar 2013 åå è¨äºã§ããã«ã¸ã¥ã¢ã«ã«ã¸ã¥ã¢ã«ã MySQL 5.6ã®GAãªãªã¼ã¹ããã¯ã10ã¶æãã¿ãªããããããã«ã¸ã¥ã¢ã«ã«å°å ¥ãªããã¦ãããã¨ã ã¨æãã¾ãã æ¼¢(ãªãã³)ã®ã³ã³ãã¥ã¼ã¿é: åªããMySQL DBAãè¦åãã27+3ã®è³ªå ã®ãªãã¼ã¸ã¥ã§ãã Islands in the byte stream: ãåªããPerlããã°ã©ããè¦åãã27ã®è³ªåãã®æ¥æ¬èªè¨³ ã®@__gfx__ãã ããã¡ã³ã·ã§ã³ãããã ããã®ã§ä½ãã¾ãã :) @yoku0825 ææ°ç対å¿ã§ãããªããã¦ãããã¨èãã¦ï¼+ï¼0ï¾ã»âã»ï¼ + ? Fuji, Goro (@__gfx__) 2013, 11æ 12 ããã°ã£ã¦ã¿ã¾ã :) ç¬æã¨åè¦ã§æåãããªã®ä¸¦ã¹ã¦ããã ãã§ãã®ã§ãä»ã«ãè²ã ããã¾ããæ¢ãã¦ã¿ã¾ããã :)
5. ãã°æ å ±ãªã© ï GTIDæå¹ã§ãããã¯ã¼ã¯ãéåããã¨ãã¼ã¿æ¶å¤±ãã ï InnoDBmemcacheAPIã®ã¡ã¢ãªãªã¼ã¯ï¼ #68530 ï¼ ï GRANTæçºè¡æãæ§æã«ç¹å®ã®è¨è¼ãã¹ãããã¨ã¬ã㪠ã±ã¼ã·ã§ã³ãåæ¢ããï¼ # 68892ï¼ ï ãããããªããã¼ãã£ã·ã§ã³ãããããããå ´åãäºæ³ã¹ ãã£ã³ä»¶æ°ãéå°ã«ä½ãè¦ç©ãã£ã¦ãã¾ãä¸å ·å â»ä¸è¨ã¯åå¼·ä¼ã§è¦ãããæ å ±ãªã©ã§ã åãã®MySQL5.6移è¡è¨(ä»®) http://www.slideshare.net/conmame/mysql56-27565355 7. éç¨æ¹æ³ã®å¤åã«ã¤ã㦠ï GTIDãæå¹ã ã¨Slaveã§ã¯ã¨ãªãã¹ãããã§ããªããªã£ã¦ç¢ºèª ï ï ï ï ï ï ãã¦ç©ºã³ãããããªãã¨ãããªããªã£ãï¼å²ã¨æéï¼ MySQL Utilityã¨ããpythonãã¼ã«ã便å©ãã ãããã¡ãã¼ã«ã®ãã³ãã¨ãªã¹ã
1. 1 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. MySQL 5.6æ代㮠ããã©ã¼ãã³ã¹ãã¥ã¼ãã³ã° æ¥æ¬ãªã©ã¯ã«æ ªå¼ä¼ç¤¾ å±±å´ ç±ç« / MySQL Senior Sales Consultant, Asia Pacific and Japan 2. 2 Copyright © 2013, Oracle and/or its affiliates. All rights reserved. 以ä¸ã®äºé ã¯ãå¼ç¤¾ã®ä¸è¬çãªè£½åã®æ¹åæ§ã«é¢ããæ¦è¦ã説æãããã®ã§ãã ã¾ããæ å ±æä¾ãå¯ä¸ã®ç®çã¨ãããã®ã§ããããããªãå¥ç´ã«ãçµã¿è¾¼ããã¨ã¯ ã§ãã¾ããã以ä¸ã®äºé ã¯ããããªã¢ã«ãã³ã¼ããæ©è½ãæä¾ãããã¨ãã³ãããã¡ã³ ãï¼ç¢ºç´ï¼ãããã®ã§ã¯ãªãããã購買決å®ãè¡ãéã®å¤æææã«ãªãããªãã§ä¸
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}