A method and device for realizing data synchronization of active and standby meta-servers

A meta-server and data synchronization technology, which is applied in the direction of data exchange network, electrical components, digital transmission system, etc., can solve the problem that the data consistency of the main and backup meta-servers cannot be guaranteed, and achieve the effect of solving data loss

Active Publication Date: 2017-06-23
ZHEJIANG DAHUA TECH CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides a method and device for realizing the data synchronization of the master and backup meta servers, which is used to solve the problem in the prior art that the data synchronization must rely on third-party equipment, and when the third-party equipment fails, the master and backup meta-server cannot be guaranteed. The problem of data consistency between meta servers

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
  • A method and device for realizing data synchronization of active and standby meta-servers
  • A method and device for realizing data synchronization of active and standby meta-servers
  • A method and device for realizing data synchronization of active and standby meta-servers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to ensure the data consistency between the active and standby meta-servers, solve the problem in the existing technology that data synchronization must rely on third-party devices, and when the third-party devices fail, the data consistency between the active and standby meta-servers cannot be guaranteed. To solve the problem, an embodiment of the present invention provides a method and device for realizing data synchronization between the active and standby meta servers.

[0046] Preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0047] refer to figure 1 As shown, in the embodiment of the present invention, the main element server and the backup element server are presented to the user through a router. Provide a unified IP address.

[0048]Since all user operations on the primary meta server and backup meta server will go through the router, the router can be considered as an absolutely re...

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 method and a device for realizing data synchronization of active and standby meta-servers, which are used to solve the problem that in the prior art, since data synchronization must rely on a third-party device, the data between the active and standby meta-servers cannot be guaranteed when the third-party device fails. consistency issues. The method is as follows: every time the router receives a file operation request sent by a user, it forwards the received file operation request to the main meta server, and locally saves the file storage location information returned by the main meta server for the file operation request; receiving When the acquisition request sent by the backup element server is reached, it is determined that the primary element server runs abnormally, and according to the acquisition request, the storage location information of all files currently saved locally is sent to the backup element server. The above method solves the problem of data loss between the primary element server and the backup element server based on the reliability of the router and does not require additional third-party equipment.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a method and a device for realizing data synchronization of active and standby meta-servers. Background technique [0002] In order to ensure the reliability of distributed metadata, a dual-machine hot backup method is usually used to achieve data synchronization through the heartbeat line. However, due to network reasons or the timeliness of data transmission, etc., it cannot be guaranteed that when the master server fails to provide services and the backup server takes over the service, all the data on the master server has been transferred to the backup server. . [0003] For example, when the master server receives the data sent by the user, it sends the data to the backup server, but it has not been sent to the backup server due to network reasons. At this time, the master server fails, and this part of the data will not be synchronized to the backup server in time. meta server...

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 Patents(China)
IPC IPC(8): H04L29/08H04L12/24
Inventor 陈伟周明伟翁健王亮舒添翼许焰张兴明
Owner ZHEJIANG DAHUA 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