Commit 9fe60d8a authored by Simon Cornet's avatar Simon Cornet
Browse files

feat(mysql_replication): add parallel workers

parent 85e628f6
Loading
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -104,6 +104,8 @@ max_binlog_size = 100M
gtid_mode = ON
enforce_gtid_consistency = ON
log_slave_updates = 1
slave_parallel_type = 'LOGICAL_CLOCK'
slave_parallel_workers = 2
```

Restart mariadb: `systemctl restart mariadb`  
@@ -142,8 +144,8 @@ mysql -u root -psupersecuresource -e "CREATE DATABASE IF NOT EXISTS databeast;"
mysqldump -u root -h source.example.com -psupersecuresource \
    --single-transaction \
    --set-gtid-purged=ON \
    --source-data=1 \
    --databases pms | mysql -u root -psupersecure
    --quick \
    --databases databeast | mysql -u root -psupersecure
```

### Activate replication