HanXHX / ansible-mysql

Ansible role for Debian : MariaDB (Galera Cluster as option)
GNU General Public License v2.0
23 stars 23 forks source link

Import data improvements #2

Closed HanXHX closed 2 months ago

HanXHX commented 9 years ago

In this role, i use some hack to import data with percona-toolkit.

I need help to find a way to import data:

maximumG commented 4 years ago

I'm also looking for a way to automate data import when bootstraping a new galera cluster, using mariabackup and with the following method:

  1. Bootstrap the first node (galera_new_cluster)
  2. Import data on the first node
  3. Reboot the other cluster members one by one in order to use SST for row replication

Inspired from https://severalnines.com/database-blog/guide-mysql-galera-cluster-restoration-using-mysqldump

In term of implementation, I was thinking of a dedicated yaml tasks that could be easily imported

HanXHX commented 4 years ago

Hi,

This issue was about async replication (5 years old!) to setup a new slave.

The main problem is about which method to restore data . Each people/companies uses different methods: mysqldump :baby:, mydumper, LVM/ZFS snapshots, mariabackup... etc.

I don't like this code import_data.yml. It works well with vagrant box but it's not production ready.

This role must not manage each case. I think the best way is to manage with an external playbook.

Ansistrano role uses hooks. I think it can be an interesting way.

Something like:

EM