These options limit the resources used by the backup process, to minimize backup overhead for busy or huge databases.
--number-of-buffers=
num_buffers
Specifies the number of buffers, each 16MB in size, to use during multithreaded options.
Use a high number for CPU-intensive processing such as backup, particularly when using compression. Use a low number for disk-intensive processing such as restoring a backup. This value should be at least as high as the number of read threads or write threads, depending on the type of operation.
Default: computed internally depending on the available memory and the type of operation. The basic formula is:
(read threads+write threads+process threads+ max(read threads,write threads,process threads))
For compression or incremental backup operations, the buffer size is slightly more than 16MB to accomodate the headers.
One additional buffer is used for single-file incremental backup and single-file compressed backup.
Compressed backup, compressed single-file backup, and uncompress apply-log operations require one additional buffer for each process thread.
If you change the number of read, write, and processing threads, you can experiment with changing this value so that it is slightly larger than the total number of threads specified by those other options. See Section 7.1, “Optimizing Backup Performance” and Section 7.2, “Optimizing Restore Performance” for additional advice about recommended combinations of values for this and other performance-related options for various hardware configurations, such as RAID or non-RAID storage devices.
--read-threads=
num_threads
Specifies the number of threads to use for reading data from disk.
Default: currently 3. This default applies to these kinds of
operations: copy-back,
extract, and
backup. If you specify a value
of 0, it is silently adjusted to 1. The maximum is 15; if
you supply a negative value, it is silently adjusted to 15.
For apply-log operations, the
number of read threads is always 1 regardless of this option
setting. See Section 7.1, “Optimizing Backup Performance” and
Section 7.2, “Optimizing Restore Performance” for advice about
recommended combinations of values for
--read-threads,
--process-threads, and
--write-threads for various hardware
configurations, such as RAID or non-RAID storage devices.
--process-threads=
num_threads
Specifies the number of threads to use for processing data, such as compressing or uncompressing backup files.
Default: currently 3. This default applies to these kinds of
operations: extract, and
backup. It is ignored when you
use any of the options
--incremental-with-redo-log-only,
apply-incremental-backup,
copy-back, or
backup-dir-to-image.
If you specify a value of 0, it is silently adjusted to 1.
The maximum is 15; if you supply a negative value, it is
silently adjusted to 15. For
apply-log operations, the number
of process threads is always 1 regardless of this option
setting. See Section 7.1, “Optimizing Backup Performance” and
Section 7.2, “Optimizing Restore Performance” for advice about
recommended combinations of values for
--read-threads,
--process-threads, and
--write-threads for various hardware
configurations, such as RAID or non-RAID storage devices.
--write-threads=
num_threads
Specifies the number of threads to use for writing data to disk.
Default: currently 3. This default applies to these kinds of
operations: copy-back,
extract, and
backup. It is ignored when you
use any of the single-file backup options
list-image or
validate.
If you specify a value of 0, it is silently adjusted to 1.
The maximum is 15; if you supply a negative value, it is
silently adjusted to 15. For
apply-log operations, the number
of write threads is always 0 regardless of this option
setting. See Section 7.1, “Optimizing Backup Performance” and
Section 7.2, “Optimizing Restore Performance” for advice about
recommended combinations of values for
--read-threads,
--process-threads, and
--write-threads for various hardware
configurations, such as RAID or non-RAID storage devices.
--trace=
level
Level of tracing and debug information output to the
mysqlbackup log.
level is an integer in the range
0..3, from the least amount of output to
the most. 0 specifies informational, warning, or error
messages but no detailed trace information. 1 enables
“verbose” output. 2 enables
“debug” output. 3 enables all low-level trace
output.
Default: 0.
--limit-memory=MB
Specify maximum memory in megabytes that can be used by the
mysqlbackup command. Formerly applied
only to apply-log operation, but
in MySQL Enterprise Backup 3.8 and higher it applies to all operations. Do not
include any suffixes such as mb or
kb in the option value.
Default: 100 for apply-log
operations; 300 for all other operations. megabytes).
The memory limit specified by this option also caps the
number of 16MB buffers available for multithreaded
processing. For example, with a 300MB limit, the maximum
number of buffers is 18. If additional buffers are required
because you increase the values for
--read-threads,
--process-threads,
--write-threads, and/or
--number-of-buffers, increase
the --limit-memory value proportionally.
--no-locking
Disables locking during backup of non-InnoDB files, even if a connection is available. Can be used to copy non-InnoDB data with less disruption to normal database processing. There could be inconsistencies in non-InnoDB data if any changes are made while those files are being backed up.
--page-reread-time=
MS
Interval in milliseconds that mysqlbackup waits before re-reading a page that fails a checksum test. A busy server could be writing a page at the same moment that mysqlbackup is reading it. Can be a floating-point number, such as 0.05 meaning 50 microseconds. Best possible resolution is 1 microsecond, but it could be worse on some platforms. Default is 100 milliseconds (0.1 seconds).
--page-reread-count=
retry_limit
Maximum number of re-read attempts, when a
page fails a checksum test.
A busy server could be writing a page at the same moment
that mysqlbackup is reading it. If the
same page fails this many checksum tests consecutively, with
a pause based on the
--page-reread-time option
between each attempt, the backup fails. Default is 500.