摘要 |
<p>Provided are a zone log queue synchronization and management method and device. The method comprises: a master node receiving a log record write request message sent by a client; the master node determining that a master log zone interval is a writable master log zone interval according to a write flag of the master log zone interval, and writing a log record triggered by the client into a master log queue corresponding to the writable master log zone interval; and the master node sending a log record synchronization request message to a slave node, so that the slave node determines a writable slave log zone interval corresponding to the slave node according to the writable master log zone interval, and writing the log record into a slave log queue corresponding to the writable slave log zone interval. The provided zone-based queue synchronization and management method and device can ensure the consistence of data of the master node and the salve node when the log zone intervals are changed.</p> |