Mydumper is a useful tool. Unlike mysqldump, it can take logical backups using many threads. Logical backups are frequently the only option for projects to migrate into the cloud, or for consolidating datasets from multiple servers. When you have many TBs worth of data to move, mysqldump is not a viable option. However, mydumper does […]
The post MyDumper + ZFS – Merely Faster Than mysqldump is not Enough appeared first on Shattered Silicon.
MyDumper + ZFS – Merely Faster Than mysqldump is not Enough appeared first on MariaDB.org
Mydumper is a useful tool. Unlike mysqldump, it can take logical backups using many threads. Logical backups are frequently the only option for projects to migrate into the cloud, or for consolidating datasets from multiple servers. When you have many TBs worth of data to move, mysqldump is not a viable option.
However, mydumper does need a bit of finessing on occasion and I would like to talk about one of those occasions in this post. In terms of compression, mydumper comes with its own gzip compression which is quite slow and often is a bottleneck. Recently, it added zstd compression which is amazing, but try as I might, I could not get it to work as I would have liked. The way compression is done seems to suffer from a bottleneck in the pipeline.
Our client was, quite rightly, expecting better from our MySQL support, so we weren’t about to just wait out that bottleneck. We can do better than that. Luckily, we have ZFS compressed datasets with zstd. This was extremely useful, because it means that compression could be offloaded to zstd in another layer and that layer can handle it in an asynchronous multi-threaded way.
So after setting mydumper to dump the multi-TB database to a compressed ZFS partition, these were the performance results I was able to get:
MOAR POWER, IGOR!
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | MyDumper Locking Mechanisms Revisited: Introducing SAFE_NO_LOCK | 0 | 6.22 | 13-07-2026 |
| 2 | Comprehensive Self-Service Backups for Continuous Data Protection in MariaDB Cloud | 0 | 8.56 | 09-06-2026 |
| 3 | FromDual Backup and Recovery Manager for MariaDB and MySQL 2.3.1 has been released | 0 | 3.77 | 12-08-2024 |
| 4 | FromDual Backup and Recovery Manager for MariaDB and MySQL 2.3.0 has been released | 0 | 3.77 | 25-06-2024 |
| 5 | Efficient MySQL Performance In 10 Sentences | 0 | 9.92 | 09-11-2024 |
| 6 | Backups Using the MySQL Clone Operation | 0 | 4.93 | 28-07-2026 |
| 7 | FromDual Backup and Recovery Manager for MariaDB and MySQL 2.3.2 has been released | 0 | 4.16 | 22-10-2025 |
| 8 | InnoDB Tablespace Duplicate Check Threads (and EBS Volumes for MySQL Startup with Many Tables) | 0 | 7.41 | 03-12-2024 |
| 9 | MariaDB has broken the concept of dynamically configurable buffer pools! | 0 | 10.18 | 09-02-2026 |
| 10 | Sysbench vs MariaDB on a small server: using the same charset for all versions | 0 | 8.32 | 06-04-2026 |