Disaster recovery method, device and system, readable storage medium and program product

By deploying a target service copy on the second GPU and automatically switching its service status according to the service status, virtual memory technology is used to implement adaptive multi-active disaster recovery, which solves the problems of high cost and idle disaster recovery resources of traditional multi-active disaster recovery, and achieves A lower-cost and more efficient disaster recovery solution.

CN118733355APending Publication Date: 2024-10-01THE FOURTH PARADIGM BEIJING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410866854.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In GPU applications, the traditional multi-active disaster recovery solution is costly, while the disaster recovery and disaster recovery solution wastes resources due to the long-term idleness of disaster recovery resources, making it difficult to find a balance between cost and efficiency.

Method used

Using virtual memory technology, by deploying a target service copy on the second GPU and automatically switching its service status according to the service status, it can quickly occupy disaster recovery resources when needed, achieve adaptive multi-active disaster recovery, and reduce the cost of traditional multi-active disaster recovery. costs while avoiding idle disaster recovery resources.

Benefits of technology

It achieves effective adaptive disaster recovery at lower hardware costs, reduces the cost of traditional multi-active disaster recovery, solves the problem of idle and wasteful disaster recovery resources, and improves the automation and efficiency of service capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733355A_ABST
    Figure CN118733355A_ABST
Patent Text Reader

Abstract

The invention provides a disaster recovery method, device and system, a readable storage medium and a program product. The disaster recovery method comprises the steps that in response to starting of a target service on a first GPU, a target service copy is deployed on a second GPU, so that the deployed target service copy is in a non-service state in which service is not provided, and the target service copy is a service copy of the target service; according to the service state of the target service, the service state of the target service copy is switched, so that if the target service is in the normal service state, the target service copy is in the non-service state, and if the target service is in the abnormal service state, the target service copy enters the service state for providing the service; wherein at least part of data of the target service copy is loaded in a virtual video memory of the second GPU during deployment, so that the occupation of the target service copy on a physical video memory of the second GPU is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to the field of computer technology, and more specifically, to a disaster recovery method, device, system, readable storage medium, and program product. Background Art

[0002] Disaster recovery refers to maintaining uninterrupted operation of the production system while minimizing data loss in the production system when natural disasters, equipment failures, human-caused damage, etc. There are generally two methods for system disaster recovery: disaster recovery and multi-active disaster recovery.

[0003] Disaster recovery and disaster tolerance: A common implementation method is to build an identical application system in a backup computer room. When a disaster occurs, it will resume operation within an agreed time frame to minimize the losses caused by the disaster. Advantages: Disaster recovery resources do not provide services at ordinary times and are switched when needed, so multiple services (here refers to services that will not suffer disasters at the same time in actual scenarios, which can be guaranteed by physical isolation, etc.) can share a set of disaster recovery resources to save costs to the greatest extent. Disadvantages: Disaster recovery resources are usually idle, resulting in idle waste of disaster recovery resources; service recovery time is long, and there is a risk of startup failure.

[0004] Multi-active disaster recovery: Multi-active means deploying multiple service replicas in different locations to provide services at the same time. As long as there is a replica that can provide services, the service will always be available without interruption. Advantages: It not only solves the problem of disaster recovery itself, but also improves business continuity and achieves capacity expansion. Disadvantages: All services that require disaster recovery must use multiple resources, which is very costly.

[0005] Due to the high cost of GPU hardware itself, the cost of using traditional multi-active solutions to achieve disaster recovery in GPU applications in the era of large models has become more expensive. On the other hand, although the use of disaster recovery and disaster recovery solutions can reduce GPU hardware costs to a certain extent, due to the characteristics of disaster recovery and disaster recovery itself, the GPU used for disaster recovery is idle for a long time, which will lead to a waste of resources. Summary of the invention

[0006] The exemplary embodiments of the present disclosure provide a disaster recovery method, apparatus, system, readable storage medium, and program product, which can effectively implement adaptive disaster recovery at a lower hardware cost.

[0007] According to an exemplary embodiment of the present disclosure, a disaster recovery method is provided, comprising: in response to starting a target service on a first GPU, deploying a target service copy on a second GPU so that the deployed target service copy is in a non-service state where no service is provided; wherein the target service copy is a service copy of the target service, the first GPU is a GPU on a server in a first server cluster for providing service resources, and the second GPU is a GPU configured with virtual video memory technology on a server in a second server cluster for providing disaster recovery resources; according to the service state of the target service, switching the service state of the target service copy so that if the target service is in a normal service state, the target service copy is in the non-service state, and if the target service is in an abnormal service state, the target service copy enters a service state where service is provided; wherein, during the deployment, at least part of the data of the target service copy is loaded into the virtual video memory of the second GPU.

[0008] Optionally, the target service is a model reasoning service.

[0009] Optionally, after the target service replica enters the service state, all data required for the target service replica to perform calculations are loaded into the physical video memory of the second GPU.

[0010] Optionally, the step of switching the service status of the target service copy according to the service status of the target service includes: switching the service status of the target service copy according to the service status of the target service and the usage status of the second GPU, wherein the usage status of the second GPU is used to indicate the current service status of all service copies on the second GPU.

[0011] Optionally, the abnormal service state includes a stop service state in which services cannot be provided normally; wherein, the step of switching the service state of the target service copy according to the service state of the target service and the usage state of the second GPU includes: if the service state of the target service enters the stop service state, determining the usage state of the second GPU; if it is determined that all service copies on the second GPU are not in the service state, switching the service state of the target service copy to a service state that provides services.

[0012] Optionally, the abnormal service state includes: a stop service state in which services cannot be provided normally and a weak service state in which service acceleration is required; the service state provided by the target service copy includes: a disaster recovery service state in which services are provided independently and an accelerated service state in which services are provided together with the target service; wherein the step of switching the service state of the target service copy according to the service state of the target service and the usage state of the second GPU includes: when the service state of the target service enters the stop service state, if all service copies on the second GPU are not in the disaster recovery service state, switching the service state of the target service copy to the disaster recovery service state; when the service state of the target service enters the weak service state, if all service copies on the second GPU are not in the disaster recovery service state and the accelerated service state, switching the service state of the target service copy to the accelerated service state.

[0013] Optionally, the disaster recovery method also includes: determining the service status of the target service; wherein the step of determining the service status of the target service includes: upon receiving a request to start an acceleration service for the target service, determining that the service status of the target service is a weak service status; and / or, upon receiving a request to start a disaster recovery service for the target service, determining that the service status of the target service is a stopped service status; and / or, upon monitoring that the number of user requests for the target service exceeds a preset number within a preset time period, determining that the service status of the target service is a weak service status; and / or, upon monitoring that the target service has not responded to requests for a preset number of consecutive times, determining that the service status of the target service is a stopped service status.

[0014] Optionally, the disaster recovery method also includes: maintaining remaining resource information of each GPU configured with virtual graphics memory technology in the second server cluster; wherein the step of deploying a target service copy on the second GPU includes: determining the second GPU from the GPUs configured with virtual graphics memory technology based on the remaining resource information and resource requirement information of the target service; and deploying the target service copy on the determined second GPU.

