Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-12808

Include mysqlpump parallel backup tool

Details

    Description

      MySQL now includes a faster backup tool using parallel threads for backup processes in addition to the single threaded mysqldump utility. Now that this tool has transactional consistency, It would be a great benefit for it to be added to MariaDB's default client toolset.

      Here are links referencing the transactional consistency issue being resolved:

      http://www.tocker.ca/2015/08/03/mysql-5-7-8-mysqlpump-caveat.html
      https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-11.html

      The existing mysqlpump binary in the MySQL or Percona releases fails (trying to connect to MariaDB 10.1.23) with an error message that server version 5.7.8 or later is required. While most of the work is done by the client utility, I am sure this means that there are some server related hooks that must be in place or that the tool wants to ensure are available before executing. Inclusion of this new tool would definitely require reviewing the server hooks vs a simple code recompile before this could be released. It would be a huge improvement on current tools and ensure that MySQL/Percona users would be able to migrate to MariaDB with existing programs/processes largely unmodified though.

      Attachments

        Issue Links

          Activity

            akrus akrus added a comment -

            It would be great to have it. mydumper has a bug so we cannot use it and likely no other reliable alternative is available.

            akrus akrus added a comment - It would be great to have it. mydumper has a bug so we cannot use it and likely no other reliable alternative is available.

            Hi Guys, im aware of some issues with these paralell backup utilities, so i wrote my own one in golang. It's using mysqldump and optionally pigz to do multithreaded backup and multithreaded compression alongside the backup. For now it has ability to sort tables and do some optimization based on tablesize so backup takes as short as possible, produces one file per table so you can easily do multithreaded import too...

            Not sure if anyone's interested but i can put it on github as a temporary workaround if you interested. Can shorten backup times from days to hours in linux...

            pslawek83 Slawomir Pryczek added a comment - Hi Guys, im aware of some issues with these paralell backup utilities, so i wrote my own one in golang. It's using mysqldump and optionally pigz to do multithreaded backup and multithreaded compression alongside the backup. For now it has ability to sort tables and do some optimization based on tablesize so backup takes as short as possible, produces one file per table so you can easily do multithreaded import too... Not sure if anyone's interested but i can put it on github as a temporary workaround if you interested. Can shorten backup times from days to hours in linux...

            Instead of working with mysqlpump, could we possibly just fork mydumper into a mariadb tool?

            manjot Manjot Singh (Inactive) added a comment - Instead of working with mysqlpump, could we possibly just fork mydumper into a mariadb tool?

            Only just found out about mysqlpump and was disappointed to learn that it cannot be used with MariaDB. If indeed there is no interest by the MariaDB team to include the tool, what is the recommended way to do parallel logical backups with MariaDB?

            kurt.martinsen Kurt Martinsen added a comment - Only just found out about mysqlpump and was disappointed to learn that it cannot be used with MariaDB. If indeed there is no interest by the MariaDB team to include the tool, what is the recommended way to do parallel logical backups with MariaDB?

            Could this be solved in 10.4+ with mysqldump using backup locks?

            @kurt.martinsen look into the open source tool mydumper.

            manjot Manjot Singh (Inactive) added a comment - Could this be solved in 10.4+ with mysqldump using backup locks? @kurt.martinsen look into the open source tool mydumper.
            danblack Daniel Black added a comment -

            note mysqldumper development has resumed https://github.com/maxbube/mydumper

            danblack Daniel Black added a comment - note mysqldumper development has resumed https://github.com/maxbube/mydumper

            People

              Unassigned Unassigned
              ragoley Robert Goley
              Votes:
              12 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.