Event Reports Generated in MySQL Cluster
1663
In the previous diagram, the Stop and Start steps indicate that the process must be stopped
completely using a shell command (such as
kill
on most Unix systems) or the management client
STOP
command, then started again from a system shell by invoking the
ndbd
or
ndb_mgmd
executable
as appropriate.
Restart indicates that the process may be restarted using the
ndb_mgm
management client
RESTART
command (see
Section 17.5.2, “Commands in the MySQL Cluster Management Client”
).
Important
When performing an upgrade or downgrade of the MySQL Cluster software, you
must upgrade or downgrade the management nodes first, then the data nodes,
and finally the SQL nodes. Doing so in any other order may leave the cluster in
an unusable state.
17.5.6. Event Reports Generated in MySQL Cluster
In this section, we discuss the types of event logs provided by MySQL Cluster, and the types of events
that are logged.
MySQL Cluster provides two types of event log:
• The cluster log, which includes events generated by all cluster nodes. The cluster log is the log
recommended for most uses because it provides logging information for an entire cluster in a single
location.
By default, the cluster log is saved to a file named
ndb_node_id_cluster.log
, (where
node_id
is the node ID of the management server) in the same directory where the
ndb_mgm
binary resides.
Cluster logging information can also be sent to
stdout
or a
syslog
facility in addition to or instead
of being saved to a file, as determined by the values set for the
DataDir
and
LogDestination
configuration parameters. See
Section 17.3.2.4, “Defining a MySQL Cluster Management Server”
,
for more information about these parameters.
• Node logs are local to each node.
Output generated by node event logging is written to the file
ndb_node_id_out.log
(where
node_id
is the node's node ID) in the node's
DataDir
. Node event logs are generated for both
management nodes and data nodes.
Node logs are intended to be used only during application development, or for debugging application
code.
Both types of event logs can be set to log different subsets of events.
Each reportable event can be distinguished according to three different criteria:
• Category: This can be any one of the following values:
STARTUP
,
SHUTDOWN
,
STATISTICS
,
CHECKPOINT
,
NODERESTART
,
CONNECTION
,
ERROR
, or
INFO
.
• Priority: This is represented by one of the numbers from 1 to 15 inclusive, where 1 indicates “most
important” and 15 “least important.”
• Severity Level: This can be any one of the following values:
ALERT
,
CRITICAL
,
ERROR
,
WARNING
,
INFO
, or
DEBUG
.
Both the cluster log and the node log can be filtered on these properties.
The format used in the cluster log is as shown here:
2007-01-26 19:35:55 [MgmSrvr] INFO -- Node 1: Data usage is 2%(60 32K pages of total 2560)
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 ...