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
CN104967641BActive Publication Date: 2017-06-23ZHEJIANG DAHUA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG DAHUA TECH CO LTD
Publication Date
2017-06-23

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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