Rechercher dans le manuel MySQL
22.5.7.3 Event Buffer Reporting in the Cluster Log
NDB
uses one or more memory buffers for
events received from the data nodes. There is one such buffer
for each Ndb
object subscribing
to table events, which means that there are usually two buffers
for each mysqld performing binary logging
(one buffer for schema events, and one for data events). Each
buffer contains epochs made up of events. These events consist
of operation types (insert, update, delete) and row data (before
and after images plus metadata).
NDB
generates messages in the cluster log to
describe the state of these buffers. Although these reports
appear in the cluster log, they refer to buffers on API nodes
(unlike most other cluster log messages, which are generated by
data nodes).
Event buffer logging reports in the cluster log use the format shown here:
Node node_id: Event buffer status (object_id):
used=bytes_used (percent_used% of alloc)
alloc=bytes_allocated (percent_alloc% of max) max=bytes_available
latest_consumed_epoch=latest_consumed_epoch
latest_buffered_epoch=latest_buffered_epoch
report_reason=report_reason
The fields making up this report are listed here, with descriptions:
node_id
: ID of the node where the report originated.object_id
: ID of theNdb
object where the report originated.bytes_used
: Number of bytes used by the buffer.percent_used
: Percentage of allocated bytes used.bytes_allocated
: Number of bytes allocated to this buffer.percent_alloc
: Percentage of available bytes used; not printed ifndb_eventbuffer_max_alloc
is equal to 0 (unlimited).bytes_available
: Number of bytes available; this is 0 ifndb_eventbuffer_max_alloc
is 0 (unlimited).latest_consumed_epoch
: The epoch most recently consumed to completion. (In NDB API applications, this is done by callingnextEvent()
.)latest_buffered_epoch
: The epoch most recently buffered (completely) in the event buffer.report_reason
: The reason for making the report. Possible reasons are shown later in this section.
Possible reasons for reporting are described in the following list:
ENOUGH_FREE_EVENTBUFFER
: The event buffer has sufficient space.LOW_FREE_EVENTBUFFER
: The event buffer is running low on free space.The threshold free percentage level triggering these reports can be adjusted by setting the
ndb_report_thresh_binlog_mem_usage
server variable.BUFFERED_EPOCHS_OVER_THRESHOLD
: Whether the number of buffered epochs has exceeded the configured threshold. This number is the difference between the latest epoch that has been received in its entirety and the epoch that has most recently been consumed (in NDB API applications, this is done by callingnextEvent()
ornextEvent2()
). The report is generated every second until the number of buffered epochs goes below the threshold, which can be adjusted by setting thendb_report_thresh_binlog_epoch_slip
server variable. You can also adjust the threshold in NDB API applications by callingsetEventBufferQueueEmptyEpoch()
.PARTIALLY_DISCARDING
: Event buffer memory is exhausted—that is, 100% ofndb_eventbuffer_max_alloc
has been used. Any partially buffered epoch is buffered to completion even is usage exceeds 100%, but any new epochs received are discarded. This means that a gap has occurred in the event stream.COMPLETELY_DISCARDING
: No epochs are buffered.PARTIALLY_BUFFERING
: The buffer free percentage following the gap has risen to the threshold, which can be set in the mysql client using thendb_eventbuffer_free_percent
server system variable or in NDB API applications by callingset_eventbuffer_free_percent()
. New epochs are buffered. Epochs that could not be completed due to the gap are discarded.COMPLETELY_BUFFERING
: All epochs received are being buffered, which means that there is sufficient event buffer memory. The gap in the event stream has been closed.
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 26/06/2006, zuletzt geändert 26/10/2018
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/mysql-rf-mysql-cluster-logs-event-buffer.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.