Operation method and device of disaster recovery system, storage medium and electronic equipment
By monitoring the target process of the disaster recovery system and evaluating the network performance, dynamically adjusting the operation level, the problem of unsatisfactory disaster recovery results caused by fluctuations in network performance in remote disaster recovery is solved, and the stability of data transmission and system reliability.
Patent Information
- Application Number
- CN202411214885.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-24
AI Technical Summary
The disaster recovery effect of off-site disaster recovery is affected by network performance, especially when the network fluctuates.
By monitoring the status of the target process in the disaster recovery system and determining its normal state, the network performance level of the disaster recovery system is adjusted to control the system to operate under different network conditions, including high-speed, medium-speed and low-speed levels, to ensure data transmission stability and consistency.
When network performance fluctuates, dynamically adjust the operating level to ensure the stability of disaster recovery effects, avoid data loss and system downtime, and improve the reliability and stability of the system.
Smart Images

Figure CN119179603A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and in particular, to a method and device for operating a disaster recovery system, a storage medium, and an electronic device. Background Art
[0002] Traditional site disaster recovery solutions generally use periodic backup or manual backup to protect data. When problems occur in production data, data can be restored based on the backed-up historical data. The data restored in this way is the data of the scheduled backup point or the manual backup point. The newly added and modified data after the last backup will be lost. Continuous Data Protection (CDP) was created to solve this problem. Continuous data protection is to continuously capture data changes and then save these changed data independently. Moreover, CDP can achieve data recovery at any time point in the past. The CDP site disaster recovery solution has the following characteristics: data changes are continuously captured and tracked; all data changes are stored in an independent location different from the main storage location. In the site disaster recovery environment established by the user on site, the production site and the disaster recovery site are off-site disaster recovery. The distance between the production site and the disaster recovery site is relatively far, and the off-site disaster recovery effect will be affected by the network bandwidth and stability. Therefore, the general CDP site disaster recovery solution will have higher requirements on network performance.
[0003] In the related technologies, the production site and the disaster recovery site are generally remote disaster recovery. The disaster recovery effect of remote disaster recovery will be affected by network performance. In the case of network fluctuations, the problem of unsatisfactory disaster recovery effect of remote disaster recovery has not yet been effectively solved. Summary of the invention
[0004] The embodiments of the present application provide a method and system for operating a disaster recovery system, a storage medium, and an electronic device, so as to at least solve the problem in the related art that the production site and the disaster recovery site are generally remote disaster recovery, and the disaster recovery effect of the remote disaster recovery is affected by the network performance. In the event of network fluctuations, the disaster recovery effect of the remote disaster recovery is not ideal.
[0005] According to one embodiment of the present application, a method for operating a disaster recovery system is provided, the method comprising: monitoring the status of a target process in the disaster recovery system to determine whether the target process is in a normal state; when it is determined that the target process is in a normal state, determining the network performance of the disaster recovery system, wherein the network performance of the disaster recovery system is the communication performance between a production site and a disaster recovery site, and the disaster recovery system comprises: the production site and the disaster recovery site; and adjusting the operating level corresponding to the disaster recovery system to a target operating level according to the network performance to control the disaster recovery system to operate according to the target operating level.
[0006] In an exemplary embodiment, after monitoring the status of a target process in a disaster recovery system to determine whether the target process is in a normal state, the method further includes: when it is determined that the target process is in an abnormal state, adjusting the corresponding operating level of the disaster recovery system to an abnormal operating level to control the disaster recovery system to operate according to the abnormal operating level.
[0007] In an exemplary embodiment, controlling the disaster recovery system to operate according to the abnormal operation level includes: obtaining first data backed up by the disaster recovery system at a target time, and backing up second data corresponding to the production site at the current time, wherein the first data is data corresponding to the production site before the target time, and the target time is the time when the target process is in a normal state; restarting the target process, and determining whether the target process after restart is in a normal state; when it is determined that the target process after restart is in a normal state, comparing the first data with the second data to determine difference data with the first data in the second data according to the comparison result; transmitting the difference data to the disaster recovery site.
[0008] In an exemplary embodiment, the operating level corresponding to the disaster recovery system is adjusted to a target operating level according to the network performance, including: when it is determined that the network performance is a first network performance, the operating level is adjusted to a high-speed operating level; when it is determined that the network performance is a second network performance, the operating level is adjusted to a medium-speed operating level, wherein the first network performance is better than the second network performance.
[0009] In an exemplary embodiment, controlling the disaster recovery system to operate according to the target operating level includes: when the target operating level is the high-speed operating level, acquiring third data corresponding to the production site; and transmitting the third data to the disaster recovery site in real time.
[0010] In an exemplary embodiment, controlling the disaster recovery system to operate according to the target operating level includes: when the target operating level is the medium-speed operating level, obtaining fourth data corresponding to the production site; determining, based on the fourth data, a first data increment corresponding to the production site when the operating level of the disaster recovery system is the medium-speed operating level, and storing the first data increment in a cache device, and monitoring the network performance of the disaster recovery system in real time, wherein the production site includes: the cache device; when monitoring that the network performance of the disaster recovery system is updated from the second network performance to the first network performance, adjusting the operating level of the disaster recovery system from the medium-speed operating level to the high-speed operating level, and reading the first data increment from the cache device; transmitting the first data increment to the disaster recovery site.
[0011] In an exemplary embodiment, the operating level corresponding to the disaster recovery system is adjusted to the target operating level according to the network performance to control the disaster recovery system to operate according to the target operating level, including: determining the remaining capacity of the cache device; when the target operating level is the medium-speed operating level and the remaining capacity is less than or equal to the remaining capacity threshold, adjusting the target operating level from the medium-speed operating level to the low-speed operating level; creating a data bitmap corresponding to the production site, wherein the data bitmap is used to indicate whether the data corresponding to the production site has changed; monitoring the network performance of the disaster recovery system; when monitoring that the network performance of the disaster recovery system is updated from the first network performance to the second network performance, adjusting the operating level of the disaster recovery system from the low-speed operating level to the high-speed operating level; determining the second data increment corresponding to the production site when the operating level of the disaster recovery system is the low-speed operating level according to the data bitmap; and transmitting the second data increment to the disaster recovery site.
[0012] According to another embodiment of the present application, an operation device of a disaster recovery system is provided, including: a monitoring module, used to monitor the status of a target process in the disaster recovery system to determine whether the target process is in a normal state; a determination module, used to determine the network performance of the disaster recovery system when it is determined that the target process is in a normal state, wherein the network performance of the disaster recovery system is the communication performance between a production site and a disaster recovery site, and the disaster recovery system includes: the production site and the disaster recovery site; an adjustment module, used to adjust the operation level corresponding to the disaster recovery system to a target operation level according to the network performance, so as to control the disaster recovery system to operate according to the target operation level.
[0013] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer process is configured to execute the steps in the above method embodiment when running.
[0014] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer process, and the processor is configured to run the computer process to execute the steps in the above method embodiment.
[0015] According to another embodiment of the present application, a computer program product is provided, including a computer process, and when the computer process is executed by a processor, the steps in the above method embodiment are implemented.
[0016] Through the operation method of the disaster recovery system of the present application, the state of the target process in the disaster recovery system is monitored to determine whether the target process is in a normal state; when it is determined that the target process is in a normal state, the communication performance between the production site and the disaster recovery site of the disaster recovery system is determined, that is, the network performance of the disaster recovery system is determined; according to the network performance, the operation level corresponding to the disaster recovery system is adjusted to the target operation level to control the disaster recovery system to operate according to the target operation level. In other words, when it is determined that the target process is in a normal state, the network performance of the disaster recovery system can be determined, and the operation level of the disaster recovery system can be adjusted according to the network performance, so that the disaster recovery system can operate according to the target operation level. Through the embodiments of the present application, the problem that the production site and the disaster recovery site are generally off-site disaster recovery in the related technology, the disaster recovery effect of off-site disaster recovery will be affected by the network performance, and the disaster recovery effect of off-site disaster recovery is not ideal when the network fluctuates can be solved. In addition, the disaster recovery effect can be still stable when the network performance fluctuates. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a hardware structure block diagram of a computer terminal of an operation method of a disaster recovery system according to an embodiment of the present application;
[0018] Figure 2 is a flow chart of an operation method of a disaster recovery system according to an embodiment of the present application;
[0019] Figure 3 It is a structural block diagram of a disaster recovery system corresponding to a CDP site disaster recovery solution capable of dynamically adjusting the operating level according to an optional embodiment of the present application;
[0020] Figure 4 It is a flow chart of a CDP site disaster recovery solution capable of dynamically adjusting the operation level according to an optional embodiment of the present application;
[0021] Figure 5It is a structural block diagram of an operating device of a disaster recovery system according to an embodiment of the present application. DETAILED DESCRIPTION
[0022] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0024] The method embodiments provided in the embodiments of the present application can be applied to an operating system, and the operating system can be located in a computer terminal or a similar computing device for execution. Taking running on a computer terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a computer terminal of a method for operating a disaster recovery system according to an embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0025] The memory 104 can be used to store computer processes, for example, software processes and modules of application software, such as the computer process corresponding to the method for determining the interactive state in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer process stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0026] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0027] Figure 2 is a flowchart of a method for operating a disaster recovery system according to an embodiment of the present application, which is operated in Figure 1 In a computer terminal, such as Figure 2 As shown, the process includes the following steps:
[0028] Step S202, monitoring the state of the target process in the disaster recovery system to determine whether the target process is in a normal state;
[0029] The target process may be continuous data protection (CDP). Continuous data protection is a set of methods or processes that can capture or track data changes and store them independently from production data to ensure that data can be restored to any point in time in the past.
[0030] CDP can run on the production site of the disaster recovery system.
[0031] Step S204, when it is determined that the target process is in a normal state, determining the network performance of the disaster recovery system, wherein the network performance of the disaster recovery system is the communication performance between the production site and the disaster recovery site, and the disaster recovery system includes: the production site and the disaster recovery site;
[0032] Step S206: adjusting the operation level corresponding to the disaster recovery system to a target operation level according to the network performance, so as to control the disaster recovery system to operate according to the target operation level.
[0033] Through the operation method of the disaster recovery system of the present application, the state of the target process in the disaster recovery system is monitored to determine whether the target process is in a normal state; when it is determined that the target process is in a normal state, the communication performance between the production site and the disaster recovery site of the disaster recovery system is determined, that is, the network performance of the disaster recovery system is determined; according to the network performance, the operation level corresponding to the disaster recovery system is adjusted to the target operation level to control the disaster recovery system to operate according to the target operation level. That is to say, when it is determined that the target process is in a normal state, the embodiment of the present application determines the network performance of the disaster recovery system, adjusts the operation level of the disaster recovery system according to the network performance, and then makes the disaster recovery system operate according to the target operation level. Through the embodiment of the present application, the problem that the production site and the disaster recovery site are generally off-site disaster recovery in the related technology, the disaster recovery effect of off-site disaster recovery will be affected by the network performance, and the disaster recovery effect of off-site disaster recovery is not ideal when the network fluctuates can be solved. Then, the disaster recovery effect can be still stable when the network performance fluctuates.
[0034] Optionally, after monitoring the status of the target process in the disaster recovery system to determine whether the target process is in a normal state in the above step S202, the method further includes: when it is determined that the target process is in an abnormal state, adjusting the corresponding operating level of the disaster recovery system to an abnormal operating level to control the disaster recovery system to operate according to the abnormal operating level.
[0035] It is understandable that CDP may work abnormally. In this case, the business data of the virtual machine at the production site cannot be intercepted in time. In this case, if it is not handled in time, data loss will occur. Therefore, at this time, there is no need to further determine the communication performance between the production site and the disaster recovery site. The operation level corresponding to the disaster recovery system can be directly adjusted to the abnormal operation level, so that the disaster recovery system can operate according to the abnormal operation level.
[0036] Among them, controlling the disaster recovery system to operate according to the abnormal operation level includes: obtaining the first data backed up by the disaster recovery system at the target time, and backing up the second data corresponding to the production site at the current time, wherein the first data is the data corresponding to the production site before the target time, and the target time is the time when the target process is in a normal state; restarting the target process, and determining whether the target process after the restart is in a normal state; when it is determined that the target process after the restart is in a normal state, comparing the first data and the second data to determine the difference data with the first data in the second data according to the comparison result; transmitting the difference data to the disaster recovery site.
[0037] It can be understood that controlling the disaster recovery system to operate at an abnormal operation level specifically includes: since the disaster recovery system has a periodic backup function, the first data backed up by the disaster recovery system in the previous period at the current time can be obtained, and the second data at the current time can be backed up. By comparing the first data with the second data, it can be confirmed that there is no differential data transmitted to the disaster recovery site, and then when it is determined that the CDP is in a normal state, the differential data can be transmitted to the disaster recovery site to achieve normal operation of the disaster recovery system.
[0038] Through the above embodiment, when it is determined that the CDP is abnormal, the backed-up first data is obtained, and the second data is backed up to compare the first data with the second data, confirm the difference data, and when the CDP is restored to normal, the difference data is transmitted to the disaster recovery site. The technical solution can retrieve the lost difference data and remedy the abnormal situation of the CDP. In addition, data loss and long downtime of the disaster recovery system can be avoided, and the reliability and stability of the disaster recovery system can be improved.
[0039] Optionally, the above step S206 adjusts the operating level corresponding to the disaster recovery system to the target operating level according to the network performance, including: when it is determined that the network performance is the first network performance, adjusting the operating level to the high-speed operating level; when it is determined that the network performance is the second network performance, adjusting the operating level to the medium-speed operating level, wherein the first network performance is better than the second network performance.
[0040] It is understandable that the technical solution of disaster recovery through CDP will place high demands on network performance, that is, the disaster recovery effect of the disaster recovery system will be affected by the network bandwidth. The embodiment of the present application can automatically adjust the operation level of the disaster recovery system according to the communication performance between the production site and the disaster recovery site. Specifically: when the network performance is determined to be the first network performance, the operation level can be adjusted to the high-speed operation level. When the network performance is determined to be the second network performance, the operation level can be adjusted to the medium-speed operation level. The first network performance can be a situation where the network performance is good, and the second network performance can be a situation where the network fluctuates or the network bandwidth is affected.
[0041] The technical solution of adjusting the operation level of the disaster recovery system according to the excellent network performance can effectively improve the operation efficiency and stability of the disaster recovery system, ensure the normal operation of the disaster recovery system in different network environments, and improve the disaster recovery capability and availability of the system.
[0042] Among them, controlling the disaster recovery system to operate according to the target operating level includes: when the target operating level is the high-speed operating level, obtaining third data corresponding to the production site; and transmitting the third data to the disaster recovery site in real time.
[0043] It is understandable that the first network performance may be a situation where the network performance is good. When the network performance is good, the operation level can be adjusted to a high-speed operation level, and the incremental data intercepted at the production site (i.e., the third data of the present application) will be directly sent to the disaster recovery site through the data transmission module. Through the technical solution of the present application, the data of the production site can be transmitted to the disaster recovery site in real time, thereby ensuring the consistency between the primary and backup data and avoiding data inconsistency problems caused by data synchronization delays.
[0044] Among them, controlling the disaster recovery system to operate according to the target operating level includes: when the target operating level is the medium-speed operating level, obtaining the fourth data corresponding to the production site; determining the first data increment corresponding to the production site when the operating level of the disaster recovery system is the medium-speed operating level according to the fourth data, and storing the first data increment in a cache device, and monitoring the network performance of the disaster recovery system in real time, wherein the production site includes: the cache device; when monitoring that the network performance of the disaster recovery system is updated from the second network performance to the first network performance, adjusting the operating level of the disaster recovery system from the medium-speed operating level to the high-speed operating level, and reading the first data increment from the cache device; transmitting the first data increment to the disaster recovery site.
[0045] It is understandable that the second operating level may be a situation where the disaster recovery system network frequently fluctuates or the network bandwidth is poor. In this case, the operating level of the disaster recovery system can be adjusted to a medium-speed operating level. The first data increment can be determined by the fourth data obtained at the production site, and the first data increment can be temporarily stored in the cache device of the production site. When the network performance is good, the first data increment stored in the cache device is then transmitted to the disaster recovery site. It is understandable that the above technical solution can alleviate the impact of insufficient network performance, thereby ensuring the stability of the disaster recovery capability of the disaster recovery system.
[0046] Among them, the operation level corresponding to the disaster recovery system is adjusted to the target operation level according to the network performance to control the disaster recovery system to operate according to the target operation level, including: determining the remaining capacity of the cache device; when the target operation level is the medium-speed operation level and the remaining capacity is less than or equal to the remaining capacity threshold, adjusting the target operation level from the medium-speed operation level to the low-speed operation level; creating a data bitmap corresponding to the production site, wherein the data bitmap is used to indicate whether the data corresponding to the production site has changed; monitoring the network performance of the disaster recovery system; when it is monitored that the network performance of the disaster recovery system is updated from the first network performance to the second network performance, adjusting the operation level of the disaster recovery system from the low-speed operation level to the high-speed operation level; determining the second data increment corresponding to the production site when the operation level of the disaster recovery system is the low-speed operation level according to the data bitmap; and transmitting the second data increment to the disaster recovery site.
[0047] It is understandable that the space in the cache device is limited. If the disaster recovery system network fluctuates frequently or the network bandwidth is poor for a period of time, the cache device may have insufficient remaining capacity. At this time, the operation level of the disaster recovery system can be adjusted to a low-speed operation level. A data bitmap corresponding to the production site can be created, and the location of the data change can be recorded in the form of a bitmap record. Then, the second data increment can be determined based on the data bitmap. When it is determined that the network performance is good, the second data increment can be transmitted to the disaster recovery site.
[0048] In order to better understand the process of the operation method of the above-mentioned disaster recovery system, the implementation process of the operation method of the above-mentioned disaster recovery system is described below in combination with an optional embodiment, but it is not used to limit the technical solution of the embodiment of the present application.
[0049] Before you can better understand the operation method of the above disaster recovery system, you need to understand the following terms:
[0050] The optional embodiment of the present application provides a CDP site disaster recovery solution that can dynamically adjust the operation level. Figure 3 : is a structural block diagram of a disaster recovery system corresponding to a CDP site disaster recovery solution capable of dynamically adjusting the operating level according to an optional embodiment of the present application, such as Figure 3As shown: The disaster recovery system includes: a production site and a disaster recovery site. The production site and the disaster recovery site each have a virtual machine, which is a production virtual machine at the production site and a placeholder virtual machine at the disaster recovery site. The production virtual machine controls the virtual disk through the CDP process. The production virtual machine is connected to the operation level control device, and the operation level control device can adjust the operation level of the disaster recovery system to an abnormal operation level, a low-speed operation level, a medium-speed operation level or a high-speed operation level. The production site also includes a data sending module, which is used to transmit the data corresponding to the production site to the data receiving module of the disaster recovery site, and then the data receiving module sends the received data to the receiving storage device, and then the data merging module obtains the data stored in the receiving storage device, and sends the data to the virtual disk controlled by the placeholder virtual machine at the disaster recovery site to realize the operation of the disaster recovery system.
[0051] Figure 4 is a flow chart of a CDP site disaster recovery solution that can dynamically adjust the operation level according to an optional embodiment of the present application, which is applied to Figure 3 In a disaster recovery system, Figure 4 As shown:
[0052] A CDP site disaster recovery solution that can dynamically adjust the operating level includes: when the network performance is good, the disaster recovery system runs at a high speed level; when the network performance is poor, the disaster recovery system runs at a medium speed level; when the cache device space is insufficient, the disaster recovery system runs at a low speed level; when the system CDP works abnormally, the disaster recovery system will trigger the abnormal state processing mechanism, use virtual machine data backup, transmit differential data, and trigger restart to restore normal working mode. Specifically:
[0053] Step S401, determine whether the CDP (ie, the target process of the present application) is in a normal state. If it is determined that the CDP is in a normal state, execute step S402; if it is determined that the CDP is in an abnormal state, execute step S403.
[0054] Step S402, when it is determined that CDP is in a normal state, determine whether the network status of the disaster recovery system (i.e., the network performance of the present application) is good; when it is determined that the network status is good (i.e., the first network performance of the present application), execute step S404; when it is determined that the network status is unstable (i.e., the second network performance of the present application), execute step S405.
[0055] Step S403, when it is determined that the CDP is in an abnormal state, the operation level of the disaster recovery system is adjusted to an abnormal level (ie, the abnormal operation level of the present application).
[0056] When CDP works abnormally, the business data of the virtual machine cannot be intercepted in time. In this case, data loss will occur if it is not handled. When CDP works abnormally, the system will automatically trigger data snapshot backup and restart CDP to restore CDP to normal working state. At this time, the data transmission module will transmit the difference snapshot data (that is, the difference data of this application) to retrieve the lost data. The abnormal operation level is a remedial measure for abnormal system operation. Under normal circumstances, the disaster recovery system will not be at the abnormal level.
[0057] Step S404, when it is determined that the network status is good, the operation level of the disaster recovery system is adjusted to a high-speed level (ie, the high-speed operation level of the present application).
[0058] When the system network performance is good, the network will not become a performance bottleneck for data transmission. At this time, the system is working at a high-speed level, and the data intercepted in real time from the business virtual machine will be directly transmitted to the disaster recovery site through the data transmission module through the network. In the high-speed operation mode, the system disaster recovery performance is in the best state.
[0059] Step S405, when it is determined that the network state is unstable, determine whether the cache device space is sufficient; when it is determined that the cache device space is sufficient, execute step S406, and when it is determined that the cache space is insufficient, execute step S407.
[0060] Step S406, when it is determined that the cache device space is sufficient, the operation level of the disaster recovery system is adjusted to a medium-speed level (ie, the medium-speed operation level of the present application).
[0061] When the disaster recovery system network fluctuates frequently or the network bandwidth is poor, the system will automatically downgrade to the medium-speed level. At this time, the intercepted business data increment (i.e., the first data increment of this application) will not be sent directly, but will be temporarily stored in the cache device. The data transmission module reads the data from the cache device and transmits it. The medium-speed level alleviates the impact of insufficient network performance by adding cache devices, ensuring the stability of the system's disaster recovery capabilities. When the network performance is improved, the disaster recovery system's operating status will automatically upgrade to the high-speed level.
[0062] Step S407, when it is determined that the cache space is insufficient, the operation level of the disaster recovery system is adjusted to a low-speed level (ie, the low-speed operation level of the present application).
[0063] When the disaster recovery system runs at a medium speed level for a long time, the network performance will not be improved for a long time, and the storage capacity of the cache device will further become the performance bottleneck of the system. When the usage of the cache device reaches the upper threshold, the system will automatically downgrade to a low speed level. At this time, the intercepted data will no longer be saved to the cache device, but the location of the data change will be recorded by bitmap recording. The bitmap is temporarily stored in the memory, and the transmission module will obtain the bitmap from the memory and combine the snapshot to obtain incremental data (i.e., the second incremental data of this application) for transmission. The bitmap data is very small and the space occupied can be ignored.
[0064] Through the optional embodiments of the present application, in view of the situation where factors such as network bandwidth performance and cache device storage capacity become system performance bottlenecks, the optional embodiments of the present application propose a CDP site disaster recovery solution that can dynamically adjust the operation level, and divide the system into four operation levels according to the possible impact and corresponding solutions, namely high-speed level, medium-speed level, low-speed level and abnormal level. According to the current operation of the disaster recovery system, the operation status is automatically upgraded and upgraded. It can not only ensure the security and reliability of data transmission, but also minimize the dependence on network performance and cache devices, and can solve problems in various abnormal scenarios. For the scene where the disaster recovery system works abnormally, the differential snapshot data is transmitted in the form of snapshot backup, which effectively ensures the integrity of the site disaster recovery data.
[0065] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0066] In this embodiment, a running device of a disaster recovery system is also provided, and the device is used to implement the above-mentioned embodiment and preferred implementation mode, and the descriptions that have been made are not repeated here. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0067] Figure 5 is a structural block diagram of an operating device of a disaster recovery system according to an embodiment of the present application, such as Figure 5 As shown, the system includes:
[0068] A monitoring module 52, used to monitor the state of a target process in the disaster recovery system to determine whether the target process is in a normal state;
[0069] The determination module 54 is used to determine the network performance of the disaster recovery system when it is determined that the target process is in a normal state, wherein the network performance of the disaster recovery system is the communication performance between the production site and the disaster recovery site, and the disaster recovery system includes: the production site and the disaster recovery site;
[0070] The adjustment module 56 is used to adjust the operation level corresponding to the disaster recovery system to a target operation level according to the network performance, so as to control the disaster recovery system to operate according to the target operation level.
[0071] Through the operation device of the disaster recovery system of the present application, the state of the target process in the disaster recovery system is monitored to determine whether the target process is in a normal state; when it is determined that the target process is in a normal state, the communication performance between the production site and the disaster recovery site of the disaster recovery system is determined, that is, the network performance of the disaster recovery system is determined; according to the network performance, the operation level corresponding to the disaster recovery system is adjusted to the target operation level to control the disaster recovery system to operate according to the target operation level. In other words, when it is determined that the target process is in a normal state, the network performance of the disaster recovery system can be determined, and the operation level of the disaster recovery system can be adjusted according to the network performance, so that the disaster recovery system can operate according to the target operation level. Through the embodiments of the present application, the problem that the production site and the disaster recovery site are generally off-site disaster recovery in the related technology, the disaster recovery effect of off-site disaster recovery will be affected by the network performance, and the disaster recovery effect of off-site disaster recovery is not ideal when the network fluctuates can be solved. In addition, the disaster recovery effect can be still stable when the network performance fluctuates.
[0072] In an exemplary embodiment, the monitoring module 52 is further used to adjust the operation level corresponding to the disaster recovery system to an abnormal operation level when it is determined that the target process is in an abnormal state, so as to control the disaster recovery system to operate according to the abnormal operation level.
[0073] In an exemplary embodiment, the monitoring module 52 is also used to obtain the first data backed up by the disaster recovery system at the target time, and to perform a data backup on the second data corresponding to the production site at the current time, wherein the first data is the data corresponding to the production site before the target time, and the target time is the time when the target process is in a normal state; restart the target process, and determine whether the target process after the restart is in a normal state; when it is determined that the target process after the restart is in a normal state, compare the first data and the second data to determine the difference data with the first data in the second data according to the comparison result; and transmit the difference data to the disaster recovery site.
[0074] In an exemplary embodiment, the adjustment module 56 is also used to adjust the operating level to a high-speed operating level when the network performance is determined to be a first network performance; and to adjust the operating level to a medium-speed operating level when the network performance is determined to be a second network performance, wherein the first network performance is better than the second network performance.
[0075] In an exemplary embodiment, the adjustment module 56 is further configured to, when the target operating level is the high-speed operating level, obtain third data corresponding to the production site; and transmit the third data to the disaster recovery site in real time.
[0076] In an exemplary embodiment, the adjustment module 56 is also used to obtain fourth data corresponding to the production site when the target operating level is the medium-speed operating level; determine the first data increment corresponding to the production site when the operating level of the disaster recovery system is the medium-speed operating level based on the fourth data, store the first data increment in the cache device, and monitor the network performance of the disaster recovery system in real time, wherein the production site includes: the cache device; when monitoring that the network performance of the disaster recovery system is updated from the second network performance to the first network performance, adjust the operating level of the disaster recovery system from the medium-speed operating level to the high-speed operating level, and read the first data increment from the cache device; transmit the first data increment to the disaster recovery site.
[0077] In an exemplary embodiment, the adjustment module 56 is also used to determine the remaining capacity of the cache device; when the target operating level is the medium-speed operating level and the remaining capacity is less than or equal to the remaining capacity threshold, adjust the target operating level from the medium-speed operating level to the low-speed operating level; create a data bitmap corresponding to the production site, wherein the data bitmap is used to indicate whether the data corresponding to the production site has changed; monitor the network performance of the disaster recovery system; when it is monitored that the network performance of the disaster recovery system is updated from the first network performance to the second network performance, adjust the operating level of the disaster recovery system from the low-speed operating level to the high-speed operating level; determine the second data increment corresponding to the production site when the operating level of the disaster recovery system is the low-speed operating level according to the data bitmap; and transmit the second data increment to the disaster recovery site.
[0078] An embodiment of the present application further provides a computer-readable storage medium, in which a computer process is stored, wherein the computer process is configured to execute the steps in the above method embodiment when running.
[0079] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer processes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0080] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer process, and the processor is configured to run the computer process to execute the steps in the above method embodiment.
[0081] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0082] An embodiment of the present application further provides a computer process product, including a computer process, wherein when the computer process is executed by a processor, the steps in the above method embodiment are implemented.
[0083] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0084] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a process code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.
[0085] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for operating a disaster recovery system, characterized in that: include: Performing status monitoring on the target process in the disaster recovery system to determine whether the target process is in a normal state; In the case of determining that the target process is in a normal state, determining the network performance of the disaster recovery system, wherein the network performance of the disaster recovery system is the communication performance between the production site and the disaster recovery site, and the disaster recovery system includes: the production site and the disaster recovery site; The operation level corresponding to the disaster recovery system is adjusted to a target operation level according to the network performance, so as to control the disaster recovery system to operate according to the target operation level.
2. The method according to claim 1, characterized in that After monitoring the state of the target process in the disaster recovery system to determine whether the target process is in a normal state, the method further includes: When it is determined that the target process is in an abnormal state, the operation level corresponding to the disaster recovery system is adjusted to an abnormal operation level, so as to control the disaster recovery system to operate according to the abnormal operation level.
3. The method according to claim 2, characterized in that Controlling the disaster recovery system to operate according to the abnormal operation level includes: Acquire the first data backed up by the disaster recovery system at the target time, and perform data backup on the second data corresponding to the production site at the current time, wherein the first data is the data corresponding to the production site before the target time, and the target time is the time when the target process is in a normal state; Restarting the target process and determining whether the restarted target process is in a normal state; When it is determined that the restarted target process is in a normal state, the first data and the second data are compared to determine difference data between the second data and the first data according to the comparison result; The differential data is transmitted to the disaster recovery site.
4. The method according to claim 1, characterized in that: Adjusting the operation level corresponding to the disaster recovery system to a target operation level according to the network performance includes: When determining that the network performance is the first network performance, adjusting the operation level to a high-speed operation level; When it is determined that the network performance is the second network performance, the operation level is adjusted to a medium-speed operation level, wherein the first network performance is better than the second network performance.
5. The method according to claim 4, characterized in that Controlling the disaster recovery system to operate according to the target operating level includes: When the target operation level is the high-speed operation level, obtaining third data corresponding to the production site; The third data is transmitted to the disaster recovery site in real time.
6. The method according to claim 4, characterized in that Controlling the disaster recovery system to operate according to the target operating level includes: When the target operation level is the medium-speed operation level, acquiring fourth data corresponding to the production site; determining, according to the fourth data, a first data increment corresponding to the production site when the operation level of the disaster recovery system is a medium-speed operation level, storing the first data increment in a cache device, and monitoring the network performance of the disaster recovery system in real time, wherein the production site includes: the cache device; When it is monitored that the network performance of the disaster recovery system is updated from the second network performance to the first network performance, adjusting the operation level of the disaster recovery system from the medium-speed operation level to the high-speed operation level, and reading the first data increment from the cache device; The first data is incrementally transmitted to the disaster recovery site.
7. The method according to claim 6, characterized in that Adjusting the operation level corresponding to the disaster recovery system to a target operation level according to the network performance, so as to control the disaster recovery system to operate according to the target operation level, including: Determining the remaining capacity of the cache device; When the target operation level is the medium-speed operation level and the remaining capacity is less than or equal to the remaining capacity threshold, adjusting the target operation level from the medium-speed operation level to the low-speed operation level; Creating a data bitmap corresponding to the production site, wherein the data bitmap is used to indicate whether the data corresponding to the production site has changed; Monitoring the network performance of the disaster recovery system; When it is monitored that the network performance of the disaster recovery system is updated from the first network performance to the second network performance, adjusting the operation level of the disaster recovery system from the low-speed operation level to the high-speed operation level; Determine, according to the data bitmap, a second data increment corresponding to the production site when the operation level of the disaster recovery system is a low-speed operation level; The second data is incrementally transmitted to the disaster recovery site.
8. An operating device of a disaster recovery system, characterized in that: include: A monitoring module is used to monitor the status of the target process in the disaster recovery system to determine whether the target process is in a normal state; A determination module, configured to determine the network performance of the disaster recovery system when it is determined that the target process is in a normal state, wherein the network performance of the disaster recovery system is the communication performance between the production site and the disaster recovery site, and the disaster recovery system includes: the production site and the disaster recovery site; The adjustment module is used to adjust the operation level corresponding to the disaster recovery system to a target operation level according to the network performance, so as to control the disaster recovery system to operate according to the target operation level.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method according to any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Data transmission method and device, storage medium and electronic device
CN119728402A
