June 19, 2013

Post: MySQL 5.6 Compatible Percona Toolkit 2.2 Released

….g. pt-query-digest, pt-upgrade, and pt-online-schema-change).  Here are some highlights: Official support for MySQL 5.6 and… simpler pt-query-digest 2.2 has fewer options now. Basically, we re-focused it on its primary objective: analyzing MySQL query logs. So the ability to parse memcached, Postgres, Apache, and other logs was removed. We also removed…

Post: Percona Toolkit for MySQL Webinar Followup Questions

…’t be able to have access to the slow query log file, so pt-query-digest is often used with the –processlist option… webinar, you may miss some queries. Q: Can we get copies of the scripts used in the MySQL webinar? A: All the… the sakila database 1 master and 2 slaves installed with MySQL Sandbox, with the sakila database Thanks to everyone who attended…

Post: Disconnecting a replication slave is easier with MySQL 5.5+ (RESET SLAVE vs. RESET SLAVE ALL)

log files. This looks great, but does it ensure the replica is disconnected from its master? Let’s try: mysql> stop slave; Query OK, 0 rows affected (0.00 sec) mysql> reset slave; Query OK, 0 rows affected (0.03 sec) mysql> show… differently: mysql> stop slave; Query OK, 0 rows affected (0,01 sec) mysql > reset slave; Query OK, 0 rows affected (0,11 sec) mysql> show…

Post: More on MySQL transaction descriptors optimization

… the first post: single SELECT queries doing PRIMARY KEY lookups (aka QPS sysbench mode); same MySQL queries executed inside single-statement transactions (TPS… perfect case for read-only transaction optimization in MySQL 5.6, because all SELECT queries in the AUTOCOMMIT mode are, by definition…_size = 16M innodb_buffer_pool_size = 52G innodb_log_file_size = 2000M innodb_log_files_in_group = 2 innodb_file_per_table…

Post: High-load problems? Investigate them with 'pt-query-digest'

… is a little known goodie from Percona Toolkit for MySQL called pt-query-digest. One customer was suffering from periods of high… diagnostics information to review even if we couldn’t be logged in to the server at the time the problem happened…: the ‘raw’ log parser. If you specify –format rawlog, then the tool expects the input to have one query per line, and…

Post: Percona Server for MySQL 5.5.30-30.2 now available

… during installation. Bugs fixed #1031427 and #1051874 (Ignacio Nin). The log tracker thread was unaware of the situation when the oldest… query which opened that table. Bug fixed #1127008 (Sergei Glushchenko). Fix for bug #1070856 introduced a regression in Percona Server for MySQL… (Alexey Kopytov). Ported back from the upstream MySQL 5.6 the fix for unnecessary log_flush_order_mutex acquisition. Bug fixed #1163262…

Post: Repair MySQL 5.6 GTID replication by injecting empty transactions

… entry ’4′ for key ‘PRIMARY” on query. Default database: ‘test’. Query: ‘insert into t VALUES(NULL,’salazar’)’ … failed transaction. You can examine the binary logs or you can also check Retrieved_Gtid… Percona Toolkit for MySQL. Last week I gave a talk at Percona MySQL University @Toronto about GTID…

Post: MySQL and Percona Server in LinkBench benchmark

…Server 5.5 outperforms MySQL in about 2x times. Both MySQL 5.5.30 and MySQL 5.6.11 demonstrate…= O_DIRECT innodb_log_file_size = 2000M innodb_log_files_in_group = 2 innodb_flush_log_at_trx_commit =…_open_cache=5000 table-definition-cache=1000 query_cache_size=0 query_cache_type=0 performance_schema=0 …

Post: Percona Server 5.5.30-30.2 rerelease fixes non-restart issue

… during installation. Bugs fixed #1031427 and #1051874 (Ignacio Nin). The log tracker thread was unaware of the situation when the oldest… query which opened that table. Bug fixed #1127008 (Sergei Glushchenko). Fix for bug #1070856 introduced a regression in Percona Server for MySQL… (Alexey Kopytov). Ported back from the upstream MySQL 5.6 the fix for unnecessary log_flush_order_mutex acquisition. Bug fixed #1163262…

Post: MySQL 5.6 - InnoDB Memcached Plugin as a caching layer

… pages) Full objects (user or cart object built from several queries) Infrequently changing data (configurations, etc) In pseudo-code, here is… fact that this is using InnoDB under the hood (redo logs, etc). Based on the above numbers, here are the relative… ms/op) MySQL Select showed 27% increase over InnoDB fetch (~.09 ms/op) This replaced $cache->load() with $db->query(“SELECT * FROM…