开发者

Peer review maatkits mk-parallel-dump and mk-parallel-restore usage?

开发者 https://www.devze.com 2023-01-02 07:33 出处:网络
Im trying to make use of maatkit as a means of dumping a database and then restoring to another database.

Im trying to make use of maatkit as a means of dumping a database and then restoring to another database.

For dumps: mk-parallel-dump --user abc --password xyz --databases $db --base-dir 开发者_StackOverflow社区/tmp/dump

For restore: mk-parallel-restore --create-databases --user abc --password xyz --database devdb /tmp/dump

My question is, is my logic and understanding correct, and would it be ok to do it like this.

Kind Regards Brent


Yes, that should work as expected. However, do some benchmarks on the time using Mysqldump and Maakit's parallel dump. It is not always faster in our experience.


You can also add ionice -c1 -n7 in order to rise the run level of the command to do.

You can also tell how many tread you want to allocate to your command, like dumping or restoring 3 tables at the same time.

More stuff here

0

精彩评论

暂无评论...
验证码 换一张
取 消