Quantcast
Viewing all articles
Browse latest Browse all 2

Answer by akuzminsky for Speedup restore of 160 GB SQL in 24 core + Optane NVME system

Restoring from an SQL dump will be always slow. You can make it faster by:

  • Increasing innodb_buffer_pool_size to size of the old datadir or what available RAM allows. 220G in your config is a good value, so this option not for you.
  • Setting innodb_flush_log_at_trx_commit to 0 or 2.
  • Increasing innodb_log_file_size to several GB. 4GB will be OK.
  • Disable query_cache.
  • disable binlogs.

Do not disable innodb_doublewrite - unsafe.

Yet, I doubt you'll gain much.

To restore the database faster use XtraBackup or cold copy (if you shutdown the old database and copy datadir to the new server it will pick it up w/o problems assuming same MySQL version).


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>