CN116089175A - Disaster recovery method, device, equipment and storage medium for data center - Google Patents

Disaster recovery method, device, equipment and storage medium for data center Download PDF

Info

Publication number
CN116089175A
CN116089175A CN202310369346.8A CN202310369346A CN116089175A CN 116089175 A CN116089175 A CN 116089175A CN 202310369346 A CN202310369346 A CN 202310369346A CN 116089175 A CN116089175 A CN 116089175A
Authority
CN
China
Prior art keywords
target
disaster recovery
data center
data
matching degree
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.)
Granted
Application number
CN202310369346.8A
Other languages
Chinese (zh)
Other versions
CN116089175B (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.)
Aerospace Wanyuan Cloud Data Hebei Co ltd
Original Assignee
Aerospace Wanyuan Cloud Data Hebei 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 Aerospace Wanyuan Cloud Data Hebei Co ltd filed Critical Aerospace Wanyuan Cloud Data Hebei Co ltd
Priority to CN202310369346.8A priority Critical patent/CN116089175B/en
Publication of CN116089175A publication Critical patent/CN116089175A/en
Application granted granted Critical
Publication of CN116089175B publication Critical patent/CN116089175B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A10/00TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE at coastal zones; at river basins
    • Y02A10/40Controlling or monitoring, e.g. of flood or hurricane; Forecasting, e.g. risk assessment or mapping

Abstract

The application relates to a disaster recovery method, a device, equipment and a storage medium of a data center, which are applied to the technical field of information security, and the method comprises the following steps: acquiring data content to be transmitted of data to be transmitted and data content transmitted of data to be transmitted; determining target transmission data content of target transmission data based on the data content to be transmitted and the transmitted data content; acquiring the data type of the target transmission data; selecting a target disaster recovery data center based on the data type; and acquiring a current transmission environment, and transmitting the target transmission data to the target disaster recovery data center based on the transmission environment. The disaster recovery method has the effect of improving the timeliness of disaster recovery.

Description

Disaster recovery method, device, equipment and storage medium for data center
Technical Field
The present disclosure relates to the field of information security technologies, and in particular, to a disaster recovery method, device, equipment, and storage medium for a data center.
Background
The data disaster tolerance refers to a mechanism for establishing two or more sets of data systems with similar functions in different places, copying necessary files of a database to a backup data system, and switching work to the disaster tolerance system in different places to keep providing normal service capability when natural disasters such as earthquake, fire disaster, flood and the like occur or serious faults such as power failure occur in a local data system.
As time goes on, the number of data required to carry out disaster recovery is also increasing, and at present, when disaster recovery deployment is carried out, a mode of sending the data required to carry out disaster recovery to a pre-deployed backup strategy is mostly adopted, and the pre-deployed mode has poor flexibility and affects the timeliness of disaster recovery.
Disclosure of Invention
In order to improve the timeliness of disaster recovery, the application provides a method, a device, equipment and a storage medium for disaster recovery of a data center.
In a first aspect, the present application provides a disaster recovery method for a data center, which adopts the following technical scheme:
a disaster recovery method for a data center,
comprising the following steps:
responding to a disaster tolerance instruction sent by a data center to be transmitted, and acquiring target transmission data information of target transmission data;
selecting a target disaster recovery data center based on the target transmission data information;
and transmitting the target transmission data to the target disaster recovery data center based on the current transmission environment.
By adopting the technical scheme, when a disaster recovery instruction is obtained, the target disaster recovery data center is selected according to the actual target transmission data, so that each selected target disaster recovery data center can be changed according to the current condition of the target transmission data information, the flexibility is higher, and the disaster recovery timeliness is improved.
Optionally, the selecting the target disaster recovery data center based on the target transmission data information includes:
acquiring a storage block of a disaster recovery data center and storage block information of the storage block;
calculating the matching degree of the storage block information and the target transmission data information;
sorting the storage blocks based on the numerical value of the matching degree to generate a first matching degree sequence;
and selecting a disaster recovery data center based on the first matching degree sequence, and taking the selected disaster recovery data center as a target disaster recovery data center.
Optionally, the storage block information includes a storage security level, a free capacity value and a storage type; the target transmission data information comprises a data security level, a data size and a data type; the calculating the matching degree of the storage block information and the target transmission data information comprises:
generating a first degree of match based on the stored security level and the data security level;
generating a second degree of matching based on the free capacity value and the data size;
generating a third degree of matching based on the storage type and the data type;
and calculating the matching degree of the storage block information and the target transmission data information based on the first matching degree, the second matching degree, the third matching degree and a preset calculation rule.
Optionally, the obtaining the third matching degree based on the storage type and the data type includes:
acquiring a storage type name of the storage type and a target type name of the data type;
judging whether the storage type name is the same as the target type name;
if the storage type name is the same as the target type name, acquiring a storage type level and a target type level;
when the storage type level is the same as the target type level, setting the third matching degree to be the highest value;
when the storage type level is different from the target type level, acquiring a minimum level containing the storage type level and the target type level, and taking a matching value corresponding to the minimum level as a third matching degree;
and if the storage type name is different from the target type name, setting the third matching degree as a lowest value.
Optionally, the selecting the disaster recovery data center based on the first matching degree sequence includes:
judging whether the matching degrees are smaller than a preset matching threshold value or not;
if the matching degrees are smaller than the preset matching threshold, selecting storage blocks with corresponding idle capacity values larger than the data size according to the preset selection quantity;
taking a disaster recovery data center corresponding to a storage block with the idle capacity value larger than the data size as a target disaster recovery data center;
if the matching degrees are not smaller than the preset matching threshold, arranging the storage blocks with the matching degrees not smaller than the preset matching threshold according to the matching degree, and generating a second matching degree sequence;
and selecting a disaster recovery data center based on the second matching degree sequence and a preset selection rule.
Optionally, the selecting the disaster recovery data center based on the second matching degree sequence and a preset selection rule includes:
if the storage blocks in the second matching degree sequence belong to the same disaster recovery data center, the disaster recovery data center is used as a target disaster recovery data center;
if the storage blocks in the second matching degree sequence do not belong to the same disaster recovery data center, counting the number of the storage blocks with the highest matching degree in the second matching degree sequence and the first storage blocks belonging to the same disaster recovery data center;
generating a first duty ratio based on the counted first storage block number and the storage block number in the second matching degree sequence;
if the first duty ratio is not smaller than a preset duty ratio threshold, taking the disaster recovery data center of the storage block with the highest matching degree as a target disaster recovery data center;
if the first duty ratio is smaller than a preset duty ratio threshold, respectively counting the number of second storage blocks in the second matching degree sequence, which are included in each disaster recovery data center to which other storage blocks in the second matching degree sequence belong;
and taking the disaster recovery data center with the most second storage blocks and the disaster recovery data center with the highest matching degree as target disaster recovery data centers.
Optionally, the transmitting the target transmission data to the target disaster recovery data center based on the transmission environment includes:
calculating a target data transmission environment based on the data size and the expected demand transmission time length;
judging whether the transmission environment accords with the target data transmission environment or not;
if the transmission environment accords with the target data transmission environment, transmitting the target transmission data to the target disaster recovery data center;
if the transmission environment does not accord with the target data transmission environment, storing the target transmission data into a preset local backup space;
and when the transmission environment accords with the target transmission environment, transmitting target transmission data in the preset local backup space to the target disaster recovery data center.
In a second aspect, the present application provides a disaster recovery device for a data center, which adopts the following technical scheme:
a data center disaster recovery device comprising:
the target data acquisition module is used for responding to a disaster tolerance instruction sent by the data center to be transmitted and acquiring target transmission data information of target transmission data;
the data center selection module is used for selecting a target disaster recovery data center based on the target transmission data information;
and the target data transmission module is used for transmitting the target transmission data to the target disaster recovery data center based on the current transmission environment.
By adopting the technical scheme, when a disaster recovery instruction is obtained, the target disaster recovery data center is selected according to the actual target transmission data, so that each selected target disaster recovery data center can be changed according to the current condition of the target transmission data information, the flexibility is higher, and the disaster recovery timeliness is improved.
In a third aspect, the present application provides an electronic device, which adopts the following technical scheme:
an electronic device comprising a processor coupled with a memory;
the processor is configured to execute the computer program stored in the memory, so that the electronic device executes the computer program of the disaster recovery method of the data center according to any one of the first aspects.
In a fourth aspect, the present application provides a computer readable storage medium, which adopts the following technical scheme:
a computer readable storage medium storing a computer program capable of being loaded by a processor and executing the data center disaster recovery method according to any one of the first aspects.
Drawings
Fig. 1 is a flow chart of a disaster recovery method for a data center according to an embodiment of the present application.
Fig. 2 is a block diagram of a disaster recovery device for a data center according to an embodiment of the present application.
Fig. 3 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a disaster recovery method of a data center, which can be executed by electronic equipment, wherein the electronic equipment can be a server or terminal equipment, the server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server for providing cloud computing service. The terminal device may be, but is not limited to, a smart phone, a tablet computer, a desktop computer, etc.
Fig. 1 is a flow chart of a disaster recovery method for a data center according to an embodiment of the present application.
As shown in fig. 1, the main flow of the method is described as follows (steps S101 to S103):
step S101, target transmission data information of target transmission data is obtained in response to a disaster recovery instruction sent by a data center to be transmitted.
In this embodiment, the target transmission data information includes a data security level, a data size, and a data type, where the security level is a level of data to be protected, and is associated with a data content of the target transmission data, and is determined according to a data source of the target transmission data, or is manually set by a staff, and the data size is a content size occupied by the data, such as bit, KB, GB and TB, and the data type is a specific type of data, such as video may be classified into a smiling video, a teaching video, a dance video, and the like, and when the data type is displayed, whether the video is a smiling video, a teaching video, a dance video, or the like needs to be displayed, where the data type is a distance specification, and the specific data type needs to be set according to the current target transmission data, which is not particularly limited herein.
Step S102, a target disaster recovery data center is selected based on the target transmission data information.
Aiming at step S102, a storage block of a disaster recovery data center and storage block information of the storage block are obtained; calculating the matching degree of the storage block information and the target transmission data information; sorting the storage blocks based on the magnitude of the value of the matching degree to generate a first matching degree sequence; and selecting a disaster recovery data center based on the first matching degree sequence, and taking the selected disaster recovery data center as a target disaster recovery data center.
When the target disaster recovery data center is selected, a disaster recovery center is not selected randomly and is used as the target disaster recovery data center, and the selection is required according to storage block information and target transmission data information in the disaster recovery data center, wherein the storage block information comprises a storage security level, an idle capacity value and a storage type; generating a first degree of matching based on the storage security level and the data security level; generating a second degree of matching based on the free capacity value and the data size; generating a third matching degree based on the storage type and the data type; and calculating the matching degree of the storage block information and the target transmission data information based on the first matching degree, the second matching degree, the third matching degree and a preset calculation rule.
In this embodiment, the matching degree is calculated from three aspects respectively, the first matching degree is calculated according to the data security level in the target transmission data information and the storage security level in the storage block information, the second matching degree is calculated according to the data size in the target transmission data information and the free capacity value in the storage block information, and the third matching degree is calculated according to the data type in the target transmission data information and the storage type in the storage block information.
In the first aspect, judging whether the data security level is the same as the storage security level, and if the data security level is the same as the storage security level, the first matching degree is the highest value; if the data security level is different from the storage security level, the absolute value of the difference between the storage security level and the data security level is calculated no matter whether the storage security level is higher than the data security level or lower than the data security level, each absolute value of the difference corresponds to one matching degree, and the corresponding matching degree is selected as the first matching degree according to the calculation result.
In the second aspect, judging whether the idle capacity value is not smaller than the data size, and if the idle capacity value is not smaller than the data size, the second matching degree is the highest value; and if the idle capacity value is smaller than the data size, the second matching degree is the lowest value.
In a third aspect, a storage type name of a storage type and a target type name of a data type are acquired; judging whether the storage type name is the same as the target type name; if the storage type name is the same as the target type name, acquiring a storage type level and a target type level; when the storage type level is the same as the target type level, setting the third matching degree to be the highest value; when the storage type level is different from the target type level, acquiring a minimum level containing the storage type level and the target type level, and taking a matching value corresponding to the minimum level as a third matching degree; and if the storage type name is not the same as the target type name, setting the third matching degree to be the lowest value.
In this embodiment, when calculating the matching degree of the storage type and the data type, it is first determined whether the storage type name corresponding to the storage type is consistent with the target type name corresponding to the data type, and when the storage type name is inconsistent with the target type name, it is indicated that no link exists between the storage type name and the target type name, and data disaster recovery cannot be performed, so that the third matching degree is set to the minimum value. When the storage type name is consistent with the target type name, further calculation of the specific matching degree of the storage type and the data type is needed, the storage type name and the target type name are in a level form, each level comprises at least one small level smaller than the current level, each level and each small level are corresponding to one matching degree, and when the storage type level and the target type level are the same, the matching degree is the highest value. When the storage type level and the target type level are different, a minimum level which can simultaneously contain the storage type level and the target type level needs to be searched forward, and a matching value corresponding to the minimum level is used as the matching degree of the storage type and the data type.
For example, when the storage type name and the target type name are the same, the storage type name is a 00A type, wherein the storage type name is a and B, the a contains A1 and A2, the storage type name is further divided into A1, a11, a111, a12, a121, a122, a13, a131, a132 and a133, wherein the matching value of a and B is twenty percent, the matching value of A1 and A2 is fifty percent, the matching value of a11, a12 and a13 is eighty percent, the matching value of a111, a121, a122, a131, a132 and a133 is hundred percent, when the storage type level and the target type level are both a111, the matching value of the storage type level and the target type is hundred percent, and when the storage type level is a121 and the target type a131, the minimum same level is A1 needs to be searched for, and the matching value corresponding to A1 is fifty percent. It should be noted that, the specific level division manner needs to be set by division according to the above-mentioned actual type setting manner, and the matching value needs to be set according to the specific level division number, which is not limited herein.
And respectively obtaining a first matching value, a second matching value and a third matching value according to the first matching degree and the first matching ratio, the second matching degree and the second matching ratio, and the third matching degree and the third matching ratio, adding the first matching value, the second matching value and the third matching value to obtain the matching degree of the storage block information and the target transmission data information, and sequencing the storage blocks according to the numerical value of the matching degree to generate a first matching degree sequence.
In this embodiment, when the disaster recovery data center is selected based on the first matching degree sequence, whether the matching degrees are smaller than a preset matching threshold value is judged; if the matching degrees are smaller than the preset matching threshold, selecting storage blocks with corresponding idle capacity values larger than the data size according to the preset selection number; taking a disaster recovery data center corresponding to a storage block with an idle capacity value larger than the data size as a target disaster recovery data center; if the matching degrees are not smaller than the preset matching threshold, arranging the storage blocks with the matching degrees not smaller than the preset matching threshold according to the matching degree, and generating a second matching degree sequence; and selecting the disaster recovery data center based on the second matching degree sequence and a preset selection rule. The preset matching degree threshold needs to be set according to actual requirements, and the preset matching degree threshold transmitted each time may be the same or different, and is not limited in detail herein.
When the matching degree of all the storage blocks in the first matching degree sequence is smaller than a preset matching threshold value, the storage capacity of the data is used as a first factor, the disaster recovery data center corresponding to the storage block capable of storing the target transmission data is selected as a target disaster recovery data center, firstly, after the disaster recovery data centers corresponding to the storage blocks with the idle capacity value larger than the data size are selected, the disaster recovery data centers corresponding to at least one storage block in the sequence are sequentially selected from large to small and are still arranged according to the descending order of the matching degree, the specific selection quantity is required to be set according to actual requirements, and the specific selection quantity is not limited.
When the disaster recovery data center is selected based on the second matching degree sequence and a preset selection rule, if the storage blocks in the second matching degree sequence belong to the same disaster recovery data center, the disaster recovery data center is used as a target disaster recovery data center; if the storage blocks in the second matching degree sequence do not belong to the same disaster recovery data center, counting the number of the storage blocks with the highest matching degree in the second matching degree sequence and the first storage blocks belonging to the same disaster recovery data center; generating a first duty ratio based on the counted first storage block number and the storage block number in the second matching degree sequence; if the first duty ratio is not smaller than the preset duty ratio threshold, taking the disaster recovery data center of the storage block with the highest matching degree as a target disaster recovery data center; if the first duty ratio is smaller than a preset duty ratio threshold, respectively counting the number of second storage blocks positioned in the second matching degree sequence, which are included in each disaster recovery data center to which other storage blocks in the second matching degree sequence belong; and taking the disaster recovery data center with the most second storage blocks as the target disaster recovery data center, wherein the disaster recovery data center with the most second storage blocks belongs to the storage blocks with the highest matching degree.
In this embodiment, the storage blocks in the second matching degree sequence are all storage blocks with matching degrees higher than a preset matching degree threshold, so as to improve the convenience of the transmission of the target transmission data, reduce the processing pressure of the computer, ensure that the target transmission data can be successfully subjected to disaster recovery backup, and reduce the number of the target disaster recovery data centers as much as possible when the disaster recovery data centers are selected, and if all the storage blocks in the second matching degree sequence belong to the same disaster recovery data center, the disaster recovery data center can be directly selected as the target disaster recovery data center.
Because the storage block with the highest matching degree is the optimal choice of the data disaster tolerance, if the storage blocks in the second matching degree sequence do not belong to the same disaster tolerance data center, the number of the storage blocks, namely the number of the first storage blocks, of the second matching sequence, which belong to the same disaster tolerance data center as the highest storage block, needs to be further counted, and the ratio of the number of the first storage blocks to the number of all the storage blocks in the second matching sequence is calculated to generate a first duty ratio. And if the first duty ratio is greater than or equal to a preset duty ratio threshold, taking the disaster recovery data center of the storage block with the highest matching degree as a target disaster recovery data center, and if the first duty ratio is smaller than the preset threshold, respectively counting the number of second storage blocks positioned in the second matching degree sequence and included in each disaster recovery data center of the storage blocks except the storage block with the highest matching degree in the second matching degree sequence, and taking the disaster recovery data center with the highest number of counted second storage blocks and the disaster recovery data center with the highest matching degree as the target disaster recovery data center.
For example, the second matching degree sequence includes A, B, C, D, E, F six storage blocks, where the storage block a is the storage block with the highest matching degree, the matching degree of the remaining five storage blocks gradually decreases along with the sorting position, if A, B, C, D, E, F the six storage blocks belong to one disaster recovery data center, the disaster recovery data center is directly taken as a target disaster recovery data center, if A, B, C, D, E, F the six storage blocks do not belong to one disaster recovery data center, and if the preset duty ratio threshold is 50%, the number of first storage blocks belonging to one disaster recovery data center with the storage block a needs to be counted, if both the storage block B and the storage block C belong to one disaster recovery data center with the storage block a, the number of the first storage blocks is 3, the first duty ratio is calculated to be 50%, the first duty ratio is the same as the preset duty ratio threshold, and the disaster recovery data centers corresponding to the storage block a, the storage block B and the storage block C are taken as the target disaster recovery data centers; if the storage block B and the storage block A belong to the same disaster recovery data center, the storage block C, the storage block D and the storage block E belong to the same disaster recovery data center, the storage block F belongs to one disaster recovery data center, the number of the first storage blocks is known to be 2, the number of the second storage blocks is known to be 3, the calculated first duty ratio is 33%, and the first duty ratio is smaller than a preset duty ratio threshold value, then the disaster recovery data centers corresponding to the storage block A and the storage block B and the disaster recovery data centers corresponding to the storage block C, the storage block D and the storage block E are used as target disaster recovery data centers. The preset duty ratio needs to be set according to the data size of the actual disaster recovery data center, which is not specifically limited herein.
Step S103, transmitting the target transmission data to the target disaster recovery data center based on the current transmission environment.
In this embodiment, a target data transmission environment is calculated based on a data size and an expected required transmission time length; judging whether the transmission environment accords with the target data transmission environment or not; if the transmission environment accords with the target data transmission environment, transmitting target transmission data to a target disaster recovery data center; if the transmission environment does not accord with the target data transmission environment, storing the target transmission data into a preset local backup space; and when the transmission environment accords with the target transmission environment, transmitting target transmission data in the preset local backup space to a target disaster recovery data center.
Calculating a target transmission rate, namely a target transmission environment according to the data size and the expected demand transmission time length, acquiring the current transmission rate, transmitting target transmission data to a target disaster recovery data center when the current transmission rate is greater than or equal to the target transmission rate, otherwise, arranging the target transmission data which are input into the preset local backup space according to the adding time when the target transmission data are added into the preset local backup space, adding a to-be-transmitted identifier for each target transmission data which are input into the preset local backup space and the source position of the target transmission data in a queue, and deleting the to-be-transmitted identifier when the current transmission rate is greater than or equal to the target transmission rate and the target transmission data are successfully sent out.
In this embodiment, transmission additional information is acquired, and a transmission report is generated based on the transmission additional information; a transmission file is generated based on the transmission report.
Further, the generation time of the transmission report and the report type are obtained; and sequentially arranging the transmission report sheets with the same report sheet type according to the generation time to generate a transmission file.
The transmission additional information includes a transmission time and a data size of the target transmission data, a transmission report is generated according to the transmission time and the data size, and a worker can know when the target transmission data is transmitted with the data according to the report. And then arranging report sheets with the same report sheet type according to the generation time sequence to generate a transmission file, so that a worker can know the data transmission condition in a period of time according to the transmission file.
Fig. 2 is a block diagram of a disaster recovery device 200 for a data center according to an embodiment of the application.
As shown in fig. 2, the data center disaster recovery device 200 mainly includes:
a target data obtaining module 201, configured to obtain target transmission data information of target transmission data in response to a disaster tolerance instruction sent by a data center to be transmitted;
a data center selection module 202, configured to select a target disaster recovery data center based on the target transmission data information;
the target data transmission module 203 is configured to transmit target transmission data to a target disaster recovery data center based on a current transmission environment.
As an alternative implementation of this embodiment, the data center selection module 202 includes:
the block information acquisition module is used for acquiring a storage block of the disaster recovery data center and storage block information of the storage block;
the information matching calculation module is used for calculating the matching degree of the storage block information and the target transmission data information;
the matching sequence generation module is used for sequencing the storage blocks based on the numerical value of the matching degree to generate a first matching degree sequence;
the target center selection module is used for selecting the disaster recovery data center based on the first matching degree sequence, and taking the selected disaster recovery data center as the target disaster recovery data center.
In this alternative embodiment, the information matching calculation module includes:
the first matching generation module is used for generating a first matching degree based on the storage security level and the data security level;
the second matching generation module is used for generating a second matching degree based on the idle capacity value and the data size;
the third matching generation module is used for generating a third matching degree based on the storage type and the data type;
the block matching calculation module is used for calculating the matching degree of the storage block information and the target transmission data information based on the first matching degree, the second matching degree, the third matching degree and a preset calculation rule.
As an optional implementation manner of this embodiment, the third matching generation module is specifically configured to obtain a storage type name of a storage type and a target type name of a data type; judging whether the storage type name is the same as the target type name; if the storage type name is the same as the target type name, acquiring a storage type level and a target type level; when the storage type level is the same as the target type level, setting the third matching degree to be the highest value; when the storage type level is different from the target type level, acquiring a minimum level containing the storage type level and the target type level, and taking a matching value corresponding to the minimum level as a third matching degree; and if the storage type name is not the same as the target type name, setting the third matching degree to be the lowest value.
As an alternative implementation manner of this embodiment, the target center selection module includes:
the matching threshold judging module is used for judging whether the matching degrees are smaller than a preset matching threshold or not;
the free capacity selecting module is used for selecting storage blocks with corresponding free capacity values larger than the data size according to the preset selection quantity;
the first center selection module is used for taking a disaster recovery data center corresponding to a storage block with an idle capacity value larger than the data size as a target disaster recovery data center;
the second sequence generation module is used for arranging the storage blocks with the matching degree not smaller than a preset matching threshold according to the matching degree, and generating a second matching degree sequence;
the second center selection module is used for selecting the disaster recovery data center based on the second matching degree sequence and a preset selection rule.
In this optional embodiment, the second center selection module is specifically configured to take the disaster recovery data center as the target disaster recovery data center if the storage blocks in the second matching degree sequence belong to the same disaster recovery data center; if the storage blocks in the second matching degree sequence do not belong to the same disaster recovery data center, counting the number of the storage blocks with the highest matching degree in the second matching degree sequence and the first storage blocks belonging to the same disaster recovery data center; generating a first duty ratio based on the counted first storage block number and the storage block number in the second matching degree sequence; if the first duty ratio is not smaller than the preset duty ratio threshold, taking the disaster recovery data center of the storage block with the highest matching degree as a target disaster recovery data center; if the first duty ratio is smaller than a preset duty ratio threshold, respectively counting the number of second storage blocks positioned in the second matching degree sequence, which are included in each disaster recovery data center to which other storage blocks in the second matching degree sequence belong; and taking the disaster recovery data center with the most second storage blocks as the target disaster recovery data center, wherein the disaster recovery data center with the most second storage blocks belongs to the storage blocks with the highest matching degree.
As an optional implementation manner of this embodiment, the target data transmission module 203 is configured to calculate a target data transmission environment based on the data size and the expected required transmission duration; judging whether the transmission environment accords with the target data transmission environment or not; if the transmission environment accords with the target data transmission environment, transmitting target transmission data to a target disaster recovery data center; if the transmission environment does not accord with the target data transmission environment, storing the target transmission data into a preset local backup space; and when the transmission environment accords with the target transmission environment, transmitting target transmission data in the preset local backup space to a target disaster recovery data center.
In one example, a module in any of the above apparatuses may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), or a combination of at least two of these integrated circuit forms.
For another example, when a module in an apparatus may be implemented in the form of a scheduler of processing elements, the processing elements may be general-purpose processors, such as Central Processing Units (CPUs) or other processors that may invoke programs. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Fig. 3 is a block diagram of an electronic device 300 according to an embodiment of the present application.
As shown in FIG. 3, electronic device 300 includes a processor 301 and memory 302, and may further include an information input/information output (I/O) interface 303, one or more of a communication component 304, and a communication bus 305.
The processor 301 is configured to control overall operations of the electronic device 300 to complete all or part of the steps of the disaster recovery method of the data center described above; the memory 302 is used to store various types of data to support operation at the electronic device 300, which may include, for example, instructions for any application or method operating on the electronic device 300, as well as application-related data. The memory 302 may be implemented by any type or combination of volatile or non-volatile memory devices, such as one or more of static random access memory (StaticRandomAccessMemory, SRAM), electrically erasable programmable Read-only memory (electrically erasable programmable Read-OnlyMemory, EEPROM), erasable programmable Read-only memory (erasableummableread-OnlyMemory, EPROM), programmable Read-only memory (programmabread-OnlyMemory, PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The I/O interface 303 provides an interface between the processor 301 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 304 is used for wired or wireless communication between the electronic device 300 and other devices. Wireless communication, such as Wi-Fi, bluetooth, near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more thereof, the corresponding communication component 104 can include: wi-Fi part, bluetooth part, NFC part.
The electronic device 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the data center disaster recovery method given by the above embodiments.
Communication bus 305 may include a pathway to transfer information between the aforementioned components. The communication bus 305 may be a PCI (peripheral component interconnect) bus or an EISA (extended industrial standard architecture) bus, or the like. The communication bus 305 may be divided into an address bus, a data bus, a control bus, and the like.
The electronic device 300 may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like, and may also be a server, and the like.
The application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the data center disaster recovery method described above.
The computer readable storage medium may include: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RandomAccessMemory, RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the application referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or their equivalents is possible without departing from the spirit of the application. Such as the above-mentioned features and the technical features having similar functions (but not limited to) applied for in this application are replaced with each other.

Claims (10)

1. A method of disaster recovery for a data center, comprising:
responding to a disaster tolerance instruction sent by a data center to be transmitted, and acquiring target transmission data information of target transmission data;
selecting a target disaster recovery data center based on the target transmission data information;
and transmitting the target transmission data to the target disaster recovery data center based on the current transmission environment.
2. The method of claim 1, wherein selecting the target disaster recovery data center based on the target transmission data information comprises:
acquiring a storage block of a disaster recovery data center and storage block information of the storage block;
calculating the matching degree of the storage block information and the target transmission data information;
sorting the storage blocks based on the numerical value of the matching degree to generate a first matching degree sequence;
and selecting a disaster recovery data center based on the first matching degree sequence, and taking the selected disaster recovery data center as a target disaster recovery data center.
3. The method of claim 2, wherein the storage block information includes a storage security level, a free capacity value, and a storage type; the target transmission data information comprises a data security level, a data size and a data type; the calculating the matching degree of the storage block information and the target transmission data information comprises:
generating a first degree of match based on the stored security level and the data security level;
generating a second degree of matching based on the free capacity value and the data size;
generating a third degree of matching based on the storage type and the data type;
and calculating the matching degree of the storage block information and the target transmission data information based on the first matching degree, the second matching degree, the third matching degree and a preset calculation rule.
4. The method of claim 3, wherein the deriving a third degree of match based on the storage type and the data type comprises:
acquiring a storage type name of the storage type and a target type name of the data type;
judging whether the storage type name is the same as the target type name;
if the storage type name is the same as the target type name, acquiring a storage type level and a target type level;
when the storage type level is the same as the target type level, setting the third matching degree to be the highest value;
when the storage type level is different from the target type level, acquiring a minimum level containing the storage type level and the target type level, and taking a matching value corresponding to the minimum level as a third matching degree;
and if the storage type name is different from the target type name, setting the third matching degree as a lowest value.
5. The method of any of claims 3-4, wherein selecting a disaster recovery data center based on the first sequence of matches comprises:
judging whether the matching degrees are smaller than a preset matching threshold value or not;
if the matching degrees are smaller than the preset matching threshold, selecting storage blocks with corresponding idle capacity values larger than the data size according to the preset selection quantity;
taking a disaster recovery data center corresponding to a storage block with the idle capacity value larger than the data size as a target disaster recovery data center;
if the matching degrees are not smaller than a preset matching threshold value, arranging the storage blocks with the matching degrees not smaller than the preset matching threshold value according to the matching degree, and generating a second matching degree sequence;
and selecting a disaster recovery data center based on the second matching degree sequence and a preset selection rule.
6. The method of claim 5, wherein selecting a disaster recovery data center based on the second matching sequence and a preset selection rule comprises:
if the storage blocks in the second matching degree sequence belong to the same disaster recovery data center, the disaster recovery data center is used as a target disaster recovery data center;
if the storage blocks in the second matching degree sequence do not belong to the same disaster recovery data center, counting the number of the storage blocks with the highest matching degree in the second matching degree sequence and the first storage blocks belonging to the same disaster recovery data center;
generating a first duty ratio based on the counted first storage block number and the storage block number in the second matching degree sequence;
if the first duty ratio is not smaller than a preset duty ratio threshold, taking the disaster recovery data center of the storage block with the highest matching degree as a target disaster recovery data center;
if the first duty ratio is smaller than a preset duty ratio threshold, respectively counting the number of second storage blocks in the second matching degree sequence, which are included in each disaster recovery data center to which other storage blocks in the second matching degree sequence belong;
and taking the disaster recovery data center with the most second storage blocks and the disaster recovery data center with the highest matching degree as target disaster recovery data centers.
7. The method of claim 3, wherein transmitting the target transmission data to the target disaster recovery data center based on the transmission environment comprises:
calculating a target data transmission environment based on the data size and the expected demand transmission time length;
judging whether the transmission environment accords with the target data transmission environment or not;
if the transmission environment accords with the target data transmission environment, transmitting the target transmission data to the target disaster recovery data center;
if the transmission environment does not accord with the target data transmission environment, storing the target transmission data into a preset local backup space;
and when the transmission environment accords with the target transmission environment, transmitting target transmission data in the preset local backup space to the target disaster recovery data center.
8. A data center disaster recovery device, comprising:
the target data acquisition module is used for responding to a disaster tolerance instruction sent by the data center to be transmitted and acquiring target transmission data information of target transmission data;
the data center selection module is used for selecting a target disaster recovery data center based on the target transmission data information;
and the target data transmission module is used for transmitting the target transmission data to the target disaster recovery data center based on the current transmission environment.
9. An electronic device comprising a processor coupled to a memory;
the processor is configured to execute a computer program stored in the memory to cause the electronic device to perform the method of any one of claims 1 to 7.
10. A computer readable storage medium comprising a computer program or instructions which, when run on a computer, cause the computer to perform the method of any of claims 1 to 7.
CN202310369346.8A 2023-04-10 2023-04-10 Disaster recovery method, device, equipment and storage medium for data center Active CN116089175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310369346.8A CN116089175B (en) 2023-04-10 2023-04-10 Disaster recovery method, device, equipment and storage medium for data center

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310369346.8A CN116089175B (en) 2023-04-10 2023-04-10 Disaster recovery method, device, equipment and storage medium for data center

Publications (2)

Publication Number Publication Date
CN116089175A true CN116089175A (en) 2023-05-09
CN116089175B CN116089175B (en) 2023-06-23

Family

ID=86187297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310369346.8A Active CN116089175B (en) 2023-04-10 2023-04-10 Disaster recovery method, device, equipment and storage medium for data center

Country Status (1)

Country Link
CN (1) CN116089175B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555490A (en) * 2024-01-11 2024-02-13 北京伟思创科技股份有限公司 Data virtualization management method, device, equipment and medium
CN117555490B (en) * 2024-01-11 2024-04-26 北京伟思创科技股份有限公司 Data virtualization management method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120003A (en) * 2015-09-10 2015-12-02 浪潮(北京)电子信息产业有限公司 Method for realizing data backup in cloud environment
US20180121466A1 (en) * 2012-08-31 2018-05-03 Microsoft Technology Licensing, Llc Replicating data across data centers
CN111030945A (en) * 2019-12-06 2020-04-17 深信服科技股份有限公司 Disaster recovery method, disaster recovery gateway, storage medium, device and system
CN112272107A (en) * 2020-09-29 2021-01-26 南京信同诚信息技术有限公司 Data center disaster recovery system based on cloud computing
CN113890712A (en) * 2021-10-14 2022-01-04 微位(深圳)网络科技有限公司 Data transmission method and device, electronic equipment and readable storage medium
CN114328032A (en) * 2022-01-05 2022-04-12 南方电网大数据服务有限公司 Disaster recovery switching processing method and device based on big data double activities and computer equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180121466A1 (en) * 2012-08-31 2018-05-03 Microsoft Technology Licensing, Llc Replicating data across data centers
CN105120003A (en) * 2015-09-10 2015-12-02 浪潮(北京)电子信息产业有限公司 Method for realizing data backup in cloud environment
CN111030945A (en) * 2019-12-06 2020-04-17 深信服科技股份有限公司 Disaster recovery method, disaster recovery gateway, storage medium, device and system
CN112272107A (en) * 2020-09-29 2021-01-26 南京信同诚信息技术有限公司 Data center disaster recovery system based on cloud computing
CN113890712A (en) * 2021-10-14 2022-01-04 微位(深圳)网络科技有限公司 Data transmission method and device, electronic equipment and readable storage medium
CN114328032A (en) * 2022-01-05 2022-04-12 南方电网大数据服务有限公司 Disaster recovery switching processing method and device based on big data double activities and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555490A (en) * 2024-01-11 2024-02-13 北京伟思创科技股份有限公司 Data virtualization management method, device, equipment and medium
CN117555490B (en) * 2024-01-11 2024-04-26 北京伟思创科技股份有限公司 Data virtualization management method, device, equipment and medium

Also Published As

Publication number Publication date
CN116089175B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN111190689B (en) Digital twin system simulation method and device
CN113890712A (en) Data transmission method and device, electronic equipment and readable storage medium
CN114153808B (en) Sorting method and system based on secret sharing
CN112100643A (en) Data processing method and device based on privacy protection and server
EP3301626A1 (en) Method, device, and system
CN116089175B (en) Disaster recovery method, device, equipment and storage medium for data center
CN104599092A (en) Order business monitoring method and equipment
CN110891087B (en) Log transmission method and device, electronic equipment and storage medium
CN111885184A (en) Method and device for processing hot spot access keywords in high concurrency scene
CN113448770A (en) Method, electronic device and computer program product for recovering data
CN112181307A (en) Block chain based distributed data redundancy storage method and electronic equipment
CN112182107B (en) List data acquisition method, device, computer equipment and storage medium
CN112818204B (en) Service processing method, device, equipment and storage medium
CN113222778A (en) Method, electronic device and storage medium for power network adaptation analysis
CN104299141A (en) Data processing method and device
CN116847113B (en) Video live broadcast transfer method, device, equipment and medium based on cloud architecture module
CN106528577B (en) Method and device for setting file to be cleaned
CN117522034A (en) Fusion scheduling method, device, equipment and medium
CN115987685B (en) Cloud service data sharing method and system
CN112000945B (en) Authorization method, device, equipment and medium based on artificial intelligence
CN113093702B (en) Fault data prediction method and device, electronic equipment and storage medium
CN117579392B (en) Reliable data transmission method, device, equipment and medium based on encryption processing
CN108694249B (en) Data processing method, data processing device, computer equipment and storage medium
CN117785487A (en) Method, device, equipment and medium for scheduling computing power resources
CN117332973A (en) Development platform resource data allocation method, device, equipment and medium

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