[0015] Optionally, the resource requirement information includes: required video memory size; wherein, the step of determining the second GPU from the GPUs configured with virtual video memory technology based on the remaining resource information and the resource requirement information of the target service includes: determining the second GPU from the GPUs that meet preset conditions among the GPUs configured with virtual video memory technology; wherein the preset conditions include: the sum of the remaining virtual video memory and the remaining physical video memory is greater than the required video memory size, and the total size of the physical video memory is greater than the required video memory size.

[0016] Optionally, the preset condition also includes: the server where the service corresponding to the service replica deployed on the GPU is located is in a different geographical location from the server where the target service is located.

[0017] Optionally, the disaster recovery method also includes: maintaining a disaster recovery resource information table, wherein the disaster recovery resource information table is used to save: identification information of each service copy on the second server cluster, service addresses of each service copy, identification information of the GPU where each service copy is located, and service status information of each service copy; wherein the usage status of the second GPU is determined based on the disaster recovery resource information table.

[0018] Optionally, the disaster recovery method also includes: selecting at least one as an available service address from the service address of the target service and the service address of the target service copy according to the service status of the target service copy; providing the available service address to the gateway so that the gateway can assign user requests for the target service to the available service address to provide services.

[0019] Optionally, the step of selecting at least one as an available service address from the service address of the target service and the service address of the target service replica according to the service status of the target service replica includes: when the service status of the target service replica is a non-service state, using the service address of the target service as the available service address; when the service status of the target service replica is an accelerated service state, using the service address of the target service and the service address of the target service replica as the available service addresses; when the service status of the target service replica is a disaster recovery service state, using the service address of the target service replica as the available service address.

[0020] Optionally, the disaster recovery method also includes: maintaining a service address information table, wherein the service address information table is used to save: identification information of each service on the first server cluster, the service address of each service, the service address of a service copy of each service, and service status information of a service copy of each service; wherein the service status of the target service copy, the service address of the target service, and the service address of the target service copy are determined based on the service address information table.

[0021] According to an exemplary embodiment of the present disclosure, a disaster recovery device is provided, comprising: a deployment unit, configured to deploy a target service copy on a second GPU in response to starting a target service on a first GPU, so that the deployed target service copy is in a non-service state where no service is provided; wherein the target service copy is a service copy of the target service, the first GPU is a GPU on a server in a first server cluster for providing service resources, and the second GPU is a GPU configured with virtual video memory technology on a server in a second server cluster for providing disaster recovery resources; a state switching unit, configured to switch the service state of the target service copy according to the service state of the target service, so that if the target service is in a normal service state, the target service copy is in the non-service state, and if the target service is in an abnormal service state, the target service copy enters a service state where service is provided; wherein, during the deployment, at least part of the data of the target service copy is loaded into the virtual video memory of the second GPU.

[0022] Optionally, the target service is a model reasoning service.

[0023] Optionally, after the target service replica enters the service state, all data required for the target service replica to perform calculations are loaded into the physical video memory of the second GPU.

[0024] Optionally, the state switching unit is configured to: switch the service state of the target service copy according to the service state of the target service and the usage state of the second GPU, wherein the usage state of the second GPU is used to indicate the current service state of all service copies on the second GPU.

[0025] Optionally, the abnormal service state includes a stop service state in which the service cannot be provided normally; wherein the state switching unit is configured to: if the service state of the target service enters the stop service state, determine the usage state of the second GPU; if it is determined that all service copies on the second GPU are not in the service state, switch the service state of the target service copy to a service state that provides service.

[0026] Optionally, the abnormal service state includes: a stop service state in which services cannot be provided normally and a weak service state in which service acceleration is required; the service state provided by the target service copy includes: a disaster recovery service state in which services are provided independently and an accelerated service state in which services are provided together with the target service; wherein the state switching unit is configured to: when the service state of the target service enters the stop service state, if all service copies on the second GPU are not in the disaster recovery service state, switch the service state of the target service copy to the disaster recovery service state; when the service state of the target service enters the weak service state, if all service copies on the second GPU are not in the disaster recovery service state and the accelerated service state, switch the service state of the target service copy to the accelerated service state.

[0027] Optionally, the disaster recovery device also includes: a status determination unit, configured to: determine the service status of the target service; wherein the status determination unit is configured to: upon receiving a request to start an acceleration service for the target service, determine that the service status of the target service is a weak service status; and / or, upon receiving a request to start a disaster recovery service for the target service, determine that the service status of the target service is a stopped service status; and / or, upon monitoring that the number of user requests for the target service exceeds a preset number within a preset time period, determine that the service status of the target service is a weak service status; and / or, upon monitoring that the target service has not responded to requests for a preset number of consecutive times, determine that the service status of the target service is a stopped service status.

[0028] Optionally, the disaster recovery device also includes: a first information maintenance unit, configured to maintain the remaining resource information of each GPU configured with virtual graphics memory technology in the second server cluster; wherein the deployment unit is configured to: determine the second GPU from the GPUs configured with virtual graphics memory technology based on the remaining resource information and the resource requirement information of the target service; and deploy the target service copy on the determined second GPU.

[0029] Optionally, the resource requirement information includes: required video memory size; wherein the deployment unit is configured to: determine the second GPU from the GPUs that meet preset conditions among the GPUs configured with virtual video memory technology; wherein the preset conditions include: the sum of the remaining virtual video memory and the remaining physical video memory is greater than the required video memory size, and the total size of the physical video memory is greater than the required video memory size.

[0030] Optionally, the preset condition also includes: the server where the service corresponding to the service replica deployed on the GPU is located is in a different geographical location from the server where the target service is located.

[0031] Optionally, the disaster recovery device also includes: a second information maintenance unit, configured to maintain a disaster recovery resource information table, wherein the disaster recovery resource information table is used to save: identification information of each service copy on the second server cluster, service addresses of each service copy, identification information of the GPU where each service copy is located, and service status information of each service copy; wherein the usage status of the second GPU is determined based on the disaster recovery resource information table.

[0032] Optionally, the disaster recovery device also includes: an available address determination unit, configured to select at least one as an available service address from the service address of the target service and the service address of the target service copy according to the service status of the target service copy; an available address providing unit, configured to provide the available service address to the gateway, so that the gateway can assign user requests for the target service to the available service address to provide services.

[0033] Optionally, the available address determination unit is configured to: when the service status of the target service copy is a non-service state, use the service address of the target service as an available service address; when the service status of the target service copy is an accelerated service state, use the service address of the target service and the service address of the target service copy as available service addresses; when the service status of the target service copy is a disaster recovery service state, use the service address of the target service copy as an available service address.

[0034] Optionally, the disaster recovery device also includes: a third information maintenance unit, configured to maintain a service address information table, wherein the service address information table is used to save: identification information of each service on the first server cluster, the service address of each service, the service address of the service copy of each service, and service status information of the service copy of each service; wherein the service status of the target service copy, the service address of the target service, and the service address of the target service copy are determined based on the service address information table.

[0035] According to an exemplary embodiment of the present disclosure, a system is provided, including at least one computing device and at least one storage device storing instructions, wherein when the instructions are executed by the at least one computing device, the at least one computing device is prompted to execute the disaster recovery method as described above.

[0036] According to an exemplary embodiment of the present disclosure, a computer-readable storage medium storing instructions is provided, wherein when the instructions are executed by at least one computing device, the at least one computing device is prompted to perform the disaster recovery method as described above.

[0037] According to an exemplary embodiment of the present disclosure, a computer program product is provided, including computer executable instructions, characterized in that when the computer executable instructions are executed by at least one processor, the disaster recovery method as described above is implemented.

[0038] According to the disaster recovery method, device, system, readable storage medium and program product of the exemplary embodiments of the present disclosure, it is possible to utilize virtual video memory technology to support multiple services to share disaster recovery resources (including GPU and its physical video memory), and effectively realize adaptive disaster recovery at a lower hardware cost. When a service needs to start capacity expansion or disaster recovery, it can automatically enable the service to occupy shared disaster recovery resources to ensure service capabilities, and realize adaptive multi-active disaster recovery by using resources close to disaster recovery, thereby reducing the cost of traditional multi-active disaster recovery while solving the problem of idle and wasted disaster recovery resources.

[0039] Additional aspects and / or advantages of the present general inventive concept will be set forth in part in the following description and in part will be apparent from the description or may be learned through practice of the present general inventive concept. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] The above and other objects and features of the exemplary embodiments of the present disclosure will become more apparent through the following description in conjunction with the accompanying drawings which exemplarily illustrate the embodiments, in which:

[0041] Figure 1 A flow chart showing a disaster recovery method according to an exemplary embodiment of the present disclosure;

[0042] Figure 2 A flowchart showing a method for providing an available service address according to an exemplary embodiment of the present disclosure;

[0043] Figure 3 An example of an adaptive coordinator and a disaster recovery resource manager according to an exemplary embodiment of the present disclosure is shown;

[0044] Figure 4 An example of deploying a service replica according to an exemplary embodiment of the present disclosure is shown;

[0045] Figure 5 An example of switching to an accelerated service state according to an exemplary embodiment of the present disclosure is shown;

[0046] Figure 6 An example of switching to a disaster recovery service state according to an exemplary embodiment of the present disclosure is shown;

[0047] Figure 7 A structural block diagram of a disaster recovery device according to an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0048] Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like parts throughout. The embodiments will be described below with reference to the drawings in order to explain the present disclosure.

[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0050] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0051] The present disclosure relates to the field of virtual memory technology and application disaster recovery, and may involve large model application products (including private deployment and cloud forms). It proposes a method for using virtual memory technology to achieve adaptive disaster recovery of inference services at a lower hardware cost (fewer GPUs, and inference services (e.g., large model inference services) require expensive GPU computing power) without wasting resources.

[0052] Key Terms:

[0053] GPU: Graphics Processing Unit, in Chinese, is the core component of the graphics card but is not equivalent to the graphics card. It has a multi-core high-performance architecture, designed for large-scale parallel processing of complex and data-intensive computing tasks, and is widely used in many fields such as games, scientific computing, artificial intelligence, virtual reality, and deep learning. It is an indispensable hardware for the implementation of large-scale model applications today.

[0054] Virtual video memory technology: GPUs are used in combination with video memory (GPU memory, DDR6 / HBM2, etc.) that is faster but more expensive than traditional memory (DDR4 / 5memory used by CPU) to form a graphics card (which can be plugged into the server motherboard), and the video memory itself does not have the scalability of traditional memory (the video memory capacity (that is, the total amount of video memory) on a graphics card cannot be changed). In the context of large-scale applications with increasingly higher requirements for video memory capacity, virtual video memory technology has been proposed to use the larger traditional memory (memory used by CPU) in a server equipped with GPU as an extension of the video memory, so that the graphics card appears to have a larger video memory than the physical video memory, so it is called virtual video memory.

[0055] The present disclosure takes into account that due to the high cost of GPU hardware itself, the cost of using traditional multi-active solutions to achieve disaster recovery in GPU applications in the era of large models has become more expensive. On the other hand, although the use of disaster recovery and disaster recovery solutions can reduce the cost of GPU hardware to a certain extent, due to the characteristics of disaster recovery and disaster recovery itself, the GPU used for disaster recovery is idle for a long time, which will lead to more serious waste of resources.

[0056] In order to solve the above problems, the present disclosure proposes a method for realizing low-cost adaptive disaster recovery of inference services through virtual memory technology. Specifically, virtual memory technology can be used to allow multiple inference services to share disaster recovery resources and maintain a minimum level of serviceability, and when a certain inference service needs to be expanded (i.e. accelerated) or disaster recovery is started, the service can automatically occupy disaster recovery resources in the fastest way to ensure service capability. This new disaster recovery solution can use resources similar to disaster recovery to realize adaptive multi-active disaster recovery for inference services, which can reduce the cost of traditional multi-active disaster recovery while solving the problem of idle and wasted disaster recovery resources. The following will combine Figures 1 to 7 Provide detailed explanation.

[0057] Figure 1 A flow chart of a disaster recovery method according to an exemplary embodiment of the present disclosure is shown.

[0058] Reference Figure 1 In step S101, in response to starting a target service on a first GPU, a target service copy is deployed on a second GPU so that the deployed target service copy is in a non-service state where no service is provided.

[0059] The target service replica is a service replica of the target service. As an exemplary embodiment, the target service may be a model reasoning service, and it should be understood that it may also be other types of services, which is not limited by the present disclosure.

[0060] The first GPU is a GPU on a server in a first server cluster for providing service resources. Figure 3As shown, all servers at location A and location B constitute the first server cluster.

[0061] The second GPU is a GPU configured with virtual video memory technology on a server in a second server cluster for providing disaster recovery resources. Figure 3 As shown, all servers at location C constitute the second server cluster, and the GPU configured with virtual graphics memory technology in the disaster recovery resources is also called vGPU.

[0062] As an exemplary embodiment, the vGPU includes physical video memory and system memory as an extension of the physical video memory. For example, a vGPU with 48GB of video memory is virtualized for 24GB of physical video memory. The vGPU includes 24GB of physical video memory and 24GB of system memory. Of course, two or more vGPUs with smaller capacities can also be virtualized. In this disclosure, for ease of understanding, the system memory as an extension of the video memory is referred to as virtual video memory, that is, the vGPU includes virtual video memory and physical video memory.

[0063] As an exemplary embodiment, step S101 may include: in response to starting, for example, cold starting, a target service copy on a second GPU for the first time on a first GPU.

[0064] In step S102, the service state of the target service copy is switched according to the service state of the target service, so that if the target service is in a normal service state, the target service copy is in a non-service state where no service is provided; if the target service is in an abnormal service state, the target service copy enters a service state where service is provided.

[0065] As an exemplary embodiment, at least part of the data of the target service replica is loaded into the virtual video memory of the second GPU during deployment to reduce the occupation of the physical video memory of the second GPU by the target service replica, so that the physical video memory of the second GPU can also load data of other service replicas.

[0066] As an exemplary embodiment, after the target service replica enters the service state, all data required for the target service replica to perform calculations are loaded into the physical video memory of the second GPU, thereby ensuring the calculation speed.

[0067] It should be understood that multiple inference services can share one GPU hardware in the disaster recovery resources, that is, service copies of multiple inference services can be deployed on the same vGPU. For example, in addition to the target service copy, service copies of other services can also be deployed on the second GPU. As an exemplary embodiment, during the process of loading the model when the target service copy is first started (cold start) on the second GPU, the most important model weights will be loaded into the physical video memory of the second GPU, and other data of the target service copy can be stored in the virtual video memory of the second GPU. This process may also remove the data stored in the physical video memory of other service copies that have completed the cold start on the second GPU due to insufficient physical video memory, and transfer them to the virtual video memory through the elimination strategy of the virtual video memory. After the target service copy has completed the cold start (i.e., after the deployment of the target service copy is completed), the data required for the target service copy reasoning will be loaded into the physical video memory (hot start) only when a real reasoning request (user request for the target service) is received. This process may also cause the data stored in the physical video memory of other service copies on the second GPU to be moved out of the physical video memory and transferred to the virtual video memory through the elimination strategy of the virtual video memory due to insufficient physical video memory. Therefore, the present disclosure utilizes virtual video memory technology to enable multiple large model reasoning service copies to share disaster recovery resources, and can automatically switch the service status of the target service copy according to the service status of the target service. Specifically, the adaptive and rapid switching of the service status of the disaster recovery resources of the large model reasoning service can be achieved by controlling the destination of the reasoning request (i.e., providing an available service address).

[0068] As an example, the virtual video memory of the second GPU can be implemented by the memory of the server where the second GPU is located. Specifically, according to actual conditions and specific needs, a portion of the memory of the server (for example, twice the physical video memory capacity of the second GPU) can be allocated to the second GPU for implementing its virtual video memory. That is, the second GPU is configured with a virtual video memory that is twice the physical video memory capacity.

[0069] As an exemplary embodiment, regarding virtual video memory technology, data can be loaded into the video memory only when it needs to be calculated by the GPU. When the remaining free video memory is insufficient, the data that is temporarily not used for calculation in the video memory can be automatically replaced and stored in the internal memory through a preset elimination strategy (such as LRU, which means elimination of the most recently unused data first), thereby releasing sufficient free video memory for loading new data.

[0070] As an exemplary embodiment, the type of service status of the target service replica may include but is not limited to at least one of the following items: a paused service status (i.e., a paused state, Hold), an accelerated service status (i.e., an accelerated state or an expanded state, Boost), a disaster recovery service status (i.e., a disaster recovery state, Backup), and a loaded completion status (i.e., Loaded) indicating that the deployment of the target service replica is complete.

[0071] In the suspended service state, the target service replica suspends service.

[0072] In the accelerated service state, the target service replica and the target service jointly provide services.

[0073] In the disaster recovery service state, the target service replica provides services, and the target service does not provide services.

[0074] That is, the service status of the target service replica providing services may include: a disaster recovery service status that provides services independently and / or an accelerated service status that provides services together with the target service. The non-service status of the target service replica not providing services may include: a loading completion status and / or a suspended service status. For example, the initial status of the deployed target service replica may be Loaded.

[0075] As an exemplary embodiment, the abnormal service state of the target service may include at least one of the following items: a weak service state requiring service acceleration; and a stopped service state in which the service cannot be provided normally.

[0076] As an exemplary embodiment, step S102 may include: switching the service state of the target service copy according to the service state of the target service and the usage state of the second GPU.

[0077] The usage status of the second GPU is used to indicate the current service status of all service replicas on the second GPU. As an exemplary embodiment, the type of the usage status of the second GPU may include but is not limited to: all service replicas on the second GPU are not in the disaster recovery service state; all service replicas on the second GPU are not in the disaster recovery service state and the accelerated service state. It should be understood that other types of usage status may also be included, for example, any service replica on the second GPU is in the disaster recovery service state or the accelerated service state.

[0078] As an exemplary embodiment, when the abnormal service state includes a stopped service state in which the service cannot be provided normally, step S102 may include: if the service state of the target service enters a stopped service state, determining the usage state of the second GPU; if it is determined that all service copies on the second GPU are not in a service state, switching the service state of the target service copy to a service state in which the service is provided.

[0079] As an exemplary embodiment, when the abnormal service status includes: a stopped service status in which services cannot be provided normally and a weak service status in which service acceleration is required; and the service status provided by the target service replica includes: a disaster recovery service status in which services are provided independently and an accelerated service status in which services are provided together with the target service, step S102 may include: when the service status of the target service enters a stopped service state, if all service replicas on the second GPU are not in a disaster recovery service state, the service status of the target service replica is switched to a disaster recovery service state, so that the target service replica can temporarily replace the interrupted target service when a disaster occurs; when the service status of the target service enters a weak service state, if all service replicas on the second GPU are not in a disaster recovery service state and an accelerated service state, the service status of the target service replica is switched to an accelerated service state to expand the capacity of the target service.

[0080] In addition, as an exemplary embodiment, the disaster recovery method according to the exemplary embodiment of the present disclosure may further include: determining the service status of the target service. As an exemplary embodiment, the step of determining the service status of the target service may include: in the case of receiving a request to start an acceleration service for the target service, determining that the service status of the target service is a weak service state; and / or, in the case of receiving a request to start a disaster recovery service for the target service, determining that the service status of the target service is a stop service state; and / or, in the case of monitoring that the user request of the target service exceeds a preset number within a preset time, determining that the service status of the target service is a weak service state; and / or, in the case of monitoring that the target service has not responded to a request (for example, a test request or a user request) for a preset number of consecutive times, determining that the service status of the target service is a stop service state. It should be understood that the service status of the target service can also be automatically monitored in other appropriate ways. According to the present disclosure, starting service expansion and starting service disaster recovery can be automatically executed without human intervention.

[0081] In addition, as an exemplary embodiment, the disaster recovery method according to the exemplary embodiment of the present disclosure may further include: maintaining remaining resource information of each GPU configured with virtual graphics memory technology in the second server cluster.

[0082] As an exemplary embodiment, the step of deploying a target service replica on a second GPU may include: determining a second GPU suitable for disaster recovery for the target service from among the GPUs configured with virtual video memory technology based on the remaining resource information and resource requirement information of the target service; and deploying the target service replica on the determined second GPU.

[0083] As an exemplary embodiment, the resource requirement information may include: required video memory size.

[0084] As an exemplary embodiment, the second GPU may be determined from GPUs that meet a preset condition among the GPUs configured with the virtual video memory technology.

[0085] As an example, the preset condition may include: the sum of the remaining virtual video memory and the remaining physical video memory is greater than the required video memory size, and may also include that the total size of the physical video memory is greater than the required video memory size. Further, as an example, the preset condition may also include: the server where the service corresponding to the service replica deployed on the vGPU is located is different from the geographical location of the server where the target service is located. Figure 4 , the replicas of service X deployed on the service resource at location A and service W deployed on the service resource at location B can be placed on the same vGPU, but the replicas of service X and service Y deployed on the service resource at location A will not be placed on the same vGPU. This is because only one model may run on the vGPU at the same time (that is, only one service replica may be able to provide services normally). If two services from the service resources at the same location cannot provide services due to power outage, one of the services will not be able to perform disaster recovery normally.

[0086] In addition, the resource demand information may also include: the required computing power size, etc. Correspondingly, the preset conditions may also include: the total computing power size of the vGPU is greater than the required computing power size, etc.

[0087] In addition, as an exemplary embodiment, the disaster recovery method according to the exemplary embodiment of the present disclosure may further include: step S103, maintaining a disaster recovery resource information table.

[0088] The disaster recovery resource information table is used to store: identification information of each service replica on the second server cluster, service address of each service replica (i.e., disaster recovery address), identification information of the GPU (i.e., vGPU) where each service replica is located, and service status information of each service replica. As an example, the usage status of the second GPU is determined based on the disaster recovery resource information table.

[0089] Reference Figure 4 As an example, the identification information of any service and its service replica may be the same, such as the name of the model that can be used by both.

[0090] In addition, as an exemplary embodiment, the disaster recovery method according to the exemplary embodiment of the present disclosure may further include: a method for providing an available service address, Figure 2 A flowchart of a method for providing an available service address according to an exemplary embodiment of the present disclosure is shown.

[0091] Reference Figure 2In step S201, at least one is selected from the service address of the target service and the service address of the target service copy as an available service address according to the service status of the target service copy.

[0092] As an example, when the service status of the target service replica is a non-service state, the service address of the target service is used as an available service address; when the service status of the target service replica is an accelerated service state, the service address of the target service and the service address of the target service replica are used as available service addresses; when the service status of the target service replica is a disaster recovery service state, the service address of the target service replica is used as an available service address.

[0093] In step S202, the available service address is provided to the gateway, so that the gateway can assign the user request for the target service to the available service address to provide the service. It should be understood that the user request will only be assigned to the available service address.

[0094] In addition, as an exemplary embodiment, the disaster recovery method according to the exemplary embodiment of the present disclosure may further include: step S203, maintaining a service address information table.

[0095] The service address information table is used to store: identification information of each service on the first server cluster, service addresses of each service, service addresses of service replicas of each service, and service status information of service replicas of each service. As an example, the service status of a target service replica, the service address of a target service, and the service address of a target service replica can be determined based on the service address information table.

[0096] As an exemplary embodiment, in addition to the gateway, an adaptive coordinator and a disaster recovery resource manager may be arranged in the service network. The adaptive coordinator and the disaster recovery resource manager may be arranged on the same physical device or on different physical devices.

[0097] Among them, steps S101 to S103 can be performed by the disaster recovery resource manager or the adaptive coordinator. In response to the start of the target service, the adaptive coordinator can receive a notification of service start-up, and deploy the target service copy on the second GPU by itself or instruct other devices (such as the disaster recovery resource manager). When the service state of the target service changes, the adaptive coordinator can monitor the service state, and can also receive a notification of the service state change, and switch the service state of the target service copy on the second GPU by itself or instructing other devices (such as the disaster recovery resource manager).

[0098] Similarly, in response to the startup of the target service, the disaster recovery resource manager can deploy the target service replica on the second GPU when receiving an indication to start the service replica, and can switch the service status of the target service replica on the second GPU personally or instruct other devices to switch the service status of the target service replica on the second GPU when receiving an indication that the service status of the replica needs to be switched due to a change in the service status of the target service.

[0099] In addition, steps S201 to S203 may be executed by an adaptive coordinator, and the adaptive coordinator provides an available service address to the gateway to ensure smooth service.

[0100] Figure 3 An example of an adaptive coordinator and a disaster recovery resource manager according to an exemplary embodiment of the present disclosure is shown. Service resources: resources provided by GPU servers (i.e., servers with GPUs) at sites A and B, and disaster recovery resources: resources provided by vGPU servers at site C.

[0101] On the one hand, in order to maximize the success rate of disaster recovery, the selection of locations ABC needs to consider that the probability of disasters occurring in all three locations at the same time is low enough.

[0102] On the other hand, the vGPU in the disaster recovery resource refers to a GPU with virtual video memory technology. For the convenience of description, for example, assume that a vGPU is configured with virtual video memory that is twice the size of the physical video memory, that is, if a large model inference service can use a GPU in the service resources (which is the same as the total size of the physical video memory of the vGPU) for inference service, depending on the size of the physical video memory required by the large model inference service (related to the number of large model parameters), then the vGPU can deploy 2 or more such large model inference services. Exemplarily, if the large model inference service requires a maximum of 90% of the physical video memory, then a maximum of 3 such large model inference services can be deployed on the vGPU, and an inference request for a large model inference service can be processed at any time.

[0103] The gateway has the following functions: receiving the user's large model reasoning service request (i.e., user request); communicating with the adaptive coordinator to query the appropriate resources (i.e., the address of the service or service replica, such as IP) to forward the large model reasoning service request; forwarding the large model reasoning service request to the service or service replica, and returning the result to the user.

[0104] The adaptive coordinator has the following functions: maintain the status information of the service resources and disaster recovery resources of the service; receive query requests from the gateway and return the appropriate service address based on the status information of the service resources and disaster recovery resources; process requests to start capacity expansion services; process requests to start disaster recovery services.

[0105] The disaster recovery resource manager has the following functions: maintain the status information of disaster recovery resources (especially the usage status of vGPU); accept requests from the adaptive coordinator (starting expansion services, starting disaster recovery services), and return results and required information; communicate with disaster recovery resources to complete the deployment of disaster recovery service replicas.

[0106] Figure 4 An example of deploying a service replica according to an exemplary embodiment of the present disclosure is shown.

[0107] like Figure 4 As shown in the figure, the deployment of four model inference services XYWZ on the disaster recovery resource vGPU is completed. After the inference service on a model is started, this information can be synchronized to the adaptive coordinator.

[0108] The adaptive coordinator maintains a table (ie, service address information table) including four fields: model information (ie, model reasoning service information), GPU service address, vGPU disaster recovery address, and status.

[0109] After receiving the information that a large model has completed the loading of service resources (including model information and GPU service address, for example: model X is loaded on server A: port 8001), the adaptive coordinator starts preparing for the next step and sends a request to the disaster recovery resource manager to load the model from the disaster recovery resource (the request includes model information and GPU service address, for example: model X is loaded on server A: port 8001).

[0110] After receiving the request sent by the adaptive coordinator, the disaster recovery resource manager selects a suitable vGPU according to the current resource status and initiates a model loading request to the disaster recovery resource.

[0111] The disaster recovery resource manager maintains a table including four fields [vGPU disaster recovery address, vGPU ID, model information, status] (i.e., disaster recovery resource information table). After receiving a disaster recovery resource loading request for a large model, it selects a suitable vGPU to initiate the model disaster recovery resource loading request based on the model information, the identifier of the service resource, and the current vGPU usage, and proceeds to the next step. After the disaster recovery resource completes the model loading on the appropriate vGPU as required, it returns a success message with the vGPU disaster recovery address and vGPU ID attached (e.g., for model X loaded on server A:8001, the vGPU disaster recovery address is C:8101, and vGPU-0 is used).

[0112] The disaster recovery resource manager updates the entry in the disaster recovery resource information table (e.g., [C:8101, 0, X, Loaded], indicating that model X (i.e., the model X inference service replica) has been successfully loaded into vGPU-0 at the vGPU disaster recovery address C:8101), and returns the vGPU disaster recovery address (e.g., C:8101) to the adaptive coordinator.

[0113] The adaptive coordinator receives the success information and vGPU disaster recovery address (e.g., C:8101) returned by the disaster recovery resource manager and completes the information update (e.g., [X, A:8001, C:8101, Loaded]).

[0114] Figure 5 An example is shown in which a service replica switches to an accelerated service state according to an exemplary embodiment of the present disclosure.

[0115] like Figure 5 As shown, it represents the system status after completing the startup service expansion request of two models X and Z.

[0116] A request for capacity expansion service is initiated to the adaptive coordinator, and the GPU service address and model information are provided (for example, to expand the model X inference service on GPU server A:8001). The adaptive coordinator sends a request to the disaster recovery resource manager for disaster recovery resource acceleration model inference service (the request includes model information and GPU service address, for example, to accelerate the inference service of model X on GPU server A:8001).

[0117] First of all, it should be noted that for the sake of service stability, in this embodiment, a vGPU only provides disaster recovery / acceleration services for one inference service at the same time.

[0118] After receiving the request from the adaptive coordinator, the disaster recovery resource manager determines whether the acceleration request can be completed based on the current resource status (query vGPU status). There are two situations:

[0119] If the vGPU where the model requested for acceleration is located does not have any model inference service in the disaster recovery service state or the acceleration service state, the acceleration request succeeds; otherwise, the acceleration request fails.

