I have a habit to keep a log of everything I work on (or even just read about while working) every day. It’s just a plain text file, with date labels, where most lines are URLs of issues and bugs I contributed to somehow, and my comments on what I did and why. But there are also code fragments, texts, copy-pasted outputs and links to interesting sites, articles and documentation.
Some of lines from this log I post on Facebook separately as I add them, these are mostly related to MySQL bugs and other things that annoy me. I know that some of my Facebook friends actually do not like this kind of posts at all… When I used LiveJornal actively, I’ve posted digests of my log from time to time (you can check what was there if you read Russian). But that digests contained everything, from funny videos of owls to tips for setting up Informix on Mac OS X, with few MySQL-related things in between. For this blog I decided to resurrect that digests, limit them to things related to MySQL and related forks and technologies, and try to make them regular. The idea is to post what I considered interesting and important at the end of every week. So, this is my first issue of what I am going to call “MySQL Support Engineer’s Chronicles“. Let’s see how it is going to work long term…
This week started with more news related to MyRocks. First of all, it was announced that MyRocks will be included into MariaDB 10.2. New forum was also set up in Google Groups for the related discussions, myrocks-dev. I see only 3 topics there so far, but I still joined this group. I’ve also spent some time this week testing how well MyRocks scale for SELECTs like those in the famous Bug #68079. Good news is that (while InnoDB after that bug fix still seem to work faster) for that use case MyRocks now runs like 20% faster than last time I checked (end of April, 2016). Both InnoDB in 5.7.15 and MyRocks scale to 32+ threads on my old QuadCore box, that is, they run the same number of queries faster with more threads doing the job. I’ll share more details on this test case later, when I get a chance to spend more time running tests with higher concurrency and checking for the bottlenecks.
Other good news were about MySQL & Friends Devroom at FOSDEM 2017. Call for papers is open! FOSDEM is my favorite conference and the only one I am going to participate in by all means every year (as I did in 2015 and 2016). I am going to submit several talks and, besides something with “gdb“ in the title, I am thinking about a talk on some special bugs (like Bug #68079, Bug #28404, or Bug #82968) and their influence on MySQL users and further development (maybe even separate talk per each of these bugs), some new MariaDB 10.2 features (like recursive CTEs) or locking in MyRocks.
I’ve spent some time this week checking different ways to compress data in InnoDB tables (and I expect more work on this next week). Originally the idea was to show that MariaDB’s compression really works. I am still thinking about writing a separate blog post showing step by step how it works and why it does not or why somebody can assume it does not (hints: check du and ls -ls commands, don’t use just ls -l to make conclusions). For now just check this blog post by my colleague Jan Lindstrom and do not hesitate to try it on HDD with, say, ext4 filesystem. If you care enough to try different compression algorithms (you have to compile MariaDB from source for this), check also this great study by Percona.
Unfortunately these days I can not avoid Galera clusters and related issues, so I spent some time reading and trying to find some proper documentation on what may happen when poor user just decides to shut down all nodes in the cluster (for whatever reason) and then start the cluster again. SST may happen, and this is rarely good. I ended up checking this old post by my former colleague Przemysław Malkowski, some hints by Severalnines and Galera bugs (like Issue #283 and Issue #344). I was reading and thinking about step by step checks for some blog post, but my colleague Geoff Montee already summarized current state of documentation in this Galera Issue #431, “Document that the GCache is invalidated when a node restarts“. Take extra care when you decide to shut down the last remaining Galera cluster node!
While checking for known bugs for one of the problems I discussed, I noted this MySQL bug, Bug #80580, “count(*) much slower on 5.7 than 5.6“. Unfortunately there was no public test case, even though the bug was “Verified”. I do not like to see bug reports like that. So, I’ve added my test case as a comment. Enjoy and keep thinking that MySQL 5.7 is the best of them all (besides already available 8.0, that added indexes to the tables in Performance Schema). It just has some performance problems with queries that do SELECT count(*) to InnoDB tables, also in case of fulltext indexes, see this recent Bug #83398 by Daniël van Eeden. But nobody cares much about few minor bugs for corner cases (and about those who process that bugs, but that’s a different topic)…
By the way, Justin Swanhart had already added support to MySQL 8 to his ps_history schema/tool. Read his blog post for more details. Probably this is one of the first open source third party tools to support MySQL 8 explicitly. Correct me if I am wrong, but the only other one I know about is MySQL Sandbox by Giuseppe Maxia.
During some relatively non-busy time on Friday I decided to upgrade one of my Ubuntu VMs (the one running 15.04) to 16.04, and did that successfully (first to 15.10, then to 16.04). It’s nice to know that Ubuntu allowed seamless in-place upgrades since 12.04. I had Percona Server installed from their .deb packages running there, historically, so I made sure it is also upgraded to the latest version for 16.04. In the process I hit a small problem with their repository that Percona tried to warn us all about in this blog post. Unfortunately, as you can see from comments (mine and other user’s) suggested way to avoid the warning does not work as expected. I’ve got no reply from Percona about this.
Also on Friday Alibaba had finally released their AliSQL as open source on GitHub. I’ve cloned and built it immediately on my Ubuntu 14.04 netbook, and it works! It identifies itself as just MySQL 5.6.32, but read here about some of the great features now available. No bugs found so far, but I had no time to try hard.
So, that were some of things I read about, was excited about, complained about and worked on during this week as a support engineer in MariaDB. Do you consider this kind of digest useful?
- Automatic Schema Synchronization in NDB Cluster 8.0: Part 1
- RStudio Connect 1.8.0
- a very quick Riddle
- Product Price Prediction: A Tidy Hyperparameter Tuning and Cross Validation Tutorial
- What You Missed at Redis Day Seattle
- cary huang: Understanding Security Features in PostgreSQL – Part 3
- cary huang: Understanding Security Features in PostgreSQL – Part 2
- cary huang: Understanding Security Features in PostgreSQL – Part 1
- How to Install MySQL Enterprise Edition on Docker and Monitor it with MySQL Enterprise Monitor?
- InnoDB Flushing in Action for Percona Server for MySQL
- Manquehue Hotels Expands Properties, Personalizes Guest Experiences with Oracle
- Why we wrote wrapr to/unpack
- Automatic Schema Synchronization in NDB Cluster 8.0: Part 2
- 日本企業は、より人材にフォーカスする必要がある： 日本向けデータレディネスインデックスの結果を発表
- Puppet CEO Sanjay Mirchandani talks about the journey to automation
- How Diligent ditched monolithic releases
- Announcing Puppet’s new office in Tokyo / 東京(日本)新オフィスのご案内
- Continuous delivery, integration & deployment: a guide for the C-suite
- You’re invited to Talking Tech, Puppet’s new webinar series
- The PuppetConf 2017 videos, slides and photos are ready for you
- How our approach to code integration led to shared responsibility & CD
- A better experience for Sensu & Puppet users
- Introducing Extended support for Puppet Enterprise
- PuppetConf 2017 Day 2 keynotes: Thorsten Biel, Michael Lopp & Tricia Burke
- PuppetConf 2017 Day 1 keynotes: automation and product announcements
- Introducing Puppet Pipelines™ and Puppet® Container Registry
- The shift to pervasive automation
- Deploying machine learning models using Agile
- Just How Much Do You Trust Your AI?
- Kaarel Moppel: pgwatch2 v1.7.0 released