Log synchronization method and device, computer readable storage medium and electronic equipment

A technology of a synchronization device and a storage medium, applied in the computer field, can solve problems such as low log synchronization efficiency, and achieve the effects of improving rollback efficiency, improving efficiency, and avoiding full transmission.

Pending Publication Date: 2022-01-25
NETEASE (HANGZHOU) NETWORK CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The object of the present invention is to provide a log synchronization method, a log synchronization device, a computer-readable storage medium and electronic equipment, and then at least to a certain extent overcome the problem of low log synchronization efficiency due to limitations and defects of related technologies

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log synchronization method and device, computer readable storage medium and electronic equipment
  • Log synchronization method and device, computer readable storage medium and electronic equipment
  • Log synchronization method and device, computer readable storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0068] Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete and fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of embodiments of the invention. However, those skilled in the art will appreciate that the technical solution of the present invention may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other instances, well-known technical solutions have not been shown or descr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a log synchronization method and device, a computer readable storage medium and electronic equipment, and relates to the technical field of computers. The method comprises the following steps: obtaining a to-be-matched log list and a target log list corresponding to the to-be-matched log list, and determining current to-be-matched logs included in the to-be-matched log list; determining whether the current to-be-matched log is matched with the target log list or not according to the current to-be-matched log and the target log list; when it is determined that the current to-be-matched logs are not matched with the target log list, according to the target log list, determining to-be-matched logs matched with the target log list in the to-be-matched log list; and based on the to-be-matched log, synchronizing the to-be-matched log to the target log list. The log backspacing frequency is reduced, and the log synchronization efficiency is improved.

Description

technical field [0001] Embodiments of the present disclosure relate to the field of computer technologies, and in particular, relate to a log synchronization method, a log synchronization device, a computer-readable storage medium, and electronic equipment. Background technique [0002] In a distributed system, a consensus protocol is used to maintain the same state among multiple nodes. Among them, the Raft protocol is widely used because it is easy to understand. [0003] In the implementation of the basic Raft protocol, when the log list to be matched by the leader node synchronizes logs with the target log list of the follower node, and the current log to be matched in the log list to be matched does not match the target log list, usually Perform a "return one" operation on the list of logs to be matched, that is, use the previous log of the current log to be matched as the matching log for the next synchronization. success. [0004] However, the leader node and the fo...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/18G06F16/27
CPCG06F16/1815G06F16/27
Inventor 姚彤
Owner NETEASE (HANGZHOU) NETWORK CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products