Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Log data synchronization method and device, server and storage medium

A technology for storage media and data synchronization, which is applied in the field of data processing and can solve the problems of increasing log data synchronization time-consuming and time-consuming

Pending Publication Date: 2020-12-15
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The above log data synchronization process needs to save the log data to the disk, then read the log data from the disk and synchronize, saving the log data to the disk and then reading the log data from the disk is a very time-consuming process, increasing the log data Synchronization takes time

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 data synchronization method and device, server and storage medium
  • Log data synchronization method and device, server and storage medium
  • Log data synchronization method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

[0059] see figure 2 , which shows the flow of a log data synchronization method provided by the embodiment of the present application, which may include the following steps:

[0060] 101: Generate first log data. In this embodiment, the first log data is generated in the process of writing data to the main database, and writing data to the main dat...

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 provides a log data synchronization method and device, a server and a storage medium, and the method comprises the steps of generating first log data, writing the first log data into thefirst storage medium corresponding to a main database, and synchronizing the first log data to a slave database, judging whether to send the first log data to the slave database again or not according to the receiving condition of the synchronization feedback message sent by the slave database, so as to directly synchronize the first log data to the slave database after the first log data is generated; in the first log data synchronization process, saving the time consumed for writing the first log data into the first storage medium and reading the first log data from the first storage medium, so that the synchronization time of the first log data is shortened; and sending the first log data to the slave database again under the condition that the receiving condition of the synchronization feedback message indicates that the first log data is not successfully synchronized, so as to ensure that the log data in the master database is consistent with the log data in the slave database.

Description

technical field [0001] The present application belongs to the technical field of data processing, and in particular relates to a log data synchronization method, device, server and storage medium. Background technique [0002] At present, in order to ensure the security and high availability of the database, a backup library of the database is built. The database that needs to be built as the backup library is the master database, and the backup library is the slave database. The log data generated during the database writing process is sent to the slave database synchronously. The process of synchronously sending log data to the slave database is as follows: [0003] Read the log data from the disk through the thread corresponding to the master database, and send the read log data to the slave database, such as figure 1 shown. The sending thread corresponding to the master database reads the log data from the disk, and then sends the read log data to the receiving thread...

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/27G06F16/21
CPCG06F16/27G06F16/219
Inventor 邱海港
Owner BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products