[MCOL-1573] recommended change to the rsync.sh script Created: 2018-07-20 Updated: 2023-10-26 Resolved: 2020-04-15 |
|
| Status: | Closed |
| Project: | MariaDB ColumnStore |
| Component/s: | ? |
| Affects Version/s: | 1.1.5 |
| Fix Version/s: | N/A |
| Type: | New Feature | Priority: | Minor |
| Reporter: | David Hill (Inactive) | Assignee: | Todd Stoffel (Inactive) |
| Resolution: | Won't Do | Votes: | 2 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Epic Link: | ColumnStore Utility Improvements | ||||||||||||
| Description |
|
Input from a community user about improvement in the rsync.sh script, which will equalize the front-end um from um1 (pm1) to the other nodes when mysql-replication is enabled I notice that when we call mcsadmin enableMySQLReplication one of the steps is the call to the script /usr/local/mariadb/columnstore/bin/rsync.sh If I understand well this is used to create the "zero point" each time, before activate the standard mysql replication. What I'm not understanding is why this script not use the delete option of the rsync. Here the problem: In this case what I'm expecting is that also on the other UM (or pm if combinated) the table or the database that i drop were removed. Other thing I not understand is why we exclude "test/" (test database), is useful for some reason? (according to https://github.com/mariadb-corporation/mariadb-columnstore-server/blob/master/scripts/mysql_secure_installation.sh I've removed it from PM1) I suggest you to upgrade the rsync.sh script with the "--delete" option, the "-axvz" options instead of "-vopgr" and removing the --exclude=mysql/ and --exclude=test/ clause, somethings like: set COMMAND "rsync -axvz --delete -e ssh --exclude=infinidb_vtable/ --exclude=infinidb_querystats/ --exclude=calpontsys/ --include=/ --include=/* --exclude=* $INSTALLDIR/mysql/db/ $USERNAME@$SERVER:$INSTALLDIR/mysql/db/" |
| Comments |
| Comment by Nico [ 2019-01-23 ] | |
|
According to
| |
| Comment by Nico [ 2019-01-25 ] | |
|
After some test I refactor a bit the rsync.sh I sill have a problem when I call it with ma enableMySQLReplication : I check in the debug.log and I found this: Calling ma enableMySQLReplication more times, rsync takes progressive less time and the replication finish correctly. I hope can be included in next releases. Thanks | |
| Comment by Todd Stoffel (Inactive) [ 2020-04-15 ] | |
|
OAM is being deprecated and replaced by an enhanced API and the MaxScale orchestration project. |