Skip to content

Switch 10.2 and 10.3 to stretch #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

tianon
Copy link
Contributor

@tianon tianon commented May 23, 2017

@tianon
Copy link
Contributor Author

tianon commented May 23, 2017

Two problems, one easy to solve, one not so easy:

  • no gpg in stretch (easy to install)
  • E: Unable to locate package percona-xtrabackup (package not available for stretch)

@tianon
Copy link
Contributor Author

tianon commented May 23, 2017

@tianon
Copy link
Contributor Author

tianon commented May 23, 2017

Kind of thinking that maybe now's the time to get rid of percona-xtrabackup again (at least for 10.2+), since it isn't actually used by the default install, and leave that as an exercise for the user.

@tianon
Copy link
Contributor Author

tianon commented May 23, 2017

It is still recommended as the "only non-locking method" for SST on https://mariadb.com/kb/en/mariadb/getting-started-with-mariadb-galera-cluster/ however: 😞

This method uses the xtrabackup open-source hot backup utility to perform snapshot state transfers. It is the only non-locking method however it requires some additional setup.

@tianon
Copy link
Contributor Author

tianon commented May 23, 2017

@tanji would you mind lending us your opinion WRT xtrabackup and/or whether stretch is something we ought to move to now or wait until it's officially released? 🙏 😇

The rationale is that stretch is in freeze now, and should be released "soon", but won't see any really major changes, so should be a pretty stable base at this point (and we can't really update further down the line, so right now while 10.2 is transitioning to Stable and thus latest seems like a good time to consider it).

Does it make sense for the default install to include xtrabackup? Should there be a separate install that includes it? Should it be excluded completely and left up to users to figure out? (since it requires additional setup anyhow, and rsync is officially recommended)

Any thoughts/opinions you're willing to share would be ❤️ ❤️ ❤️

@tanji
Copy link

tanji commented May 23, 2017

Hey @tianon, for some reason I thought that Docker official images were defaulting to Ubuntu. I might have been wrong :) I see some value in having xtrabackup in the base image as Galera clusters are commonplace nowadays, and even if rsync is the recommended method, most people use xtrabackup since it's non-locking.

To be honest, you might have not heard of it yet but it might be worth looking at MariaDB Backup, which is MariaDB's fork of Xtrabackup that supports all the MariaDB features such as compression and encryption. Whether they have a package for stretch yet I do not know, but I can find out.

@tianon
Copy link
Contributor Author

tianon commented May 23, 2017

Ooh, officially supported fork by MariaDB is ++++++ even better IMO -- that doc only mentions 10.1.23, but I'm guessing this is probably even more mature for 10.2/10.3? 😇

@tianon
Copy link
Contributor Author

tianon commented May 23, 2017

Ah, looks like packages for it don't even exist in 10.2 yet -- would we just use the 10.1 version (mariadb-backup-10.1_10.1.23+maria-1~stretch_amd64.deb ) against 10.2, or do we need to wait for 10.2 to be supported?

http://ftp.osuosl.org/pub/mariadb/repo/10.1/debian/pool/main/m/mariadb-10.1/
vs
http://ftp.osuosl.org/pub/mariadb/repo/10.2/debian/pool/main/m/mariadb-10.2/

@tanji
Copy link

tanji commented May 23, 2017

Well, for some reason (even if 10.2 is GA today) it seems that mariadbbackup is not yet in the 10.2 repository, however you can find it here including a stretch version. I'll check with the developers at MariaDB whenever they plan to release mariadbbackup for 10.2/stretch and let you know :)

@tanji
Copy link

tanji commented May 23, 2017

I have no idea if the 10.1 version works with 10.2 (it theoretically should. The xtrabackup version we've all used was historically built against MySQL 5.6). But I intend to find out!

@tianon
Copy link
Contributor Author

tianon commented Jun 23, 2017

Any news on this front, @tanji? 🙏 😇 ❤️

@tanji
Copy link

tanji commented Jun 26, 2017

I see no mariabackup for 10.2 in the repos yet, I'll ask directly!

@tanji
Copy link

tanji commented Jun 26, 2017

Answer: mariabackup for MariaDB 10.2 is a tight case, because MariaDB 10.2 comes with a new version of InnoDB, therefore some parts have to be rewritten. It might come out with the next 10.2 release (10.2.7).

@tanji
Copy link

tanji commented Aug 11, 2017

Still no news of mariabackup for MariaDB 10.2 and above. But with the PR you merged, I suppose we can use xtrabackup in the meantime.

@tanji
Copy link

tanji commented Aug 30, 2017

@tianon, Finally !
mariadb-backup is out for 10.2/stretch. Please check the repo.

@klausenbusk
Copy link
Contributor

To be honest, you might have not heard of it yet but it might be worth looking at MariaDB Backup, which is MariaDB's fork of Xtrabackup that supports all the MariaDB features such as compression and encryption.

This will break any Galera cluster which use xtrabackup as the SST method. If you decide to switch to mariabackup, we at least need to warn the users or create a symlink (xtrabackup -> mariabackup)?

@Renkas
Copy link

Renkas commented Jan 13, 2018

So whats happening here? mariabackup is not available in the 10.2.11 image. I thought it comes by default since 10.2.10.

@iangilfillan
Copy link
Contributor

Note that https://mariadb.com/kb/en/library/getting-started-with-mariadb-galera-cluster/ which is referenced above has been updated and now refers to mariabackup

@xcompass
Copy link

xcompass commented Apr 14, 2018

after reading the this PR, I still don't understand why mariabackup is not included in the container instead of xtrabackup. I still don't see it in 10.3 images

@klausenbusk
Copy link
Contributor

I still don't understand why mariabackup is not included in the container instead of xtrabackup.

It would break existing Galera setup which use xtrabackup for SST.

@xcompass
Copy link

It would break existing Galera setup which use xtrabackup for SST.

Thanks. But can we include both? Are they conflict with each other?

@klausenbusk
Copy link
Contributor

Thanks. But can we include both? Are they conflict with each other?

I just tested it, installing mariadb-backup-10.1 (from MariaDB repo) and percona-xtrabackup-24 (from Percona repo) in a Debian Stretch container does not yield any error.

@klausenbusk
Copy link
Contributor

So I just spent some time trying to replace xtrabackup with mariabackup without breaking existing setup and fixing everything else mentioned in the PR.

Feel free to check it out: #158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants