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

Real-time synchronization method and real-time synchronization system for configuration file applied to high-availability system

A configuration file, real-time synchronization technology, applied in transmission systems, electrical components, special data processing applications, etc.

Active Publication Date: 2015-04-01
EISOO SOFTWARE
View PDF6 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] Therefore, for highly available systems, the current file synchronization method has a large room for improvement

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
  • Real-time synchronization method and real-time synchronization system for configuration file applied to high-availability system
  • Real-time synchronization method and real-time synchronization system for configuration file applied to high-availability system
  • Real-time synchronization method and real-time synchronization system for configuration file applied to high-availability system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] The present invention needs to monitor the file modification status and trigger a synchronization event. Aware timeouts are required during synchronization. A failure rollback may be required depending on the synchronization result. In order to recover after a power failure, a synchronization log needs to be recorded. Concrete steps are described in conjunction with accompanying drawings, image 3 is the processing flow of the synchronous initiator, where the "monitor configuration file status" is figure 2 The child process shown; Figure 4 For the processing flow of the receiving end.

[0050] 1. The active-active node of the high-availability system starts the receiving process. The two nodes of the active-active system are symmetrical to each other, and both may become the initiator and receiver of synchronization. Therefore, both nodes need to start the receiving process and respond to the synchronization request sent by the peer at any time.

[0051]2. The a...

Embodiment 2

[0080] The invention runs a monitoring process on each node of the high-availability system. The listening process obtains information about files opened in write mode. When a file is modified, a synchronization operation can be initiated in real time.

[0081] In addition to running the monitoring process, the present invention also provides the program for modifying the configuration file in the form of a code library, and the code for accessing the file needs to be modified as follows:

[0082] 1. Open the file and call the registration interface of this code library after obtaining the file handle.

[0083] 2. The registration interface binds the file handle and the synchronization event, and the synchronization event records the peer node information. And copy a copy of the file in memory, called the original copy. The original copy is used in a possible rollback later.

[0084] 3. When the file handle is closed and the file content is written to the disk, the synchro...

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 real-time synchronization method and a real-time synchronization system for a configuration file applied to a high-availability system. The method comprises the following steps: (1) monitoring a write operation command on the configuration file in real time by all nodes in the high-availability system; (2) confirming whether another node exists in the system and is executing the write operation command on the configuration file when one node monitors the write operation command on the configuration file, and enabling the node to be a start end of the configuration file if no node in the system is executing the write operation command on the configuration file; (3) executing the write operation command by the start end and sending the configuration file to the other nodes in the system after finishing executing the write operation command. The system comprises a monitoring module, a receiving module and a configuration file modifying module. Compared with the prior art, the common problem of 'split brain' in the high-availability system is avoided; the synchronization, retransmission and roll-back of the file are realized; the consistency of the file is ensured to a maximum extent.

Description

technical field [0001] The invention relates to the field of file synchronization, in particular to a method and system for real-time synchronization of configuration files suitable for high-availability systems. Background technique [0002] In recent years, with the rapid development of information technology, enterprises have continuously increased requirements for data capacity and business continuity, and high-availability storage systems have become more and more popular. [0003] Highly available systems (such as figure 1 ) based on a shared or distributed storage medium, using at least two nodes to provide services to users. Nodes use heartbeats to sense connection status. When a node fails or a link is disconnected, a high-availability system needs to smoothly switch resources (such as storage pools, virtual volumes) and services (data I / O) from the failed node to the normal working node. Therefore, the configuration data consistency needs to be maintained betwee...

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
IPC IPC(8): H04L29/06G06F17/30
CPCH04L67/1095H04L67/30
Inventor 黄思倜叶佑群
Owner EISOO SOFTWARE
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