Unlock instant, AI-driven research and patent intelligence for your innovation.

Log synchronization method and device

A log and database technology, applied in the field of computer networks, can solve problems affecting database performance, external access capabilities of source databases, etc.

Inactive Publication Date: 2017-05-10
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, according to the existing distributed file storage database processing mechanism, once a new destination database establishes a connection with the source database, the election mechanism of the master database will be triggered. During the election process, the external access ability of the source database will be affected
If the master is changed after selection, a series of follow-up operations are required, such as notifying the business access terminal and modifying meta information, which will further affect the performance of the database

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
  • Log synchronization method and device
  • Log synchronization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0020] An embodiment of the present invention provides a log synchronization method, which is a third-party solution, that is, the log information of the source database is synchronized to the destination database through a developed third-party tool. For example, the method of the embodiment of the present invention is implemented through middleware, a connection for reading logs is established between the middleware and the source...

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 discloses a log synchronization method and device, and relates to the technical field of computer network. The method comprises the steps of establishing connection with a source database; reading the log information from the source database; assigning the log information to a thread connected with the destination database; and writing the log information to the destination database by the thread. As a middleware is adopted, direct connection between the source database and the destination database is not established, and the connection relationship between the databases in the distributed system is not changed, so that the main database election mechanism caused by the new connection will not be triggered, and the problem that the database performance is affected by the main database election mechanism is not caused.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a log synchronization method and device. Background technique [0002] A database based on distributed file storage is generally written in a specific language and aims to provide scalable high-performance data storage solutions for WEB applications. Due to the limited processing capacity of a single database, in the distributed file storage database solution, based on the source database, multiple target databases are established according to business or function, thereby reducing the access pressure on the source database. When a data table in the source database changes, it is necessary to ensure that the data table in the target database concerned with the data table changes consistently with the data table in the source database. At the same time, it is also necessary to synchronize the data table in the source database The log information and the log information ...

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): G06F17/30
Inventor 吴晓飞宋昭
Owner BEIJING QIHOO TECH CO LTD