-
Notifications
You must be signed in to change notification settings - Fork 122
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
Add mariadb backup as optional option for wsrep_sst_method #64
Conversation
@eRadical Did it worked? I use mariabackup when SST encryption is needed. What I found is that mariabackup needs to authenticate on the donor node, so I had to create a user for that. I don't see that you use any SST authentication. You may see respective code at ansible-mariadb-galera-cluster/defaults/main.yml Lines 159 to 165 in 1e263fa
and
|
Haven't had any time yesterday as i was distracted by other chores. Thanx @elcomtik for those. Will incorporate! |
c5970a1
to
895dbf2
Compare
You're right @elcomtik, it does need authentication. I've changed the logic to create user & use mariabackup without tls. What do you both think about this form? cc @mrlesmithjr |
This looks almost perfect, although it removed functionality to automatically use mariabackup if sst encryption is enabled. Something like this (I have not tested this code yet)
This could be overridden by the user if needed |
In defaults/main.yml I would change
In vars/main.yaml I would add:
Thoughts ? cc @mrlesmithjr |
Done as @elcomtik suggested! @mrlesmithjr - this is ready to be merged! I have some clusters to spin up! :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks, good. Please look at my last comment about xtrabackup-v2
defaults/main.yml
Outdated
# This option defines the wsrep_sst_method that should be used by the cluster. | ||
# Possible options: | ||
# - mariabackup - recommended for MariaDB - default if TLS is enabled via galera_sst_tls_enabled, | ||
# - xtrabackup-v2 - there are limitations, please see https://mariadb.com/kb/en/xtrabackup-v2-sst-method/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not list xtrabackup-v2, because install of respective packages is not handled yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we could just say it's unsupported by the role!
As soon as @mrlesmithjr can help us merge both of them! |
Merged #68 |
8b9df62
to
7ca7887
Compare
rebased and added also a note that xtrabackup-v2 is not implemented by this role |
Perfect job @eRadical. LGTM @mrlesmithjr |
Merged and thanks to you both as always! |
mariabackup is an alternative to rsync that does not block the donor node