[0120] Depending on whether the acceleration request is successful, there are two situations: if successful, the disaster recovery resource information table is updated, the model entry for which acceleration is requested is set to Boost (for example: [C:8101, 0, X, Boost], and all other model entries on this vGPU are set to Hold (for example: [C:8103, 0, W, Hold]), and a successful request is returned to the adaptive coordinator, with the model information set to Hold (for example: W); if failed, the disaster recovery resource information table is not modified, and a request failure is returned to the adaptive coordinator.

[0121] The adaptive coordinator receives the response from the disaster recovery resource manager. Depending on whether the acceleration request is successful, there are two situations: if successful, the service address information table is updated, the entry of the expansion model is set to Boost (for example: [X, A:8001, C:8101, Boost]), and the model entry attached to the response is set to Hold (for example: [W, B:8001, C:8103, Hold]), and the expansion model reasoning service request is returned to be successful; if failed, the service address information table is not modified, and the expansion model reasoning service request is returned to be failed.

[0122] Figure 6 An example is shown in which a service replica switches to a disaster recovery service state according to an exemplary embodiment of the present disclosure.

[0123] like Figure 6 As shown, it indicates the system status after a disaster occurs on GPU server A and two models X and Y start serving disaster recovery requests.

[0124] Initiate a request to the adaptive coordinator to start service disaster recovery, provide the GPU service address and model information (for example: start disaster recovery of model X on GPU service address A:8001).

[0125] The adaptive coordinator sends a request to the disaster recovery resource manager to start the disaster recovery service of the model (the request includes model information and GPU service address, for example: start the disaster recovery service of model X on GPU service address A:8001).

[0126] After receiving the request from the adaptive coordinator, the disaster recovery resource manager determines whether the disaster recovery request can be completed based on the current resource status (query vGPU status). There are two situations:

[0127] If there is no model inference service in the disaster recovery service state in the vGPU where the model requested for acceleration is located, the disaster recovery request is successful;

[0128] Otherwise, the disaster recovery request fails. The probability of this happening is the disaster recovery startup failure rate. Early resource planning should try to avoid this situation as much as possible.

[0129] Depending on whether the disaster recovery request is successful, there are two situations: if successful, the disaster recovery resource information table is updated, the model entry for the disaster recovery request is set to Backup (for example: [C:8101, 0, X, Backup], and all other model entries on this vGPU are set to Hold (for example: [C:8103, 0, W, Hold]), and the request success is returned to the adaptive coordinator, and the model information set to Hold (for example: W) is attached; if failed, the disaster recovery resource information table is not modified, and the request failure is returned to the adaptive coordinator. The probability of this situation occurring is the disaster recovery startup failure rate. Early resource planning should avoid this situation as much as possible.

[0130] After receiving the response from the disaster recovery resource manager, there are two situations depending on whether the disaster recovery request is successful: if successful, the service address information table is updated, the entry of the disaster recovery model is set to Backup (for example: [X, A:8001, C:8101, Backup]), and the model entry attached to the response is set to Hold (for example: [W, B:8001, C:8103, Hold]), and a response is returned indicating that the expansion model inference service request is successful; if failed, the service address information table is not modified, and a response indicating that the disaster recovery model inference service request is failed. The probability of this happening is the disaster recovery startup failure rate, and early resource planning should try to avoid this situation.

[0131] Regarding the gateway cooperating with the adaptive coordinator to process the large model reasoning service request, the following exemplary embodiments are described:

[0132] After receiving the user request, the gateway requests the available service address from the adaptive coordinator; the adaptive coordinator returns the available address to the gateway according to the provided model information (for example, model X) and the status of the corresponding model in the service address information table as follows:

[0133] Status Loaded and Hold: Returns the GPU service address (e.g.: Figure 4 Model X in will return A:8001);

[0134] Status Boosted: Returns the GPU service address or vGPU disaster recovery address in a "configurable ratio allocation" (e.g.: Figure 5 For model X in the example, with a configuration of 7:3, there is a 70% probability of returning to the GPU service address A:8001 and a 30% probability of returning to the vGPU disaster recovery address C:8101);

[0135] Status Backup: Returns the vGPU disaster recovery address (for example: Figure 6 Model X in will return C:8101).

[0136] The gateway receives the available service address, directly forwards the inference service request to the service resource or disaster recovery resource, and returns the inference request result to the user.

[0137] The above embodiment mentioned that when the gateway cooperates with the adaptive coordinator to process the large model reasoning service request, it needs to request the adaptive coordinator for the available service address. In the actual scenario, it can also be implemented in the following way: set up a cache in the gateway to save the recently available service address, and only query and update the adaptive coordinator regularly or when it is detected that the forwarded user request cannot be answered. This can greatly reduce the data exchange between the gateway and the adaptive coordinator, and optimize the user request service delay of the entire system.

[0138] Figure 7 A structural block diagram of a disaster recovery device according to an exemplary embodiment of the present disclosure is shown.

[0139] like Figure 7 As shown, the disaster recovery device according to the exemplary embodiment of the present disclosure includes: a deployment unit 101 and a state switching unit 102 .

[0140] Specifically, the deployment unit 101 is configured to deploy a target service copy on a second GPU in response to starting a target service on a first GPU, so that the deployed target service copy is in a non-service state where no service is provided; wherein the target service copy is a service copy of the target service, the first GPU is a GPU on a server in a first server cluster for providing service resources, and the second GPU is a GPU configured with virtual graphics memory technology on a server in a second server cluster for providing disaster recovery resources.

[0141] The state switching unit 102 is configured to switch the service state of the target service copy according to the service state of the target service, so that if the target service is in a normal service state, the target service copy is in the non-service state; if the target service is in an abnormal service state, the target service copy enters a service state of providing service.

[0142] During the deployment, at least part of the data of the target service copy is loaded into the virtual video memory of the second GPU to reduce the occupation of the physical video memory of the second GPU by the target service copy.

[0143] As an exemplary embodiment, the target service may be a model reasoning service.

[0144] As an exemplary embodiment, after the target service replica enters the service state, all data required for the target service replica to perform calculations are loaded into the physical video memory of the second GPU.

[0145] As an exemplary embodiment, the state switching unit 102 can be configured to: switch the service state of the target service copy according to the service state of the target service and the usage state of the second GPU, wherein the usage state of the second GPU is used to indicate the current service state of all service copies on the second GPU.

[0146] As an exemplary embodiment, the abnormal service state includes a stop service state in which the service cannot be provided normally; wherein the state switching unit 102 can be configured to: if the service state of the target service enters the stop service state, determine the usage state of the second GPU; if it is determined that all service copies on the second GPU are not in the service state, switch the service state of the target service copy to a service state that provides service.

[0147] As an exemplary embodiment, the abnormal service state includes: a stop service state in which services cannot be provided normally and a weak service state in which service acceleration is required; the service state provided by the target service copy includes: a disaster recovery service state in which services are provided independently and an accelerated service state in which services are provided together with the target service; wherein the state switching unit 102 can be configured to: when the service state of the target service enters the stop service state, if all service copies on the second GPU are not in the disaster recovery service state, switch the service state of the target service copy to the disaster recovery service state; when the service state of the target service enters the weak service state, if all service copies on the second GPU are not in the disaster recovery service state and the accelerated service state, switch the service state of the target service copy to the accelerated service state.

[0148] As an exemplary embodiment, the disaster recovery device may also include: a status determination unit (not shown), the status determination unit is configured to: determine the service status of the target service; wherein the status determination unit is configured to: upon receiving a request to start an acceleration service for the target service, determine that the service status of the target service is a weak service status; and / or, upon receiving a request to start a disaster recovery service for the target service, determine that the service status of the target service is a stopped service status; and / or, upon monitoring that the number of user requests for the target service exceeds a preset number within a preset time period, determine that the service status of the target service is a weak service status; and / or, upon monitoring that the target service has not responded to requests for a preset number of consecutive times, determine that the service status of the target service is a stopped service status.

[0149] As an exemplary embodiment, the disaster recovery device may also include: a first information maintenance unit (not shown), the first information maintenance unit is configured to maintain the remaining resource information of each GPU configured with virtual graphics memory technology in the second server cluster; wherein the deployment unit 101 may be configured to: determine the second GPU from the GPUs configured with virtual graphics memory technology based on the remaining resource information and the resource demand information of the target service; and deploy the target service copy on the determined second GPU.

[0150] As an exemplary embodiment, the resource requirement information includes: a required video memory size; wherein the deployment unit 101 can be configured to: determine the second GPU from the GPUs that meet preset conditions among the GPUs configured with virtual video memory technology; wherein the preset conditions include: the sum of the remaining virtual video memory and the remaining physical video memory is greater than the required video memory size, and the total size of the physical video memory is greater than the required video memory size.

[0151] As an exemplary embodiment, the preset condition may further include: the server where the service corresponding to the service replica deployed on the GPU is located is in a different geographical location from the server where the target service is located.

[0152] As an exemplary embodiment, the disaster recovery device may also include: a second information maintenance unit (not shown), the second information maintenance unit is configured to maintain a disaster recovery resource information table, the disaster recovery resource information table is used to save: identification information of each service copy on the second server cluster, the service address of each service copy, identification information of the GPU where each service copy is located, and service status information of each service copy; wherein the usage status of the second GPU is determined based on the disaster recovery resource information table.

[0153] As an exemplary embodiment, the disaster recovery device may also include: an available address determination unit (not shown) and an available address providing unit (not shown), the available address determination unit being configured to select at least one as an available service address from the service address of the target service and the service address of the target service replica according to the service status of the target service replica; the available address providing unit being configured to provide the available service address to the gateway so that the gateway can assign user requests for the target service to the available service address to provide services.

[0154] As an exemplary embodiment, the available address determination unit may be configured to: when the service status of the target service replica is a non-service state, use the service address of the target service as an available service address; when the service status of the target service replica is an accelerated service state, use the service address of the target service and the service address of the target service replica as available service addresses; when the service status of the target service replica is a disaster recovery service state, use the service address of the target service replica as an available service address.

[0155] As an exemplary embodiment, the disaster recovery device may also include: a third information maintenance unit (not shown), the third information maintenance unit is configured to maintain a service address information table, the service address information table is used to save: identification information of each service on the first server cluster, the service address of each service, the service address of the service copy of each service, service status information of the service copy of each service; wherein the service status of the target service copy, the service address of the target service and the service address of the target service copy are determined based on the service address information table.

[0156] The units included in the apparatus according to the exemplary embodiments of the present disclosure may be respectively configured as software, hardware, firmware or any combination of the above items to perform specific functions. For example, these units may correspond to a dedicated integrated circuit, or may correspond to pure software code, or may correspond to a module combining software and hardware. In addition, one or more functions implemented by these units may also be uniformly executed by components in a physical entity device (e.g., a processor, a client or a server, etc.). For example, the deployment unit 101 and the state switching unit 102 may be implemented as the disaster recovery resource manager mentioned above, and the available address determination unit and the available address providing unit may be implemented as the adaptive coordinator mentioned above.

[0157] It should be understood that the disaster recovery method according to the exemplary embodiment of the present disclosure can be implemented by a program recorded on a computer-readable medium. For example, according to the exemplary embodiment of the present disclosure, a computer-readable medium can be provided, wherein the computer-readable medium records a program for executing the disaster recovery method as described in the above exemplary embodiment.

[0158] The computer program in the computer-readable medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. It should be noted that the computer program can also be used to perform additional steps in addition to the above steps or perform more specific processing when performing the above steps. The contents of these additional steps and further processing have been referred to in Figures 1 to 6 The description has been made, and will not be repeated here to avoid repetition.

[0159] It should be noted that the disaster recovery device according to the exemplary embodiment of the present disclosure can completely rely on the operation of the computer program to realize the corresponding functions, that is, each unit corresponds to each step in the functional architecture of the computer program, so that the entire system is called through a special software package (for example, lib library) to realize the corresponding function.

[0160] On the other hand, the various units included in the disaster recovery device according to the exemplary embodiment of the present disclosure may also be implemented by hardware, software, firmware, middleware, microcode or any combination thereof. When implemented by software, firmware, middleware or microcode, the program code or code segment for performing the corresponding operation may be stored in a computer-readable medium such as a storage medium, so that the processor can perform the corresponding operation by reading and running the corresponding program code or code segment.

[0161] For example, an exemplary embodiment of the present disclosure may also be implemented as a computing device, which includes a storage component and a processor, wherein a set of computer executable instructions is stored in the storage component, and when the set of computer executable instructions is executed by the processor, the disaster recovery method described in the above exemplary embodiment is executed.

[0162] Specifically, the computing device may be deployed in a server or client, or may be deployed on a node device in a distributed network environment. In addition, the computing device may be a PC, a tablet device, a personal digital assistant, a smart phone, a web application, or other device capable of executing the above instruction set.

[0163] Here, the computing device is not necessarily a single computing device, but may be any device or circuit collection that can execute the above instructions (or instruction sets) individually or jointly. The computing device may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that is interconnected with a local or remote (e.g., via wireless transmission) interface.

[0164] In the computing device, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. By way of example and not limitation, the processor may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.

[0165] According to the exemplary embodiment of the present disclosure, some operations described in the disaster recovery method can be implemented by software, some operations can be implemented by hardware, and in addition, these operations can also be implemented by a combination of software and hardware.

[0166] The processor may execute instructions or codes stored in one of the storage components, which may also store data. Instructions and data may also be sent and received over a network via a network interface device, which may employ any known transmission protocol.

[0167] The storage component may be integrated with the processor, for example, RAM or flash memory is arranged within an integrated circuit microprocessor, etc. In addition, the storage component may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The storage component and the processor may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor can read files stored in the storage component.

[0168] In addition, the computing device may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the computing device may be connected to each other via a bus and / or a network.

[0169] The operations involved in the disaster recovery method according to the exemplary embodiment of the present disclosure can be described as various interconnected or coupled functional blocks or functional diagrams. However, these functional blocks or functional diagrams can be equally integrated into a single logical device or operate according to non-exact boundaries.

[0170] For example, as described above, a computing device according to an exemplary embodiment of the present disclosure may include a storage component and a processor, wherein a set of computer executable instructions is stored in the storage component, and when the set of computer executable instructions is executed by the processor, the disaster recovery method described in the above exemplary embodiment is executed.

[0171] The above describes various exemplary embodiments of the present disclosure, and it should be understood that the above description is only exemplary and not exhaustive, and the present disclosure is not limited to the disclosed exemplary embodiments. Without departing from the scope and spirit of the present disclosure, many modifications and changes are obvious to those of ordinary skill in the art. Therefore, the scope of protection of the present disclosure should be based on the scope of the claims.

Claims

1. A disaster recovery method, characterized in that: include: In response to starting a target service on a first GPU, deploying a target service replica on a second GPU so that the deployed target service replica is in a non-service state where no service is provided; wherein the target service replica is a service replica of the target service, the first GPU is a GPU on a server in a first server cluster for providing service resources, and the second GPU is a GPU configured with virtual video memory technology on a server in a second server cluster for providing disaster recovery resources; According to the service state of the target service, switch the service state of the target service copy so that if the target service is in a normal service state, the target service copy is in the non-service state, and if the target service is in an abnormal service state, the target service copy enters a service state providing service; During the deployment, at least part of the data of the target service copy is loaded into the virtual video memory of the second GPU.

2. The disaster recovery method according to claim 1, characterized in that: After the target service replica enters the service state, all data required for the target service replica to perform calculations are loaded into the physical video memory of the second GPU.

3. The disaster recovery method according to any one of claims 1 to 2, characterized in that: The step of switching the service state of the target service copy according to the service state of the target service comprises: The service state of the target service replica is switched according to the service state of the target service and the usage state of the second GPU, wherein the usage state of the second GPU is used to indicate the current service state of all service replicas on the second GPU.

4. The disaster recovery method according to claim 3, characterized in that: The abnormal service state includes a service stop state where normal service cannot be provided; The step of switching the service state of the target service copy according to the service state of the target service and the usage state of the second GPU includes: If the service state of the target service enters the out-of-service state, determining the use state of the second GPU; If it is determined that all service replicas on the second GPU are not in the service state, the service state of the target service replica is switched to a service state of providing service.

5. The disaster recovery method according to claim 3, characterized in that: The abnormal service state includes: a stopped service state where normal service cannot be provided and a weak service state where service acceleration is required; The service status provided by the target service replica includes: a disaster recovery service status that provides services independently and an acceleration service status that provides services together with the target service; The step of switching the service state of the target service copy according to the service state of the target service and the usage state of the second GPU includes: When the service state of the target service enters the stopped service state, if all service replicas on the second GPU are not in the disaster recovery service state, switching the service state of the target service replica to the disaster recovery service state; When the service state of the target service enters the weak service state, if all service replicas on the second GPU are not in the disaster recovery service state and the accelerated service state, the service state of the target service replica is switched to the accelerated service state.

6. The disaster recovery method according to claim 1, characterized in that: The disaster recovery method further includes: maintaining remaining resource information of each GPU configured with virtual video memory technology in the second server cluster; The step of deploying a target service replica on the second GPU includes: Determine the second GPU from the GPUs configured with virtual video memory technology according to the remaining resource information and the resource requirement information of the target service; The target service replica is deployed on the determined second GPU.

7. A disaster recovery device, characterized in that: include: A deployment unit is configured to deploy a target service replica on a second GPU in response to starting a target service on a first GPU, so that the deployed target service replica is in a non-service state where no service is provided; wherein the target service replica is a service replica of the target service, the first GPU is a GPU on a server in a first server cluster for providing service resources, and the second GPU is a GPU configured with virtual video memory technology on a server in a second server cluster for providing disaster recovery resources; a state switching unit configured to switch the service state of the target service replica according to the service state of the target service, so that if the target service is in a normal service state, the target service replica is in the non-service state, and if the target service is in an abnormal service state, the target service replica enters a service state of providing service; During the deployment, at least part of the data of the target service copy is loaded into the virtual video memory of the second GPU.

8. A system comprising at least one computing device and at least one storage device storing instructions, wherein: When the instructions are executed by the at least one computing device, the at least one computing device is prompted to perform the disaster recovery method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing instructions, wherein: When the instructions are executed by at least one computing device, the at least one computing device is prompted to execute the disaster recovery method according to any one of claims 1 to 6.

10. A computer program product comprising computer executable instructions, characterized in that: When the computer executable instructions are executed by at least one processor, the disaster recovery method according to any one of claims 1 to 6 is implemented.