MySQL Cluster Configuration Files
1592
Effective Version
Type/Units
Default
Range/Values
MySQL 5.0.0
boolean
false
true, false
Restart Type: N
This parameter is a boolean value, and is disabled by default. When
Checksum
is enabled,
checksums are calculated for all messages before they are placed in the send buffer. This feature
prevents messages from being corrupted while waiting in the send buffer. It also serves as a check
against data being corrupted during transport.
17.3.2.11. Configuring MySQL Cluster Parameters for Local Checkpoints
The parameters discussed in
Logging and Checkpointing
and in
Data Memory, Index Memory, and
String Memory [1558]
that are used to configure local checkpoints for a MySQL Cluster do not exist in
isolation, but rather are very much interdepedent on each other. In this section, we illustrate how these
parameters—including
DataMemory
,
IndexMemory
,
NoOfDiskPagesToDiskAfterRestartTUP
,
NoOfDiskPagesToDiskAfterRestartACC
, and
NoOfFragmentLogFiles
—relate to one another
in a working Cluster.
In this example, we assume that our application performs the following numbers of types of operations
per hour:
• 50000 selects
• 15000 inserts
• 15000 updates
• 15000 deletes
We also make the following assumptions about the data used in the application:
• We are working with a single table having 40 columns.
• Each column can hold up to 32 bytes of data.
• A typical
UPDATE
run by the application affects the values of 5 columns.
• No
NULL
values are inserted by the application.
A good starting point is to determine the amount of time that should elapse between local checkpoints
(LCPs). It is worth noting that, in the event of a system restart, it takes 40-60 percent of this interval
to execute the REDO log—for example, if the time between LCPs is 5 minutes (300 seconds), then it
should take 2 to 3 minutes (120 to 180 seconds) for the REDO log to be read.
The maximum amount of data per node can be assumed to be the size of the
DataMemory
parameter.
In this example, we assume that this is 2 GB. The
NoOfDiskPagesToDiskAfterRestartTUP
parameter represents the amount of data to be checkpointed per unit time—however, this parameter is
actually expressed as the number of 8K memory pages to be checkpointed per 100 milliseconds. 2 GB
per 300 seconds is approximately 6.8 MB per second, or 700 KB per 100 milliseconds, which works out
to roughly 85 pages per 100 milliseconds.
Similarly, we can calculate
NoOfDiskPagesToDiskAfterRestartACC
in terms of the time for
local checkpoints and the amount of memory required for indexes—that is, the
IndexMemory
.
Assuming that we permit 512 MB for indexes, this works out to approximately 20 8-KB pages per 100
milliseconds for this parameter.
Next, we need to determine the number of REDO log files required—that is, fragment log files—the
corresponding parameter being
NoOfFragmentLogFiles
. We need to make sure that there are
sufficient REDO log files for keeping records for at least 3 local checkpoints. In a production setting,
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...