Rechercher dans le manuel MySQL
22.5.6.1 NDB Cluster Logging Management Commands
ndb_mgm supports a number of management
commands related to the cluster log and node logs. In the
listing that follows, node_id
denotes
either a storage node ID or the keyword ALL
,
which indicates that the command should be applied to all of the
cluster's data nodes.
CLUSTERLOG ON
Turns the cluster log on.
CLUSTERLOG OFF
Turns the cluster log off.
CLUSTERLOG INFO
Provides information about cluster log settings.
node_id
CLUSTERLOGcategory
=threshold
Logs
category
events with priority less than or equal tothreshold
in the cluster log.CLUSTERLOG FILTER
severity_level
Toggles cluster logging of events of the specified
severity_level
.
The following table describes the default setting (for all data nodes) of the cluster log category threshold. If an event has a priority with a value lower than or equal to the priority threshold, it is reported in the cluster log.
Events are reported per data node, and that the threshold can be set to different values on different nodes.
Table 22.361 Cluster log categories, with default threshold setting
Category | Default threshold (All data nodes) |
---|---|
STARTUP |
7 |
SHUTDOWN |
7 |
STATISTICS |
7 |
CHECKPOINT |
7 |
NODERESTART |
7 |
CONNECTION |
7 |
ERROR |
15 |
INFO |
7 |
The STATISTICS
category can provide a great
deal of useful data. See
Section 22.5.6.3, “Using CLUSTERLOG STATISTICS in the NDB Cluster Management Client”, for more
information.
Thresholds are used to filter events within each category. For
example, a STARTUP
event with a priority of 3
is not logged unless the threshold for
STARTUP
is set to 3 or higher. Only events
with priority 3 or lower are sent if the threshold is 3.
The following table shows the event severity levels.
These correspond to Unix syslog
levels,
except for LOG_EMERG
and
LOG_NOTICE
, which are not used or mapped.
Table 22.362 Event severity levels
Severity Level Value | Severity | Description |
---|---|---|
1 | ALERT |
A condition that should be corrected immediately, such as a corrupted system database |
2 | CRITICAL |
Critical conditions, such as device errors or insufficient resources |
3 | ERROR |
Conditions that should be corrected, such as configuration errors |
4 | WARNING |
Conditions that are not errors, but that might require special handling |
5 | INFO |
Informational messages |
6 | DEBUG |
Debugging messages used for NDBCLUSTER
development |
Event severity levels can be turned on or off (using
CLUSTERLOG FILTER
—see above). If a
severity level is turned on, then all events with a priority
less than or equal to the category thresholds are logged. If the
severity level is turned off then no events belonging to that
severity level are logged.
Cluster log levels are set on a per
ndb_mgmd, per subscriber basis. This means
that, in an NDB Cluster with multiple management servers,
using a CLUSTERLOG
command in an instance
of ndb_mgm connected to one management
server affects only logs generated by that management server
but not by any of the others. This also means that, should one
of the management servers be restarted, only logs generated by
that management server are affected by the resetting of log
levels caused by the restart.
Traduction non disponible
Le manuel MySQL n'est pas encore traduit en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Document créé le 26/06/2006, dernière modification le 26/10/2018
Source du document imprimé : https://www.gaudry.be/mysql-rf-mysql-cluster-logging-management-commands.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.