CN108667635B - Disaster recovery processing method, equipment and system - Google Patents

Disaster recovery processing method, equipment and system Download PDF

Info

Publication number
CN108667635B
CN108667635B CN201710188917.2A CN201710188917A CN108667635B CN 108667635 B CN108667635 B CN 108667635B CN 201710188917 A CN201710188917 A CN 201710188917A CN 108667635 B CN108667635 B CN 108667635B
Authority
CN
China
Prior art keywords
service
standby
main
equipment
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710188917.2A
Other languages
Chinese (zh)
Other versions
CN108667635A (en
Inventor
林仙茂
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710188917.2A priority Critical patent/CN108667635B/en
Publication of CN108667635A publication Critical patent/CN108667635A/en
Application granted granted Critical
Publication of CN108667635B publication Critical patent/CN108667635B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/1658Data re-synchronization of a redundant component, or initial sync of replacement, additional or spare unit
    • G06F11/1662Data re-synchronization of a redundant component, or initial sync of replacement, additional or spare unit the resynchronized component or unit being a persistent storage device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephonic Communication Services (AREA)
  • Alarm Systems (AREA)

Abstract

The embodiment of the invention discloses a disaster recovery processing method, which comprises the steps that a main service device receives a service request, service data are uploaded to a main storage device according to the service request, when the main service device determines that the service data are unsuccessfully uploaded and determines that the uploading failure rate reaches any level disaster recovery threshold value in a multi-level disaster recovery threshold value in the current detection period, a remote request is sent to a standby service device according to the disaster recovery level corresponding to the uploading failure rate, and the remote request is used for indicating the standby service device to upload the service data to the standby storage device; and the main service equipment receives the index information of the service data synchronized by the standby service equipment. The embodiment of the invention also provides corresponding equipment and a corresponding system. The technical scheme of the invention ensures the safety and stability of the disaster recovery system, reduces the occupation of storage resources and improves the utilization rate of the storage resources.

Description

Disaster recovery processing method, equipment and system
Technical Field
The invention relates to the technical field of internet, in particular to a method, equipment and a system for disaster recovery processing.
Background
With the development of communication technology, the internet becomes more and more important, and the dependence of enterprises and individuals on the internet is very high. The use of the Internet by the user is accomplished through an Internet Data Center (IDC).
In order to ensure the normal use of the internet by users, a disaster recovery system is usually provided for IDCs. The disaster recovery system is to establish two or more sets of network systems with the same function, wherein the two or more sets of network systems comprise a main network system and at least one standby network system, when the main network system works, data can be backed up to the standby network system at regular time, when the main network system fails, the standby network system can be switched to, and the standby network system provides normal network service for users.
In the disaster recovery system in the prior art, a large amount of data backup needs to be performed, so that the utilization rate of storage resources is low.
Disclosure of Invention
The embodiment of the invention provides a disaster recovery processing method, which can reduce the occupation of storage resources in a backup data index mode, thereby improving the utilization rate of the storage resources. The embodiment of the invention also provides corresponding equipment and a corresponding system.
A first aspect of the present invention provides a method for disaster recovery processing, where the method is applied to a disaster recovery system, where the disaster recovery system includes a primary service device, a backup service device, a primary storage device, and a backup storage device, and the method includes:
the main service equipment receives a service request, wherein the service request is used for indicating the main service equipment to upload service data to the main storage equipment;
the main service equipment uploads the service data to the main storage equipment according to the service request;
when the main service device determines that the uploading of the service data fails and determines that the uploading failure rate reaches any one level disaster tolerance threshold value in the multi-level disaster tolerance threshold values in the current detection period, sending a remote request to the standby service device according to the disaster tolerance level corresponding to the uploading failure rate, wherein the remote request is used for indicating the standby service device to upload the service data to the standby storage device;
and the main service equipment receives the index information of the service data synchronized by the standby service equipment.
A second aspect of the present invention provides a method for disaster recovery processing, where the method is applied to a disaster recovery system, where the disaster recovery system includes a primary service device, a backup service device, a primary storage device, and a backup storage device, and the method includes:
the standby service equipment receives a remote request sent by the main service equipment, wherein the remote request is sent by the main service equipment when determining that the uploading of the service data to the main storage equipment fails and determining that the uploading failure rate reaches any level disaster tolerance threshold value in a multi-level disaster tolerance threshold value in the current detection period;
the standby service equipment uploads the service data to the standby storage equipment according to the remote request;
and the standby service equipment synchronizes the index information of the service data to the main service equipment.
A third aspect of the present invention provides a master service apparatus, comprising:
a receiving unit, configured to receive a service request, where the service request is used to instruct the primary service device to upload service data to the primary storage device;
an uploading unit, configured to upload the service data to the main storage device according to the service request received by the receiving unit;
a determining unit, configured to determine that an upload failure rate reaches any one level of disaster tolerance thresholds in the multi-level disaster tolerance thresholds in a current detection period when the main service device determines that the upload of the service data by the upload unit fails;
a sending unit, configured to send a remote request to the standby service device according to the disaster tolerance level corresponding to the upload failure rate determined by the determining unit, where the remote request is used to instruct the standby service device to upload the service data to the standby storage device;
the receiving unit is further configured to receive index information of the service data synchronized by the standby service device.
A fourth aspect of the present invention provides a service preparation apparatus, including:
a receiving unit, configured to receive a remote request sent by the primary service device, where the remote request is sent by the primary service device when it is determined that the service data is unsuccessfully uploaded to the primary storage device and it is determined that an upload failure rate reaches any level of a multi-level disaster tolerance threshold in a current detection period;
the uploading unit is used for uploading the service data to the standby storage equipment according to the remote request received by the receiving unit;
and the sending unit is used for synchronizing the index information of the service data uploaded by the uploading unit to the main service device.
According to the disaster recovery processing method provided by the embodiment of the invention, one part of data is stored in either the main storage device or the standby storage device, only one part of data is stored, and the index information of the data is respectively stored in the main storage device and the standby storage device, so that the stored data can be found no matter the index information of the data of the main service device or the index information of the data of the standby service device is inquired, the safety and the stability of the disaster recovery system are ensured, meanwhile, the occupation of storage resources is reduced, and the utilization rate of the storage resources is improved.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a disaster recovery system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of another embodiment of the disaster recovery system according to the embodiment of the present invention;
fig. 3 is a schematic diagram of an embodiment of a disaster recovery processing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another embodiment of a disaster recovery processing method according to an embodiment of the present invention;
fig. 5 is a schematic diagram of another embodiment of a disaster recovery processing method according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an embodiment of a data structure of index information in an embodiment of the present invention;
FIG. 7 is a diagram of an embodiment of a data structure of index information in an embodiment of the present invention;
FIG. 8 is a diagram of an embodiment of a data structure of index information to be synchronized according to the embodiment of the present invention;
FIG. 9 is a schematic diagram of an embodiment of a data structure for marking an unsynchronized record in accordance with an embodiment of the invention;
FIG. 10 is a diagram of an embodiment of a host service device in an embodiment of the invention;
FIG. 11 is a diagram of an embodiment of a standby service device in an embodiment of the present invention;
FIG. 12 is a diagram of another embodiment of a standby service device in an embodiment of the present invention;
FIG. 13 is a diagram of another embodiment of a standby service device in an embodiment of the present invention;
FIG. 14 is a diagram of another embodiment of a standby service device in an embodiment of the present invention;
FIG. 15 is a diagram of another embodiment of a standby service device in an embodiment of the present invention;
FIG. 16 is a diagram of another embodiment of a master service device in an embodiment of the invention;
fig. 17 is a schematic diagram of another embodiment of a service preparation device in the embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described below with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Those skilled in the art will appreciate that the solutions provided by the embodiments of the present invention are also applicable to similar technical problems.
The embodiment of the invention provides a disaster recovery processing method, which can reduce the occupation of storage resources in a backup data index mode, thereby improving the utilization rate of the storage resources. The embodiment of the invention also provides corresponding equipment and a corresponding system. The following are detailed below.
The current disaster recovery system comprises a main end and a standby end, wherein one copy of data stored in the main end needs to be backed up by the standby end, and thus, two copies of data need to be stored by one copy of data, which results in low utilization rate of storage resources. In order to improve the utilization rate of storage resources in a disaster recovery system and ensure the safety and stability of the disaster recovery system, embodiments of the present invention provide a light disaster recovery system, which only needs to store one copy of data and backup a data index of the stored data, thereby reducing the occupation of the storage resources and improving the utilization rate of the storage resources.
Fig. 1 is a schematic diagram of an embodiment of a disaster recovery system according to an embodiment of the present invention.
As shown in fig. 1, the disaster recovery system provided in the embodiment of the present invention includes a main service device 20A, a standby service device 20B, a main storage device 30A, and a standby storage device 30B, where the main service device 20A may receive a service request sent by a service server 10. The business server 10, the main service device 20A, the standby service device 20B, the main storage device 30A and the standby storage device 30B are connected through network communication.
The service server 10 may communicate with the user equipment and transmit a service request to the main service device 20A according to a request of the user equipment.
The main service device 20A receives a service request, which may be a service data upload request.
The main service device 20A uploads the service data to the main storage device 30A, and if the main service device 20A determines that the service data upload fails and determines that the upload failure rate in the current detection period reaches any one level of the multi-level disaster tolerance threshold, sends a remote request to the standby service device according to the disaster tolerance level corresponding to the upload failure rate.
In the embodiment of the present invention, a multi-level disaster recovery policy is set, and different levels of disaster recovery policies are configured for different failure conditions in the main service device 20A. For example: taking the upload failure rate as an example, if the upload failure rate is set to 0 level within 1%, a local retry strategy is adopted, the upload failure rate is 1 level from 1% to 20%, a remote retry strategy is adopted, the upload failure rate exceeds 20%, the remote disaster recovery strategy is adopted, and a strategy of switching all requests to remote places is adopted. Of course, this is merely an example of the multi-level disaster tolerance, and actually, both the configuration and the threshold value of the multi-level disaster tolerance policy may be set and adjusted according to the requirement.
The remote request in the embodiment of the invention refers to a request crossing a machine room, and the machine rooms are usually not arranged in the same city, so the remote request is called as a remote request.
The standby service device 20B uploads the service data to the standby storage device 30B according to the remote request.
The standby service apparatus 20B transmits the index information of the service data to the main service apparatus 20A.
The service request may be a picture upload request, for example: taking the application scene of the QQ photo album as an example, a certain QQ user uploads a picture to the QQ photo album.
After receiving the picture upload request, the main service device 20A uploads a picture to the main storage device 30A, if the picture upload is successful, only the index information of the picture needs to be synchronized to the standby service device, if the picture upload is failed, the main service device 20A needs to determine an upload failure rate in the current detection period, if the upload failure rate reaches a retry level in a different place, the main service device 20A sends a retry request in a different place to the standby service device 20B, and the standby service device 20B uploads the picture to the standby storage device 30B according to the retry request in the different place and asynchronously sends the index information of the picture to the main service device 20A for storage. If main service device 20A determines that the transmission failure rate reaches the different-location switching level, main service device 20A sends a different-location switching request to standby service device 20B, and standby service device 20B uploads the picture to standby storage device 30B according to the different-location switching request, and takes over the work of main service device 20A, processes the service request that is sent to main service device 20A later. Standby service apparatus 20B asynchronously sends the index information of the picture uploaded to standby storage apparatus 30B for main service apparatus 20A to main service apparatus 20A for storage.
When the standby service device 20B uploads the service data to the standby storage device according to the remote request, a backup mark may be further set for the service data, where the backup mark indicates that the service data is not synchronized to the main service device.
The standby service device 20B periodically synchronizes the index information of the service data indicated by the backup mark to the main service device; and the backup mark of the synchronized index information is cleared.
In order to improve the resource utilization of the storage resource of the standby storage device 30B, the standby service device 20B clears the expired data in the standby storage device 30B according to a Least Recently Used (LRU) algorithm.
In this embodiment of the present invention, the standby service device 20B may also periodically query a first index record and a second index record, where the first index record records index information recorded in the main service device, and the second index record records index information recorded in the standby service device;
the standby service device 20B determines the index information lacking in the main service device according to the first index record and the second index record;
the standby service apparatus 20B synchronizes the index information lacking in the main service apparatus with the main service apparatus.
In the embodiment of the present invention, to ensure that the information of the main service device 20A is complete, the standby service device 20B needs to synchronize the index information of the service data uploaded to the standby storage device 30B back to the main service device in time.
In the embodiment of the invention, one copy of data is stored in either the main storage device 30A or the standby storage device 30B, one copy of data is stored, and the index information of the data is stored in the main storage device and the standby storage device respectively, so that the stored data can be found no matter the index information of the data of the main service device 20A or the index information of the data of the standby service device 20B is inquired, the safety and the stability of the disaster recovery system are ensured, meanwhile, the occupation of storage resources is reduced, and the utilization rate of the storage resources is improved.
The disaster recovery system of the embodiment of the invention is shown in the form of a machine room, and can be understood by referring to fig. 2.
As shown in fig. 2, the main service device 20A, the standby service device 20B, the main storage device 30A, and the standby storage device 30B are all represented in a modular form, where the machine room a is a main machine room and the machine room B is a standby machine room, and actually, the machine room B may also be a main machine room in another disaster recovery system, and the machine room a may also be a standby machine room in another disaster recovery system.
The service access module a and the synchronization module a may belong to the main service device in fig. 1. The memory module a may correspond to a primary storage device. The service access module B, the upload module B and the synchronization module B may belong to the service standby apparatus in fig. 1. The memory module B may correspond to a spare memory device.
In the disaster recovery system of the embodiment of the invention, the service access module A receives the service request sent by the service server A, then sends the service request to the upload module A, and the upload module A uploads the service data to the storage module A. The service access module A monitors whether the service data is uploaded successfully, if the uploading is determined to be unsuccessful, and the uploading failure rate is determined to reach any level disaster tolerance threshold value in the multi-level disaster tolerance threshold values in the current detection period, the service access module A sends a remote retry request or a remote switching request to the uploading module B according to the disaster tolerance level corresponding to the uploading failure rate, wherein the detection period can be set according to the requirement and can be a minute granularity, and the method is not limited in the embodiment of the invention. The uploading module B uploads the service data to the storage module B according to the remote retry request or the remote switching request, and sends the index information of the service data to the uploading module A through the synchronization module A.
The service access module a can also pull the index information list of the service data from the upload module a, and the service access module B can also pull the index information list of the service data from the upload module B.
The service access module B may also query the synchronized index information and the unsynchronized index information in the synchronization module a and the synchronization module B, thereby determining the index information of all the service data that should be included in the machine room a.
If the uploading module A uploads the service data to the storage module A normally, the disaster recovery strategy is not triggered, and after the service data is uploaded normally, the synchronization module A only needs to synchronize the index information of the service data to the storage module B.
The above is a description of a disaster recovery system, and a method for disaster recovery processing in an embodiment of the present invention is described below with reference to the accompanying drawings.
As shown in fig. 3, an embodiment of the method for disaster recovery processing according to the embodiment of the present invention is applied to a disaster recovery system, where the disaster recovery system includes a primary service device, a backup service device, a primary storage device, and a backup storage device, and the method includes:
101. and the main service equipment receives a service request, wherein the service request is used for indicating the main service equipment to upload service data to the main storage equipment.
102. And the main service equipment uploads the service data to the main storage equipment according to the service request.
103. And when the main service equipment determines that the uploading of the service data fails, determining that the uploading failure rate reaches any level disaster tolerance threshold value in the multi-level disaster tolerance threshold values in the current detection period.
104. And the main service equipment sends a remote request to the standby service equipment according to the disaster tolerance level corresponding to the uploading failure rate.
The remote request is used for indicating the standby service equipment to upload the service data to the standby storage equipment.
105. And the standby service equipment uploads the service data to the standby storage equipment according to the remote request.
106. And the standby service equipment synchronizes the index information of the service data to the main service equipment.
In the embodiment of the invention, one copy of data is stored in either the main storage device 30A or the standby storage device 30B, one copy of data is stored, and the index information of the data is stored in the main storage device and the standby storage device respectively, so that the stored data can be found no matter the index information of the data of the main service device 20A or the index information of the data of the standby service device 20B is inquired, the safety and the stability of the disaster recovery system are ensured, meanwhile, the occupation of storage resources is reduced, and the utilization rate of the storage resources is improved.
Optionally, the sending a remote request to the standby service device according to the disaster tolerance level corresponding to the upload failure rate may include:
when the disaster tolerance level corresponding to the uploading failure rate is a remote retry level, sending a remote retry request to the standby service equipment, where the remote retry request is used to instruct the standby service equipment to upload the service data; alternatively, the first and second electrodes may be,
and when the disaster tolerance level corresponding to the uploading failure rate is a remote switching level, sending a remote switching request to the standby service equipment, wherein the remote switching request is used for indicating the standby service equipment to take over the uploading of the service request and the request received by the main service equipment after the disaster tolerance switching.
Optionally, when the standby service device uploads the service data to the standby storage device according to the remote request, the method may further include:
and the standby service equipment sets a backup mark for the service data, wherein the backup mark indicates that the service data is not synchronized to the main service equipment.
Optionally, another embodiment of the disaster recovery processing method provided in the embodiment of the present invention further includes:
the backup service equipment periodically synchronizes index information of the service data indicated by the backup mark to the main service equipment;
and the standby service equipment clears the backup marks of the synchronized index information.
Optionally, another embodiment of the disaster recovery processing method provided in the embodiment of the present invention further includes:
and the standby service equipment clears the expired data in the standby storage equipment according to the least recently used algorithm LRU.
Optionally, another embodiment of the disaster recovery processing method provided in the embodiment of the present invention further includes:
the standby service equipment acquires a first index record and a second index record, wherein the first index record records the index information recorded in the main service equipment, and the second index record records the index information recorded in the standby service equipment;
the standby service equipment determines the index information lacked in the main service equipment according to the first index record and the second index record;
and the standby service equipment synchronizes the index information lacking in the main service equipment to the main service equipment.
With reference to the module form of fig. 2 and taking picture uploading as an example, the method for disaster recovery processing according to the embodiment of the present invention is described with reference to fig. 4 and fig. 5, respectively.
As shown in fig. 4, another embodiment of the disaster recovery processing method according to the embodiment of the present invention includes:
201. and the service A sends a picture uploading request to the service access module A.
202. And the service access module A uploads the pictures to the storage module A through the uploading module A.
The uploading module A is equivalent to an interface for connecting the application service equipment with the storage module A.
203. The service access module A determines that the uploading fails and determines that the uploading failure rate reaches the remote retry level in the current detection period.
The upload failure may be an upload timeout, such as: if the uploading time is 30ms and exceeds 30ms, the uploading can be considered to be failed.
204. The service access module A sends a remote retry request to the upload module B.
205. After the image is uploaded to the storage module B by the uploading module B, a backup mark is set for the uploaded image in the synchronization module B, and the backup mark indicates that the image is not synchronized to the uploading module a.
206 and 208, returning a response of successful uploading.
209. And the synchronization module B returns the index information of the picture to the uploading module A.
210. And the uploading module A returns a response of successful receiving to the synchronization module B.
The embodiment of the invention describes a disaster recovery processing scheme of remote retry level. The disaster recovery processing scheme of the allopatric handover level is described below with reference to fig. 5.
As shown in fig. 5, another embodiment of the disaster recovery processing method according to the embodiment of the present invention includes:
301. and the service A sends a picture uploading request to the service access module A.
302. And the service access module A uploads the pictures to the storage module A through the uploading module A.
The uploading module A is equivalent to an interface for connecting the application service equipment with the storage module A.
303. And the service access module A determines that the uploading fails and determines that the uploading failure rate reaches the different-place switching level in the current detection period.
The upload failure may be an upload timeout, such as: if the uploading time is 30ms and exceeds 30ms, the uploading can be considered to be failed.
304. The service access module A sends a remote switching request to the upload module B.
305. After the image is uploaded to the storage module B by the uploading module B, a backup mark is set for the uploaded image in the synchronization module B, and the backup mark indicates that the image is not synchronized to the uploading module a.
306 and 308, returning a response of successful uploading.
309. And the synchronization module B returns the index information of the picture to the uploading module A.
310. And the uploading module A returns a response of successful receiving to the synchronization module B.
In the embodiment of the invention, the index information aiming at the service data comprises three data structures.
When the service data is a picture, the index information may include a two-layer structure, where the first-layer structure is as shown in fig. 6, the KEY is uni, and the uni is a user account, for example: and the QQ number of the user, the VALUE is album n, and album n is the album identification. The second layer is shown in FIG. 7, KEY is albumn and VALUE is photo.
The standby service device needs to synchronize back to the data structure of the main service device, as shown in fig. 8, KEY is uni + photo + op, where op is an operation, for example: and (4) uploading operation. VALUE is request blob to indicate the picture uploaded by the remote request.
The data structure for marking an unsynchronized record is shown in FIG. 9, where KEY is uni and VALUE is photo.
The above is a description of a disaster recovery processing method in an embodiment of the present invention, and corresponding devices in the embodiment of the present invention are described below with reference to the accompanying drawings.
As shown in fig. 10, a main service device 40 provided in the embodiment of the present invention is applied to a disaster recovery system, where the disaster recovery system further includes a standby service device, a main storage device, and a standby storage device, and the main service device 40 includes:
a receiving unit 401, configured to receive a service request, where the service request is used to instruct the primary service device to upload service data to the primary storage device;
an upload unit 402, configured to upload the service data to the main storage device according to the service request received by the receiving unit 401;
a determining unit 403, configured to determine that the upload failure rate reaches any one level of the multi-level disaster tolerance threshold in the current detection period when the main service device determines that the upload of the service data uploaded by the uploading unit 402 fails;
a sending unit 404, configured to send a remote request to the standby service device according to the disaster tolerance level corresponding to the upload failure rate determined by the determining unit 403, where the remote request is used to instruct the standby service device to upload the service data to the standby storage device;
the receiving unit 401 is further configured to receive index information of the service data synchronized by the standby service device.
In this embodiment of the present invention, a receiving unit 401 receives a service request, where the service request is used to instruct a main service device to upload service data to a main storage device; the uploading unit 402 uploads the service data to the main storage device according to the service request received by the receiving unit 401; when the main service device determines that the service data uploaded by the uploading unit 402 fails to be uploaded, the determining unit 403 determines that the uploading failure rate reaches any level disaster tolerance threshold value of the multi-level disaster tolerance threshold values in the current detection period; a sending unit 404 sends a remote request to the standby service device according to the disaster tolerance level corresponding to the upload failure rate determined by the determining unit 403, where the remote request is used to instruct the standby service device to upload the service data to the standby storage device; the receiving unit 401 further receives index information of the service data synchronized by the standby service device. Compared with the prior art that a large amount of data needs to be backed up in the disaster recovery processing process, according to the scheme provided by the embodiment of the invention, one part of data is stored in either the main storage device 30A or the backup storage device 30B, only one part of data is stored, and the index information of the data is stored in the main storage device and one part of the backup storage device respectively, so that the stored data can be found no matter the index information of the data of the main service device 20A or the index information of the data of the backup service device 20B is inquired, the safety and the stability of the disaster recovery system are ensured, meanwhile, the occupation of storage resources is reduced, and the utilization rate of the storage resources is improved.
Optionally, the sending unit 404 is configured to:
when the disaster tolerance level corresponding to the uploading failure rate is a remote retry level, sending a remote retry request to the standby service equipment, where the remote retry request is used to instruct the standby service equipment to upload the service data; alternatively, the first and second electrodes may be,
and when the disaster tolerance level corresponding to the uploading failure rate is a remote switching level, sending a remote switching request to the standby service equipment, wherein the remote switching request is used for indicating the standby service equipment to take over the uploading of the service request and the request received by the main service equipment after the disaster tolerance switching.
Optionally, when the service data is a picture, the index structure of the index information includes: and requesting to upload the user account of the picture and uploading the identifier of the picture.
The main service device provided by the embodiment of the present invention can be understood by referring to the corresponding descriptions in fig. 1 to fig. 9, and repeated descriptions are not repeated here.
Referring to fig. 11, the standby service device 50 provided in the embodiment of the present invention is applied to a disaster recovery system, where the disaster recovery system further includes a main service device, a main storage device, and a standby storage device, and an embodiment of the standby service device 50 includes:
a receiving unit 501, configured to receive a remote request sent by the primary service device, where the remote request is sent by the primary service device when it is determined that the service data is unsuccessfully uploaded to the primary storage device and it is determined that an upload failure rate reaches any level of the multi-level disaster tolerance thresholds in the current detection period;
an uploading unit 502, configured to upload the service data to the standby storage device according to the remote request received by the receiving unit 501;
a sending unit 503, configured to synchronize, to the master service device, index information of the service data uploaded by the uploading unit 502.
In this embodiment of the present invention, a receiving unit 501 receives a remote request sent by the main service device, where the remote request is sent by the main service device when it is determined that the service data is unsuccessfully uploaded to the main storage device and it is determined that an upload failure rate reaches any level of a multi-level disaster tolerance threshold in a current detection period; the uploading unit 502 uploads the service data to the standby storage device according to the remote request received by the receiving unit 501; the sending unit 503 synchronizes, to the master service device, the index information of the service data uploaded by the uploading unit 502. Compared with the prior art that a large amount of data needs to be backed up in the disaster recovery processing process, according to the scheme provided by the embodiment of the invention, one part of data is stored in either the main storage device 30A or the backup storage device 30B, only one part of data is stored, and the index information of the data is stored in the main storage device and one part of the backup storage device respectively, so that the stored data can be found no matter the index information of the data of the main service device 20A or the index information of the data of the backup service device 20B is inquired, the safety and the stability of the disaster recovery system are ensured, meanwhile, the occupation of storage resources is reduced, and the utilization rate of the storage resources is improved.
Optionally, in another embodiment of the service preparation apparatus 50 provided in the embodiment of the present invention,
the receiving unit 501 is configured to:
receiving a remote retry request sent by the master service device, where the remote retry request is sent by the master service device when the disaster tolerance level corresponding to the upload failure rate is a remote retry level; alternatively, the first and second electrodes may be,
and receiving a remote switching request sent by the main service device, wherein the remote switching request is sent by the main service device when the disaster tolerance level corresponding to the uploading failure rate is a remote switching level.
Optionally, referring to fig. 12, another embodiment of the service standby device 50 according to the embodiment of the present invention further includes:
a setting unit 504, configured to set a backup flag for the service data uploaded by the uploading unit 502, where the backup flag indicates that the service data is not synchronized to the primary service device.
Optionally, referring to fig. 13, another embodiment of the service preparation apparatus 50 according to the embodiment of the present invention further includes: the clear-out unit 505 is configured to clear,
the sending unit 503 is configured to periodically synchronize, to the primary service device, index information of the service data indicated by the backup mark set by the setting unit 504;
the clearing unit 505 is configured to clear the backup mark of the synchronized index information of the sending unit 503.
Optionally, referring to fig. 14, another embodiment of the service standby device 50 according to the embodiment of the present invention further includes: the deletion unit 506 is configured to delete the data in the data block,
the deleting unit 506 is configured to delete the expired data in the spare storage device according to a least recently used algorithm LRU.
Optionally, referring to fig. 15, another embodiment of the service preparation apparatus 50 according to the embodiment of the present invention further includes: an acquisition unit 507 and a determination unit 508,
the obtaining unit 507 is configured to obtain a first index record and a second index record, where the first index record records index information recorded in the main service device, and the second index record records index information recorded in the standby service device;
the determining unit 508, configured to determine, according to the first index record and the second index record obtained by the obtaining unit 507, index information that is lacking in the main service device;
the sending unit 503 is configured to synchronize, to the master service device, the index information that is determined by the determining unit 508 and is absent from the master service device.
The service preparation device 50 provided in the embodiment of the present invention can be understood by referring to the corresponding descriptions in fig. 1 to fig. 9, and repeated descriptions are not repeated here.
The main service device and the standby service device in the embodiment of the invention are service devices, and can be devices such as a physical host, a server and the like. The roles of the main service device and the standby service device in the disaster recovery system are different.
Fig. 16 is a schematic structural diagram of a main service device 40 according to an embodiment of the present invention. The main service device 40 is applied to a disaster recovery system, the disaster recovery system further includes a standby service device, a main storage device, and a standby storage device, the main service device 40 includes a processor 410, a memory 450, and a transceiver 430, the memory 450 may include a read-only memory and a random access memory, and provides an operation instruction and data to the processor 410. A portion of the memory 450 may also include non-volatile random access memory (NVRAM).
In some embodiments, memory 450 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
in embodiments of the present invention, by calling the operation instructions stored in memory 450 (which may be stored in an operating system),
receiving a service request, wherein the service request is used for indicating the main service equipment to upload service data to the main storage equipment;
uploading the service data to the main storage device according to the service request;
when the main service device determines that the uploading of the service data fails and determines that the uploading failure rate reaches any one level disaster tolerance threshold value in the multi-level disaster tolerance threshold values in the current detection period, sending a remote request to the standby service device according to the disaster tolerance level corresponding to the uploading failure rate, wherein the remote request is used for indicating the standby service device to upload the service data to the standby storage device;
and receiving the index information of the service data synchronized by the standby service equipment.
Compared with the prior art, the main service equipment provided by the embodiment of the invention ensures the safety and stability of the disaster recovery system, reduces the occupation of storage resources and improves the utilization rate of the storage resources.
Processor 410 controls the operation of main service device 40, and processor 410 may also be referred to as a CPU (Central Processing Unit). Memory 450 may include both read-only memory and random-access memory, and provides instructions and data to processor 410. A portion of the memory 450 may also include non-volatile random access memory (NVRAM). The various components of main service device 40 in a particular application are coupled together by a bus system 420, where bus system 420 may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. For clarity of illustration, however, the various buses are designated in the figure as bus system 420.
The method disclosed in the above embodiments of the present invention may be applied to the processor 410, or implemented by the processor 410. The processor 410 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 410. The processor 410 may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 450, and the processor 410 reads the information in the memory 450, and performs the steps of the above method in combination with the hardware thereof.
Optionally, the transceiver 430 is configured to:
when the disaster tolerance level corresponding to the uploading failure rate is a remote retry level, sending a remote retry request to the standby service equipment, where the remote retry request is used to instruct the standby service equipment to upload the service data; alternatively, the first and second electrodes may be,
and when the disaster tolerance level corresponding to the uploading failure rate is a remote switching level, sending a remote switching request to the standby service equipment, wherein the remote switching request is used for indicating the standby service equipment to take over the uploading of the service request and the request received by the main service equipment after the disaster tolerance switching.
Optionally, when the service data is a picture, the index structure of the index information includes: and requesting to upload the user account of the picture and uploading the identifier of the picture.
The above description of the main service device 40 can be understood with reference to the descriptions of fig. 1 to 9, and the description is not repeated here.
Fig. 17 is a schematic structural diagram of a service preparation device 50 according to an embodiment of the present invention. The standby service device 50 is applied to a disaster recovery system, the disaster recovery system further includes a main service device, a main storage device, and a standby storage device, the standby service device 50 includes a processor 510, a memory 550, and a transceiver 530, the memory 550 may include a read-only memory and a random access memory, and provides an operation instruction and data to the processor 510. A portion of the memory 550 may also include non-volatile random access memory (NVRAM).
In some embodiments, memory 550 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
in an embodiment of the present invention, by calling the operation instructions stored in the memory 550 (which may be stored in an operating system),
receiving a remote request sent by the main service device, wherein the remote request is sent by the main service device when determining that the uploading of the service data to the main storage device fails and determining that the uploading failure rate reaches any level disaster tolerance threshold value in a multi-level disaster tolerance threshold value in the current detection period;
uploading the service data to the standby storage equipment according to the remote request;
and synchronizing the index information of the service data to the main service equipment.
Compared with the prior art, the standby service equipment provided by the embodiment of the invention ensures the safety and stability of the disaster recovery system, reduces the occupation of storage resources and improves the utilization rate of the storage resources.
Processor 510 controls the operation of standby service 50, and processor 510 may also be referred to as a Central Processing Unit (CPU). Memory 550 may include both read-only memory and random-access memory, and provides instructions and data to processor 510. A portion of the memory 550 may also include non-volatile random access memory (NVRAM). The various components of service device 50 are coupled together by a bus system 520 in the particular application, where bus system 520 may include a power bus, a control bus, a status signal bus, etc., in addition to a data bus. For clarity of illustration, however, the various buses are designated in the figure as the bus system 520.
The method disclosed in the above embodiments of the present invention may be applied to the processor 510, or implemented by the processor 510. Processor 510 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 510. The processor 510 described above may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 550, and the processor 510 reads the information in the memory 550 and performs the steps of the above method in combination with the hardware thereof.
Optionally, the transceiver 530 is configured to:
receiving a remote retry request sent by the master service device, where the remote retry request is sent by the master service device when the disaster tolerance level corresponding to the upload failure rate is a remote retry level; alternatively, the first and second electrodes may be,
and receiving a remote switching request sent by the main service device, wherein the remote switching request is sent by the main service device when the disaster tolerance level corresponding to the uploading failure rate is a remote switching level.
Optionally, the processor 510 is configured to set a backup flag for the service data, where the backup flag indicates that the service data is not synchronized to the primary service device.
Optionally, the transceiver 530 is configured to periodically synchronize, to the primary service device, index information of the service data indicated by the backup mark;
processor 510 is configured to clear the backup mark of the synchronized index information.
Optionally, processor 510 is configured to delete data that has expired in the spare storage device according to a least recently used algorithm LRU.
Optionally, processor 510 is configured to:
acquiring a first index record and a second index record, wherein the first index record records the index information recorded in the main service device, and the second index record records the index information recorded in the standby service device;
determining the index information lacking in the main service device according to the first index record and the second index record;
the transceiver 530 is used to synchronize the index information missing in the master service device to the master service device.
The above description of the service preparation apparatus 50 can be understood with reference to the descriptions of fig. 1 to 9, and will not be repeated herein.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that is integrated with one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
The method, the device and the system for disaster recovery processing provided by the embodiment of the present invention are described in detail above, a specific example is applied in the present disclosure to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (15)

1. A method for disaster recovery processing is applied to a disaster recovery system, wherein the disaster recovery system comprises a main service device, a standby service device, a main storage device and a standby storage device, and the method comprises the following steps:
the main service equipment receives a service request, wherein the service request is used for indicating the main service equipment to upload service data to the main storage equipment;
the main service equipment uploads the service data to the main storage equipment according to the service request;
when the main service device uploads the service data to the main storage device normally, a disaster recovery strategy is not triggered, and after the service data is uploaded normally, the main service device only needs to synchronize index information of the service data to the standby storage device;
when the main service device determines that the uploading of the service data fails and determines that the uploading failure rate reaches any level disaster tolerance threshold value in a multi-level disaster tolerance threshold value in a current detection period, if the disaster tolerance level corresponding to the uploading failure rate is level 1 or level 2, sending a remote request to the standby service device, wherein the remote request is used for indicating the standby service device to upload the service data to the standby storage device, and the remote request refers to a request crossing a machine room; if the disaster tolerance level corresponding to the uploading failure rate is 0 level, adopting a local retry strategy;
when the disaster tolerance level corresponding to the uploading failure rate is level 1, sending a remote request to the standby service equipment as a remote retry request, wherein the remote retry request is used for indicating the standby service equipment to upload the service data and asynchronously sending index information of the service data to the main service equipment for storage;
when the disaster tolerance level corresponding to the uploading failure rate is level 2, a remote request sent to the standby service equipment is a remote switching request, the remote switching request is used for indicating the standby service equipment to upload the service data, the index information of the service data is asynchronously sent to the main service equipment to be stored, and replaces the work of the main service equipment, and the service request sent to the main service equipment is processed and then sent;
after the standby service equipment receives the remote request and uploads the service data to the standby storage equipment, the service data is not synchronized to the main service equipment;
and the main service equipment receives the index information of the service data synchronized by the standby service equipment.
2. The method of claim 1, wherein when the service data is a picture, the index structure of the index information comprises: and requesting to upload the user account of the picture and uploading the identifier of the picture.
3. A method for disaster recovery processing is applied to a disaster recovery system, wherein the disaster recovery system comprises a main service device, a standby service device, a main storage device and a standby storage device, and the method comprises the following steps:
the standby service equipment receives a remote request sent by the main service equipment, wherein the remote request is sent by the main service equipment according to a disaster tolerance strategy of a disaster tolerance level corresponding to an uploading failure rate if the disaster tolerance level corresponding to the uploading failure rate is 1 level or 2 levels when the main service equipment determines that the uploading of the service data to the main storage equipment fails and determines that the uploading failure rate reaches any one level of disaster tolerance threshold in a multi-level disaster tolerance threshold in a current detection period; the remote request refers to a request crossing a machine room; if the disaster tolerance level corresponding to the uploading failure rate is 0 level, adopting a local retry strategy; the main service device uploads the service data to the main storage device normally, so that a disaster recovery strategy cannot be triggered, and after the service data are uploaded normally, the main service device only needs to synchronize index information of the service data to the standby storage device;
when the disaster tolerance level corresponding to the uploading failure rate is level 1, sending a remote request to the standby service equipment as a remote retry request, wherein the remote retry request is used for indicating the standby service equipment to upload the service data and asynchronously sending index information of the service data to the main service equipment for storage;
when the disaster tolerance level corresponding to the uploading failure rate is level 2, a remote request sent to the standby service equipment is a remote switching request, the remote switching request is used for indicating the standby service equipment to upload the service data, the index information of the service data is asynchronously sent to the main service equipment to be stored, and replaces the work of the main service equipment, and the service request sent to the main service equipment is processed and then sent;
the standby service equipment uploads the service data to the standby storage equipment according to the remote request;
and after the standby service equipment uploads the service data to the standby storage equipment, the service data is not synchronized to the main service equipment, and the index information of the service data is synchronized to the main service equipment.
4. The method of claim 3, wherein when the standby service device uploads the service data to the standby storage device according to the remote request, the method further comprises:
and the standby service equipment sets a backup mark for the service data, wherein the backup mark indicates that the service data is not synchronized to the main service equipment.
5. The method of claim 4, further comprising:
the backup service equipment periodically synchronizes index information of the service data indicated by the backup mark to the main service equipment;
and the standby service equipment clears the backup marks of the synchronized index information.
6. The method of claim 3, further comprising:
and the standby service equipment deletes the expired data in the standby storage equipment according to the least recently used algorithm LRU.
7. The method of claim 3, further comprising:
the standby service equipment acquires a first index record and a second index record, wherein the first index record records the index information recorded in the main service equipment, and the second index record records the index information recorded in the standby service equipment;
the standby service equipment determines the index information lacked in the main service equipment according to the first index record and the second index record;
and the standby service equipment synchronizes the index information lacking in the main service equipment to the main service equipment.
8. The main service device is applied to a disaster recovery system, the disaster recovery system further comprises a standby service device, a main storage device and a standby storage device, and the main service device comprises:
a receiving unit, configured to receive a service request, where the service request is used to instruct the primary service device to upload service data to the primary storage device;
an uploading unit, configured to upload the service data to the main storage device according to the service request received by the receiving unit;
a determining unit, configured to not trigger a disaster recovery policy when the primary service device uploads the service data to the primary storage device normally, and after the service data is uploaded normally, the primary service device only needs to synchronize index information of the service data to the secondary storage device; when the main service device determines that the uploading of the service data uploaded by the uploading unit fails, and determines that the uploading failure rate reaches any level disaster tolerance threshold value in the multi-level disaster tolerance threshold values in the current detection period;
a sending unit, configured to send a remote request to the standby service device if the disaster tolerance level corresponding to the upload failure rate determined by the determining unit is level 1 or level 2, where the remote request is used to instruct the standby service device to upload the service data to the standby storage device, and the remote request refers to a request across machine rooms; if the disaster tolerance level corresponding to the uploading failure rate is 0 level, adopting a local retry strategy; after the standby service equipment receives the remote request and uploads the service data to the standby storage equipment, the service data is not synchronized to the main service equipment;
when the disaster tolerance level corresponding to the uploading failure rate is level 1, sending a remote request to the standby service equipment as a remote retry request, wherein the remote retry request is used for indicating the standby service equipment to upload the service data and asynchronously sending index information of the service data to the main service equipment for storage;
when the disaster tolerance level corresponding to the uploading failure rate is level 2, a remote request sent to the standby service equipment is a remote switching request, the remote switching request is used for indicating the standby service equipment to upload the service data, the index information of the service data is asynchronously sent to the main service equipment to be stored, and replaces the work of the main service equipment, and the service request sent to the main service equipment is processed and then sent;
the receiving unit is further configured to receive index information of the service data synchronized by the standby service device.
9. The primary service device of claim 8, wherein when the service data is a picture, the index structure of the index information comprises: and requesting to upload the user account of the picture and uploading the identifier of the picture.
10. The standby service equipment is applied to a disaster recovery system, the disaster recovery system further comprises a main service equipment, a main storage equipment and a standby storage equipment, and the standby service equipment comprises:
a receiving unit, configured to receive a remote request sent by the main service device, where the remote request is sent by the main service device according to a disaster tolerance policy of a disaster tolerance level corresponding to an upload failure rate if the disaster tolerance level corresponding to the upload failure rate is level 1 or level 2 when it is determined that the upload of service data to the main storage device fails and it is determined that an upload failure rate reaches any one level of a multi-level disaster tolerance threshold in a current detection period; the remote request refers to a request crossing a machine room; if the disaster tolerance level corresponding to the uploading failure rate is 0 level, adopting a local retry strategy; the main service device uploads the service data to the main storage device normally, so that a disaster recovery strategy cannot be triggered, and after the service data are uploaded normally, the main service device only needs to synchronize index information of the service data to the standby storage device;
when the disaster tolerance level corresponding to the uploading failure rate is level 1, sending a remote request to the standby service equipment as a remote retry request, wherein the remote retry request is used for indicating the standby service equipment to upload the service data and asynchronously sending index information of the service data to the main service equipment for storage;
when the disaster tolerance level corresponding to the uploading failure rate is level 2, a remote request sent to the standby service equipment is a remote switching request, the remote switching request is used for indicating the standby service equipment to upload the service data, the index information of the service data is asynchronously sent to the main service equipment to be stored, and replaces the work of the main service equipment, and the service request sent to the main service equipment is processed and then sent;
the uploading unit is used for uploading the service data to the standby storage equipment according to the remote request received by the receiving unit;
and the sending unit is used for synchronizing the index information of the service data uploaded by the uploading unit to the main service equipment without synchronizing the service data to the main service equipment after the service data is uploaded to the standby storage equipment.
11. The standby service apparatus according to claim 10, further comprising:
and the setting unit is used for setting a backup mark for the service data uploaded by the uploading unit, wherein the backup mark indicates that the service data is not synchronized to the main service equipment.
12. The standby service apparatus according to claim 11, wherein the standby service apparatus further includes a clearing unit,
the sending unit is configured to synchronize, to the primary service device periodically, index information of the service data indicated by the backup mark set by the setting unit;
and the clearing unit is used for clearing the backup marks of the synchronized index information of the sending unit.
13. The standby service apparatus according to claim 10, further comprising a deletion unit,
and the deleting unit is used for deleting the expired data in the spare storage equipment according to the least recently used algorithm LRU.
14. The standby service apparatus according to claim 10, further comprising: an acquisition unit and a determination unit for determining the position of the object,
the acquiring unit is configured to acquire a first index record and a second index record, where the first index record records index information recorded in the main service device, and the second index record records index information recorded in the standby service device;
the determining unit is configured to determine, according to the first index record and the second index record acquired by the acquiring unit, index information that is missing in the main service device;
the sending unit is configured to synchronize, to the master service device, the index information that is determined by the determining unit and is absent from the master service device.
15. A disaster recovery system, comprising: the system comprises a main service device, a standby service device, a main storage device and a standby storage device;
the main service device is the main service device of any one of claims 8-9;
the standby service apparatus as claimed in any one of claims 10 to 14.
CN201710188917.2A 2017-03-27 2017-03-27 Disaster recovery processing method, equipment and system Active CN108667635B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710188917.2A CN108667635B (en) 2017-03-27 2017-03-27 Disaster recovery processing method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710188917.2A CN108667635B (en) 2017-03-27 2017-03-27 Disaster recovery processing method, equipment and system

Publications (2)

Publication Number Publication Date
CN108667635A CN108667635A (en) 2018-10-16
CN108667635B true CN108667635B (en) 2021-01-12

Family

ID=63786229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710188917.2A Active CN108667635B (en) 2017-03-27 2017-03-27 Disaster recovery processing method, equipment and system

Country Status (1)

Country Link
CN (1) CN108667635B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597673B (en) * 2019-09-25 2021-04-30 腾讯科技(深圳)有限公司 Disaster recovery method, device and equipment of storage system and computer readable storage medium
CN114422594A (en) * 2020-10-13 2022-04-29 顺丰科技有限公司 Service processing method, device, computer equipment and storage medium
CN114531394B (en) * 2020-11-20 2023-11-17 华为技术有限公司 Data synchronization method and device
CN112506702B (en) * 2020-12-03 2024-02-23 平安科技(深圳)有限公司 Disaster recovery method, device, equipment and storage medium for data center
CN113489607B (en) * 2021-06-29 2023-04-07 杭州海康威视数字技术股份有限公司 Service processing system, acquisition equipment and convergence equipment
CN114726779A (en) * 2022-03-23 2022-07-08 新华三技术有限公司 Main/standby switching method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812675A (en) * 2012-11-08 2014-05-21 中兴通讯股份有限公司 Method and system for realizing allopatric disaster recovery switching of service delivery platform
CN105391629A (en) * 2014-09-05 2016-03-09 杭州迪普科技有限公司 Resource backup method and device
CN105677507A (en) * 2014-11-21 2016-06-15 中国移动通信集团公司 Cloud backup system and method for enterprise data

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741536B (en) * 2008-11-26 2012-09-05 中兴通讯股份有限公司 Data level disaster-tolerant method and system and production center node
US8751715B1 (en) * 2010-03-31 2014-06-10 Enc Corporation System and method for controlling device access
CN102714615B (en) * 2010-11-29 2015-05-27 华为技术有限公司 Node fault processing method, system and related device
CN102231677B (en) * 2011-06-23 2017-09-29 中兴通讯股份有限公司 A kind of switching method and its device based on double center disaster recoveries in IPTV system
CN105338078B (en) * 2015-10-26 2019-01-01 北京百度网讯科技有限公司 Date storage method and device for storage system
CN106302001B (en) * 2016-07-30 2020-02-14 华为技术有限公司 Service fault detection method, related device and system in data communication network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812675A (en) * 2012-11-08 2014-05-21 中兴通讯股份有限公司 Method and system for realizing allopatric disaster recovery switching of service delivery platform
CN105391629A (en) * 2014-09-05 2016-03-09 杭州迪普科技有限公司 Resource backup method and device
CN105677507A (en) * 2014-11-21 2016-06-15 中国移动通信集团公司 Cloud backup system and method for enterprise data

Also Published As

Publication number Publication date
CN108667635A (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN108667635B (en) Disaster recovery processing method, equipment and system
US7694177B2 (en) Method and system for resynchronizing data between a primary and mirror data storage system
US8930309B2 (en) Interval-controlled replication
EP3319258B1 (en) Service take-over method and storage device, and service take-over apparatus
US8751444B2 (en) Synchronization of database changes among multiple devices
US8775859B2 (en) Method, apparatus and system for data disaster tolerance
WO1991014230A1 (en) Message communication processing system
WO2023029519A1 (en) Data synchronization method and apparatus, computer device, and storage medium
JP2009159626A (en) Proxy server, communication system, communication method, and program
WO2018166415A1 (en) Cloud storage system, media data storage method and system
JP2005011354A (en) System and method for managing cache object using notification bond
WO2019024910A1 (en) Storage resource recovery method, apparatus and system
CN111064813B (en) Method and device for synchronizing processing messages during block chain consensus processing
WO2021147793A1 (en) Data processing method, apparatus and system, electronic device and computer storage medium
EP3896571B1 (en) Data backup method, apparatus and system
CN112492030B (en) Data storage method, device, computer equipment and storage medium
CN102325171B (en) Data storage method in monitoring system and system
CN105790985A (en) Data switching method, first device, second device and device
CN101621526A (en) iSCSI method and apparatus for preventing useless connection from occupying system resources
US10896103B2 (en) Information processing system
CN109962797B (en) Storage system and method for pushing business view
CN101076012B (en) Date telecommunication system and method and interface controller of Internet microcomputer system
US11509652B2 (en) Information processing apparatus and non-transitory computer readable medium storing information processing program
CN114390007B (en) Data processing method, device, storage medium and processor
JP5026480B2 (en) Information processing apparatus, method, system, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant