High-reliability file synchronization method based on log change

A file synchronization and log file technology, applied in hardware monitoring, instrumentation, computing, etc., can solve problems such as data file corruption and data inconsistency, and achieve the effect of solving file inconsistency, reducing impact, and reducing network load

Active Publication Date: 2013-03-13
NARI TECH CO LTD
View PDF0 Cites 27 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the DATA_SRV application master and backup switch occurs, if there is no better synchronization scheme, data inconsistency will occur, and even data files will be damaged.

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
  • High-reliability file synchronization method based on log change
  • High-reliability file synchronization method based on log change
  • High-reliability file synchronization method based on log change

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The highly reliable file synchronization method of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0023] figure 1 This is the flowchart of client request processing in the synchronization method. When the server of the file service receives the client request, it first determines whether the file is locked. If it is locked, it needs to wait until the file is unlocked before performing subsequent operations. Determine whether the operation type is a modification operation according to the processing situation. If the operation type is a modification operation, record the operation log; otherwise, return the processing result.

[0024] figure 2 It is a flowchart of log processing in the synchronization method.

[0025] The file service scans log files in real time, and if there are log files, then judges whether the number of log files exceeds the threshold number N:

[0026] If it exceeds N, perform a ...

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 high-reliability file synchronization method based on log changes. The method comprises the steps of: judging whether a file requested to be operated is locked after a customer request is received by a file server, and waiting for unlocking to perform relevant operations if the file is locked; recording the operational type and the operational file of every modification through the file server in a log format; performing real-time scanning of the log file through the file server, and synchronizing all files to other nodes when the number of operational logs reaches the threshold value; and when the number of operational logs is smaller than the threshold value, sequentially processing every log file according to a sequence of generation time of the log files. For every log file, additional files are synchronized to other nodes according to contents of the operational log, and the operational log is deleted if synchronization is successful; and otherwise, the operational log is maintained. The target node is locked when files are synchronized, and the problem of file inconsistency caused by sudden switching of a host and a spare unit during file synchronization can be solved effectively.

Description

technical field [0001] The invention relates to a highly reliable file synchronization method based on a change log, which belongs to the field of power grid dispatching automation. Background technique [0002] In today's power grid dispatching automation system, there are multiple applications. Each application is a combination of a data entity and a set of service programs that process this data entity. For example, the composition of SCADA applications includes: SCADA real-time library, data Service process, operation service process, remote signal telemetry and working condition processing service process, etc. In order to ensure the reliability of the system, each application runs on a different node. Generally, there is one host among the nodes, and the rest are (hot) standby machines. When an abnormality occurs in the application program of the host node, a master-standby switchover will occur, and one node in the standby machine will switch to the master according ...

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/30G06F11/34
Inventor 雷宝龙彭辉陈鹏万书鹏
Owner NARI TECH 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