mysqlpump 備份檔案壓縮對比

來源:互聯網
上載者:User

標籤:mysql

mysqldump,使用single-transaction,通過管道使用gzip壓縮,20G單Database Backup

real8m15.291s

user8m39.617s

sys0m16.675s

備份檔案1.43G


mysqlpump,4線程,使用single-transaction,通過管道使用gzip壓縮,20G單Database Backup

real6m21.481s

user9m35.788s

sys0m31.509s

備份檔案1.52G


mysqlpump,4線程,使用single-transaction,使用內建LZ4壓縮,20G單Database Backup

real2m1.440s

user4m34.146s

sys0m12.712s

備份檔案1.54G


mysqlpump,4線程,使用single-transaction,使用內建zlib壓縮,20G單Database Backup

real6m30.356s

user9m28.144s

sys0m15.970s

備份檔案2.39G


1,LZ4速度最快,但備份檔案最大。如果資料庫在50G以內,可以考慮使用zlib或gzip。

2,因為目前壓縮只能使用單線程,小資料庫,單線程mysqldump不會比mysqlpump慢太多。

3,大資料與首選mysqlpump搭配LZ4壓縮,時間優勢明顯。

本文出自 “專註打孔100年” 部落格,請務必保留此出處http://titandeng.blog.51cto.com/823817/1903009

mysqlpump 備份檔案壓縮對比

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.