Author: banyek

  • Fish shell brace expansion

    I mentioned that I use the fish shell, but I would like to share a common problem of mine – well, so far this is the only one I found.

    I commonly use commands like this

    find . -maxdepth 1 -type d -exec du -sh {} \;
    

    This works great with bash, but in fish, you get the following error message

     du: fts_open: No such file or directory
    

    This happens because fish acts more aggressively on brace expansion than bash. It doesn’t treat it as a part of a command, but tries to expand it – but cannot succeed, because there is nothing.
    Simply put that inside apostrophes and the shell will skip the brace expansion.

    find . -maxdepth 1 -type d -exec du -sh '{}' \;
    

    Not a big thing, but handy.

  • My work environment

    I was thinking if my work environment would be interesting or not, but I decided ‘yes’ – because I always like reading about others work env.

    I have been working with Linux/UNIX for more than 15 years now, and I have tried a lot of cool tools, but at the end, I always found myself using the same apps in the terminal.

    I like the Unix philosophy about Do One Thing and Do It Well. I never really use big, bloated software. I like to use my editor for editing files, and my git client to use git. That’s simple.

    (more…)

  • Running multiple instances on the same hardware

    Currently, we have one database cluster with 15 different schemas – these schemas could be either schemas that contain “real” data or just schemas with metadata.

    I guess the next evolutionary step of our database stack would be to split up the database cluster vertically along these schemas. All the data schemas should be moved to standalone mysql instances and the metadata schemas should be put next to them. This also could be a good project to prepare to move a certain part of the database for example to a cloud provider while other parts are still kept on bare metal.

    (more…)

  • Running GTID replication in production

    At Percona Live! Amsterdam 2015 we had a talk with Peter Boros about GTID replication.

    Here are the slides.

     

  • Percona Live Europe 2015

    Well, it ended a week ago, but I had too many errands to run so I couldn’t post anything about it.

    It was really great, again.This was the third time I attended (2013 London, 2015 Santa Clara) so now I met a lot of familiar people – it is true that MySQL has a great community. The chosen city was great, Amsterdam is one of the coolest places in Europe, the hotel was neat, and the programs were also astounding.

    The conference sessions were great too, I really enjoyed them all, and because they are running in 8 threads in parallel it is not that bad that there are some recurring sessions; if you missed one in spring you can watch it in autumn.

    So, everything was comfy and neat. I hope I’ll attend the next one too …

    There were a few topics where I plan to dig deeper in the next weeks

    • ProxySQL because HAProxy is a good choice, but it only speaks TCP and HTTP but not MYSQL
    • Semi-Sync replication, because getting rid of replication lag would be useful
    • XtraDB Cluster/Galera cluster, because it seems a good evolutionary step beyond our current setup
    • DB options in the cloud.
  • Moving to my own domain

    Hi there!

    So far I was blogging on Kinja but I’ve decided to move my blog content to my own domain and a WordPress blog.

    Kinja is a great place to have good posts and good conversations, but the engine is not really made for tech blogs – it is really hard to insert preformatted text such as code or console dump, but I need to do it often.

    I moved all of my previous posts here, maybe in the future, I’ll edit them to fix the code displaying, but now I don’t feel the power for that.

    Anyways, welcome here, let’s the blogging begin.

  • Getting familiar with TokuDB part 2.

    Last time I checked how TokuDB could be used as a drop-in replacement for InnoDB. The first impressions were jolly good; way less disk space usage, and the TokuDB host can be a part of the current replication cluster.

    So far so good.

    (more…)

  • Getting familiar with TokuDB part 1.

    After TokuDB was announced as a new storage engine for MySQL, it made me very curious, but I didn’t try it out until now.

    I try to check it from different aspects and I’ll blog about it step by step. I don’t do any serious benchmarking, just play with it, and see if it could fit into Kinja’s MySQL ecosystem.

    I use one of our development servers as a TokuDB playground. Sadly that hardware is not the same as the hardware on either the database masters or the slaves, so performance tests couldn’t be made on that piece of metal but many other ways are open to doing this.

    I’ve installed the tokudb plugin from the Percona repository. The setup was quite easy and fast. The documentation is nice.

    (more…)

  • How to drop a table in a hacky way

    I showed in an earlier post how to drop a whole database in a very safe way (no replication lag at all) and that technique could be used to drop a single table too, but cleaning up a table can take hours if not days to finish, so this is not the most comfortable way to do that. We also don’t want to have even a small spike of replication lag, so we need to find another solution.

    How to remove a database in a safe way
    When you have to drop a large database, you’ll encounter some problems, mainly replication…

    (more…)

  • A few words about database checksumming

    MySQL replication is great, and kind of reliable, but sometimes it could be messed up. The good news is that we can handle this.

    Let’s see how replication happens when everything is fine!

    (more…)