Service migration method, and cloud service system, device, storage medium and program product
By utilizing computing resources and storage clusters in a second availability zone where no failures have occurred, the problem of service interruption caused by cloud server instances relying on a single availability zone has been solved. This enables cross-availability zone resource allocation, reduces costs, and improves fault tolerance and recovery capabilities.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD
- Filing Date
- 2026-01-20
- Publication Date
- 2026-07-30
AI Technical Summary
When a cloud server instance relies on a single availability zone, a failure can lead to service interruption. Existing technologies, such as multi-site active-active technology and redundant application architecture, increase hardware and maintenance costs and cannot effectively restore service stability during fault recovery.
By utilizing computing resources and storage clusters in the available resource zone in the second availability zone where no failures occur, services for cloud server instances in the first availability zone are provided, enabling cross-availability zone resource allocation, reducing hardware and operation and maintenance costs, and improving fault tolerance and recovery capabilities.
When a partial failure occurs in the availability zone, it ensures the stability and fault-tolerant recovery capabilities of cloud server instances, reduces service interruptions, and lowers hardware and maintenance costs. It is suitable for non-disaster recovery and resource adjustment scenarios.
Smart Images

Figure CN2026073657_30072026_PF_FP_ABST
Abstract
Description
Service migration methods, cloud service systems, devices, storage media, and application products Technical Field
[0001] This disclosure relates to the field of computer technology, and in particular to a service migration method, cloud service system, device, storage medium, and program product. Background Technology
[0002] With the development of cloud computing, more and more applications are running on cloud servers, which places increasingly higher demands on the stability of cloud services. An Availability Zone (AZ) is an important concept in cloud computing architecture; it can be understood as a resource area divided by a cloud service provider at the infrastructure level. Each Availability Zone has its own independent infrastructure, including power supply, network, cooling systems, etc.
[0003] In a cloud computing environment, cloud server instances rely on availability zones to provide services. If a user deploys only one cloud server instance in a single availability zone, all the resources that this instance depends on for its services are located in that availability zone. If that availability zone fails, the cloud server instance will be unable to provide services, thus affecting service stability. Summary of the Invention
[0004] This disclosure provides a service migration method, cloud service system, device, storage medium, and program product to alleviate or solve one or more technical problems existing in the prior art.
[0005] In a first aspect, embodiments of this disclosure provide a service migration method, comprising: determining an available resource region from a first availability zone, wherein the available resource region is a resource region in the first availability zone that normally provides storage services; in response to detecting that a first storage cluster in the first availability zone is deployed in the available resource region, searching for a second availability zone that has not experienced a failure, wherein the first storage cluster is used to provide data storage services for cloud server instances in the first availability zone; and providing services for cloud server instances in the first availability zone based on computing resources in the second availability zone and the first storage cluster in the available resource region.
[0006] Secondly, embodiments of this disclosure provide a cloud service system, including a cloud server and a client. The cloud server includes at least a cloud server instance, a first availability zone, and a second availability zone. The first availability zone is deployed with a first computing cluster and a first storage cluster. The cloud server instance relies on the first computing cluster and the first storage cluster to provide services to the client. The client is used to access the cloud server instance. The cloud server is used to execute the service migration method of the first aspect when a failure is detected in the first availability zone and no failure is detected in the second availability zone.
[0007] Thirdly, embodiments of this disclosure provide an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor implements any of the methods of embodiments of this disclosure when executing the computer program.
[0008] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method of any one of the embodiments of this disclosure.
[0009] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the method of any one of the embodiments of this disclosure.
[0010] According to the method of this disclosure, cloud server instances in the first availability zone can be provided with computing resources in the second availability zone where no faults have occurred and storage clusters in the available resource area of the first availability zone, thereby realizing cross-availability zone resource allocation and ensuring the stability of cloud server instances.
[0011] Compared to related technologies that employ multi-site active-active technology and redundant application architectures to provide services, the method of this disclosure does not require deploying cloud server instances in multiple physical locations, which helps reduce hardware and maintenance costs. In contrast to related technologies where all resources depended on by a cloud server instance are located in a single availability zone, a failure in that availability zone would interrupt the service of the cloud server instance. In the method of this disclosure, even if a single availability zone fails, considering that availability zone failures in practical applications are often partial failures (e.g., air conditioning failures or fires in some areas, such as some data centers), after determining the available resource areas of the failed availability zone, the storage clusters in the detected available resource areas and the computing resources in the unaffected second availability zone can be used to provide services to the cloud server instances in the first availability zone, effectively improving the fault tolerance and recovery capabilities of the cloud server instances.
[0012] The above description is only an overview of the technical solution of this disclosure. In order to better understand the technical means of this disclosure, it can be implemented in accordance with the contents of the specification. In order to make the above and other objects, features and advantages of this disclosure more obvious and understandable, specific embodiments of this disclosure are given below. Attached Figure Description
[0013] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments according to this disclosure and should not be construed as limiting the scope of this disclosure.
[0014] Figure 1 illustrates an application scenario of the availability zone in an exemplary embodiment of this disclosure.
[0015] Figure 2 illustrates an availability zone failure scenario of an exemplary embodiment of this disclosure.
[0016] Figure 3 shows a flowchart of a service migration method according to an embodiment of this disclosure.
[0017] Figure 4 illustrates a flowchart of the process for providing instance services based on computing resources in a second availability zone and storage resources in an available resource region of a first availability zone, according to an exemplary embodiment of this disclosure.
[0018] Figure 5 illustrates a flowchart of the storage data replication and virtual computing cluster migration processes provided by an exemplary embodiment of this disclosure.
[0019] Figure 6 illustrates a schematic diagram of the processing flow after the first availability zone fault is cleared, as provided in an exemplary embodiment of this disclosure.
[0020] Figure 7 illustrates a flowchart of the user self-migration process provided by an exemplary embodiment of this disclosure.
[0021] Figure 8 shows a schematic diagram of the structure of a service migration device according to an embodiment of the present disclosure.
[0022] Figure 9 shows a schematic diagram of the structure of a cloud service system according to an embodiment of the present disclosure.
[0023] Figure 10 shows a block diagram of an electronic device provided in an embodiment of the present disclosure. Detailed Implementation
[0024] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the spirit or scope of this disclosure. Therefore, the drawings and description are considered to be exemplary in nature and not restrictive.
[0025] To facilitate understanding of the technical solutions of the embodiments of this disclosure, the related technologies of the embodiments of this disclosure are described below. The following related technologies are optional solutions and can be combined with the technical solutions of the embodiments of this disclosure in any way, and all of them fall within the protection scope of the embodiments of this disclosure.
[0026] With the development of cloud computing, more and more applications are running on cloud servers, and the stability requirements of cloud services are becoming increasingly stringent. An availability zone is a resource area designated by a cloud service provider at the infrastructure level; this resource area can be a resource isolation domain. Based on the availability zones included in the cloud server, the resources of different users can be physically isolated, ensuring that each user's computing, storage, and network resources are completely independent at the physical layer. Availability zones can provide a certain degree of disaster recovery capability while maintaining a certain range of network latency.
[0027] Cloud service providers can offer multiple availability zones, and an availability zone typically contains multiple data centers. A data center is a location used to centrally house computer servers and related equipment (such as storage devices, network equipment, security equipment, etc.). For example, any data center can refer to a single server room.
[0028] In this embodiment of the disclosure, a cloud server instance is a virtual computing resource that can create independent virtual machines on a physical cloud server using virtualization technology. A cloud server instance can provide computing resources and possesses independent computing power, memory, storage, and network resources.
[0029] For example, a storage cluster can provide storage services based on Elastic Block Store (EBS). Elastic Block Store is a high-performance block-level storage service. It should be understood that a storage cluster can also provide storage services in other ways, such as distributed file systems, cloud-native storage, etc. The specific choice can be made according to actual needs, and this disclosure does not impose specific limitations.
[0030] Figure 1 illustrates an application scenario of availability zones according to an exemplary embodiment of this disclosure. Figure 1 shows multiple availability zones for multiple clients and a cloud server. The multiple clients include, for example, a first client 11, a second client 12, and a third client 13, and the multiple availability zones include, for example, availability zone A and availability zone B. Availability zone A is deployed with a first computing cluster and a first storage cluster, and availability zone B is deployed with a second computing cluster and a second storage cluster.
[0031] In Figure 1, any client is connected to at least one computing cluster in an availability zone by a line containing an arrow pointing from the client to the computing cluster. For example, the connection between the first client 11 and the computing cluster deployed in availability zone A indicates that when the first client 11 accesses a cloud server instance (not shown in the figure) included in the cloud service, the cloud server instance relies on the computing and storage clusters deployed in availability zone A to provide services.
[0032] For ease of description, when any client has a connection with a computing cluster deployed in an availability zone, it can be understood that the client can access the cloud server instance corresponding to that availability zone.
[0033] In Figure 1, the first client 11 can access the cloud server instances corresponding to Availability Zone A and Availability Zone B respectively. The second client 12 can only access the cloud server instance corresponding to Availability Zone A. The third client 13 can only access the cloud server instance corresponding to Availability Zone B.
[0034] Figure 2 illustrates an availability zone failure scenario according to an exemplary embodiment of this disclosure. The same reference numerals are used for devices or apparatuses identical or equivalent to those in Figure 1. Figure 2 includes a combination of cross symbols and textual information, "× Unavailable," which indicates that the corresponding availability zone has failed.
[0035] As shown in Figure 2, the first client 11 can be used to access the cloud server instances corresponding to Availability Zone A and Availability Zone B respectively, while the second client 12 can only be used to access the cloud server instance corresponding to Availability Zone A. Therefore, when Availability Zone A fails, the second client 12 will be unable to access any cloud server instance on the cloud server side, and the first client 11 can only access some of the cloud server instances on the cloud server side.
[0036] In real-world applications, availability zones typically contain a large number of hardware resources, including but not limited to at least one of the following: computing devices in computing clusters, storage devices in storage clusters, network devices (switches, routers, etc.), cooling systems (e.g., water cooling systems), and power equipment (e.g., power supplies). Hardware stability is not foolproof; in practical applications, it can only reduce the probability of failures, not completely eliminate them.
[0037] Among related technologies, multi-active technology can be used to ensure the stability of cloud server instance services. Multi-active is a service deployment method to ensure high availability. It avoids the risk of service interruption caused by the failure of some availability zones by deploying cloud server instances accessed by the same user through a client in different availability zones. Geographically distributed multi-active technology refers to the different availability zones being located in different regions. The region is a geographically defined area, which can be a country, city, or other characteristic area.
[0038] Referring to Figure 2, in the relevant technology, since the first client 11 can access the cloud server instance corresponding to availability zone A and the cloud server instance corresponding to availability zone B, when availability zone A fails but availability zone B does not fail, the number of cloud server instances that the user to which the first client 11 belongs will decrease but will still be greater than zero, so the service of the cloud server instances will not be interrupted.
[0039] Based on this, users often employ multi-site active-active technology and redundant application architecture for disaster recovery in related technologies. Redundant application architecture improves system fault tolerance and service stability by deploying identical cloud server instances in multiple physical locations. For example, suppose Region 1 and Region 2 are two different regions. Region 1 includes Availability Zone 1, Availability Zone 2, and Availability Zone 3, while Region 2 includes Availability Zone 4, Availability Zone 5, and Availability Zone 6. User X and User Y are two different users. User X can access cloud server instances corresponding to Availability Zone 1, Availability Zone 2, and Availability Zone 4 through a client; User Y can access cloud server instances corresponding to Availability Zone 3, Availability Zone 5, and Availability Zone 6 through a client. In this way, if one or more availability zones in a region fail, the services accessed by the cloud service instances by User X and User Y will not be interrupted. However, setting up a redundant application architecture in this method may require customers to purchase 2 to 3 times more new cloud service instances for data disaster recovery, significantly increasing hardware and operational costs.
[0040] Referring back to Figure 2, since the second client 12 can only access the cloud server instance corresponding to Availability Zone A, when Availability Zone A fails, the number of cloud server instances accessible to users of the second client 12 drops to zero, causing the cloud server instance service to be directly interrupted. Furthermore, since the data required for the normal operation of the cloud server instance service is stored in the failed Availability Zone A, even if the computing cluster is rebuilt in Availability Zone B, the service cannot be restored due to the inability to access the necessary data, thus affecting service stability.
[0041] It should be noted that the application scenarios or examples provided in this disclosure are for ease of understanding, and this disclosure does not specifically limit the application of the technical solutions. Furthermore, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. The collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding operation entry points are provided for users to choose to authorize or refuse.
[0042] The technical solutions of this disclosure and how they solve the aforementioned technical problems are described in detail below with specific embodiments. The listed specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this disclosure will be described in detail below with reference to the accompanying drawings.
[0043] Figure 3 illustrates a flowchart of service migration according to an embodiment of this disclosure, where the method is applied to a cloud server. As shown in Figure 3, the method may include steps S301, S302, and S303.
[0044] S301, determine the available resource area from the first availability zone. The available resource area is the resource area in the first availability zone that normally provides storage services.
[0045] S302, in response to detecting that the first storage cluster in the first availability zone is deployed in the available resource area, find the second availability zone that has not experienced a failure, the first storage cluster being used to provide data storage services for cloud server instances in the first availability zone.
[0046] S303 provides services for cloud server instances in the first availability zone based on computing resources in the second availability zone and the first storage cluster in the available resource zone.
[0047] According to the method of this disclosure, services for cloud server instances in the first availability zone can be provided based on computing resources in a fault-free second availability zone and storage clusters in the available resource area of the first availability zone, thereby achieving cross-availability zone resource allocation and ensuring the stability of cloud server instances. Compared with related technologies that use multi-site active-active technology and provide services through redundant application architecture, the method of this disclosure does not require the deployment of cloud server instances in multiple physical locations, which helps to reduce hardware and operation and maintenance costs.
[0048] Compared to related technologies, where all resources relied upon by a cloud server instance are located in a single availability zone, a failure in that availability zone would only interrupt the service of the cloud server instance. In the method of this disclosure, even if the single availability zone fails, considering that availability zone failures are often partial failures in practical applications, such as air conditioning failures or fire failures in some areas (e.g., some data centers), after determining the available resource areas of the failed availability zone, the storage cluster in the detected available resource areas and the computing resources in the second availability zone that has not failed can be used to provide services for the cloud server instance in the first availability zone, effectively improving the fault tolerance and recovery capability of the cloud server instance.
[0049] It should be noted that the method of this disclosure is also applicable to non-disaster recovery scenarios. For example, in resource adjustment and optimization scenarios, it is necessary to cut some areas of the first availability zone (e.g., some data centers). After these areas are cut, as long as there are available resource areas in the first availability zone, the storage cluster of the detected available resource areas and the computing resources in another non-faulty availability zone can be used to provide services for cloud server instances in the first availability zone, which is conducive to achieving resource optimization and efficient utilization.
[0050] In some embodiments, an available resource zone refers to a region within an availability zone that continues to operate normally and provide storage services even if an availability zone experiences a failure or equipment decommissioning. Exemplarily, these regions have independent power, network, and cooling systems. Based on this, storage nodes deployed in available resource zones can provide storage services normally.
[0051] In some embodiments, the resource region includes a location region within an availability zone for deploying resources. The deployed resources include, but are not limited to, at least one of the following: computing resources, storage resources, and network resources.
[0052] In step S301, there are multiple ways to determine the available resource area from the first availability zone.
[0053] For example, this can be achieved through metric detection. Specifically, various health metrics (such as error rate and response time) are detected for each region of the first availability zone, and the corresponding region is determined to be a usable resource region based on the detected health metric values. For instance, if the values of at least one health metric for a region of the first availability zone are all within the predetermined normal range for the corresponding health metric, then that region can be determined to be a usable resource region of the first availability zone.
[0054] Another example is by invoking a pre-defined anomaly detection tool. Specifically, this tool can detect the health status of each region within the availability zone, and the health status detection results are used to indicate faulty regions and available resource regions. For instance, if the anomaly detection tool detects that the response time of a region within the availability zone is less than a predetermined threshold and the error rate is within a predetermined error rate threshold, then that region is identified as a available resource region. Available resource regions are also called non-faulty regions.
[0055] It should be understood that in practical application scenarios, the method of determining the available resource area from the first availability zone can be customized as needed, and this disclosure does not impose specific limitations.
[0056] In some embodiments, step S302 may specifically include: in response to detecting that the resource region where the first storage cluster is located is an available resource region, searching for a second availability region; or, in response to detecting that the resource region where the first storage cluster is located has failed and there is an available resource region in the first availability region, initiating periodic migration status detection, the migration status detection being used to detect whether the first storage cluster has been migrated to an available resource region; until the result of the migration status detection indicates that the first storage cluster has been migrated to an available resource region, searching for a second availability region.
[0057] For example, the storage cluster located in the first availability zone is referred to as the first storage cluster. When the first availability zone fails, the currently deployed nodes in the available resource areas of the first availability zone may be either compute nodes or storage nodes. If the resource area where the first storage cluster is located is detected as an available resource area, the second availability zone is searched directly. If the resource area where the first storage cluster is located is detected as not being an available resource area of the first availability zone, all storage resources in the storage cluster need to be manually migrated to that available resource area first. Only after this process is complete and the resource area where the first storage cluster is located is detected as an available resource area can the operation of searching for the second availability zone be performed.
[0058] For example, manually migrating storage resources to the available resource area means manually moving storage devices from the storage cluster to the available resource area. If the storage cluster in the faulty area of the first availability zone has disk failures, considering that stored data usually has multiple data copies and the probability of multiple copies being swapped at the same time is small, the data copies of the storage cluster can be copied to the device cluster in the available resource area. After the copy is successful, the device cluster in the available resource area can be used as the storage cluster of the available resource area.
[0059] In this embodiment, when the resource region where the first storage cluster is located is detected to be an available resource region, the system begins searching for a second availability zone, which helps improve response speed and ensure service stability. If a failure is detected in the resource region where the first storage cluster is located, and an available resource region exists within the first availability zone, periodic migration status checks can be performed. Only after the storage cluster has successfully migrated to an available resource region will the search for a second availability zone be initiated. This helps avoid the search for a second availability zone becoming redundant, because even if an availability zone without failure is found, if the storage cluster is not located within an available resource region of the first availability zone, storage services cannot be provided, and the corresponding cloud server instance's service cannot be restored. Therefore, the above processing based on the migration status detection results can reduce the possibility of invalid operations and improve resource utilization efficiency.
[0060] In some embodiments, the step of finding a second availability zone that has not experienced a failure may specifically include: finding an availability zone that is adjacent to the first availability zone and has not experienced a failure as the second availability zone; the distance between the second availability zone and the first availability zone is less than a predetermined distance threshold.
[0061] For example, the second availability zone is adjacent to the first availability zone, meaning the distance between them is less than a predetermined distance threshold. The predetermined distance threshold could be, for example, 200 kilometers, 100 kilometers, or other distance values. It can be customized as needed.
[0062] In this embodiment, the second availability zone that has not experienced a failure needs to be adjacent to the first availability zone in terms of distance, meaning the distance between the two availability zones is less than a predetermined threshold. Closely located availability zones can reduce network latency, improve data access speed, and help reduce operational costs.
[0063] In some embodiments, step S303 may specifically include: establishing a logical availability zone in the second availability zone based on computing resources in the second availability zone, and establishing a virtual computing cluster in the logical availability zone; binding the virtual computing cluster to the first availability zone, and establishing a communication connection between the virtual computing cluster and the first storage cluster in the available resource zone; and using the virtual computing cluster and the first storage cluster to provide services for cloud server instances in the first availability zone.
[0064] For example, a logical availability zone is a virtual region defined by software on top of a physical computing cluster within a second availability zone. A virtual computing cluster can be understood as a collection of virtualized computing resources created within a logical availability zone. In a cloud computing environment, any virtual computing node in a virtual computing cluster can be understood as a virtualized process running within the physical computing cluster. This virtualization technology can simulate a complete hardware environment (such as processor instruction sets, memory, etc.) and provide computing services through this simulated hardware environment.
[0065] For example, by establishing a communication connection between the virtual computing cluster and the first storage cluster in the available resource area, the virtual computing cluster and the first storage cluster can be associated and bound together. This allows storage resources (such as block storage and object storage) in the first storage cluster to be mapped to virtual machine instances in the virtual computing cluster. This mapping can be achieved through a network connection.
[0066] In this embodiment, the virtual computing cluster in the second availability zone is associated and bound to the storage cluster in the available resource area of the first availability zone. This allows users to access storage resources in the virtual machine instance of the second availability zone as if they were accessing a local disk. This access mechanism is transparent to the user, who does not need to concern themselves with the actual storage location of the data. The collaborative work of the virtualization layer and the storage cluster ensures efficient and consistent data access.
[0067] For ease of understanding, the service migration process of an exemplary embodiment of this disclosure is described below with reference to Figure 4. Figure 4 shows a flowchart of the process of providing instance services based on computing resources in a second availability zone and storage resources in an available resource area of a first availability zone, according to an exemplary embodiment of this disclosure.
[0068] Figure 4 includes Availability Zone A and Availability Zone B. Availability Zone A is the first availability zone, and Availability Zone B is the second availability zone. Each availability zone has its own compute cluster and storage cluster deployed within it. Availability Zone A includes available resource area 41.
[0069] In practical applications, cloud vendors or service providers typically employ isolated deployment structures to increase deployment density, as shown in Figure 4, "Newly Migrated Storage Cluster." When Availability Zone A fails and is found to contain available resource area 41, physical migration can be used to relocate the stored data, facilitating the recovery of the storage cluster from the available resource area of the first availability zone. The physical migration method refers to the method of moving the storage cluster or copying storage data replicas described in the above embodiments, and will not be repeated here.
[0070] When the first storage cluster is detected to be deployed in an available resource area within the first availability zone, the first storage cluster can provide storage services normally. However, since the storage cluster can only be accessed through the compute cluster, users cannot directly access the storage cluster when the compute cluster is abnormal.
[0071] As shown in "S401, establish a logical availability zone computing cluster" in Figure 4, after finding an availability zone B that has not experienced a failure, a logical availability zone A1 can be established in availability zone B, and a virtual computing cluster can be established in logical availability zone A1.
[0072] For example, in a cloud environment, the computing resources provided by a virtual computing cluster can be: virtual computing resources based on Elastic Compute Service (ECS). By using virtual computing resources based on Elastic Compute Service, a virtual computing cluster can provide highly flexible and elastically scalable computing capabilities.
[0073] For example, the computing resources provided by the virtual computing cluster can also be containerized computing, serverless computing, or other types of virtual computing resources. The appropriate type of virtual computing resource can be selected according to actual needs, and this disclosure does not impose specific limitations.
[0074] As shown in Figure 4, "S402, User accesses logical availability zone A1" and "S403, Logical computing cluster of logical availability zone A1 accesses storage cluster across availability zones," logical availability zone A1 is bound to availability zone A, and a connection is established between logical availability zone A1 and the first storage cluster via a dedicated line. The first storage cluster encompasses all storage clusters in availability zone A. When a user accesses logical availability zone A1 to execute computing tasks through the first client 11, logical availability zone A1 can access the first storage cluster in available resource area 41 of the first availability zone across availability zones. Through the above processing, the computing and storage services relied upon by the cloud server instances in availability zone A can be provided through the first storage cluster in available resource area 41 and the virtual computing cluster in logical availability zone A1.
[0075] In this embodiment, virtualized computing resources are established in the second availability zone where no faults occur, and a communication connection is established between the virtualized computing resources and the storage cluster in the available resource area of the first availability zone. This enables the virtualized computing resources to access the storage cluster, thereby utilizing the virtualized computing resources in the second availability zone and the storage cluster in the available resource area of the first availability zone to provide services for the cloud server instances in the first availability zone. This ensures the stability of the cloud server instances and improves the fault tolerance and resource utilization efficiency of the cloud servers.
[0076] In this embodiment, the compute nodes are stateless, meaning they do not store any state information related to specific tasks or user data during operation. Because the compute nodes do not store state, new compute nodes can be started or failed compute nodes can be replaced at any time without affecting service operation. Therefore, after establishing a logical availability zone in the second availability zone, creating a virtual compute cluster within the logical availability zone, and establishing a communication connection between the virtual compute cluster and the first storage cluster in the available resource zone, the original storage data can be directly accessed through the logical compute nodes in the logical availability zone, completing the instance recovery in the first availability zone and ensuring the stability of the cloud server instance.
[0077] For users in the first availability zone, the above operations are unnecessary; they can access their instances normally as before. Due to the physical characteristics of data transmission distance, when users process data through the logical availability zone in the second availability zone, the data transmission will incur an additional dedicated line latency across availability zones, with latency in the millisecond range, such as 20 to 30 milliseconds. For users with low network latency requirements, the performance degradation caused by latency is almost imperceptible. However, for users with high network latency requirements, they will experience a noticeable decrease in network performance when accessing the cloud server instance corresponding to the first availability zone.
[0078] To improve the overall access performance of services provided by cloud server instances in the first availability zone, in some embodiments, after the steps of providing services for cloud server instances in the first availability zone using virtual computing clusters and the first storage cluster, the method further includes: copying data stored in the first storage cluster to a second storage cluster in the second availability zone; migrating the virtual computing cluster to the second computing cluster deployed in the second availability zone; and providing services for cloud server instances through the second computing cluster and the second storage cluster.
[0079] For example, data replication from a first storage cluster to a second storage cluster can be achieved through a central gateway. The central gateway is the central control gateway node for cloud computing, and can be used for data addressing and data transmission services between different regions (two different availability zones). For example, data replication can also be achieved through other methods, such as Fibre Channel or database synchronization. The specific data replication method can be selected according to actual needs, and this disclosure does not impose specific limitations.
[0080] For example, migrating a virtual computing cluster to a second computing cluster deployed in a second availability zone can be understood as the process of migrating computing resources in a virtualized environment from a logical layer (virtual computing cluster) to a physical layer (physical computing cluster). Physical computing clusters typically offer higher performance and more efficient utilization of hardware resources, reducing the overhead of the virtualization layer.
[0081] The above-described process of storage data replication and virtual computing cluster migration is described below with reference to Figure 5. Figure 5 shows a flowchart of the storage data replication and virtual computing cluster migration process provided by an exemplary embodiment of this disclosure. Components in Figure 5 that are the same as or equivalent to those in Figure 4 are referred to by the same reference numerals.
[0082] In some embodiments, after providing services for cloud server instances in a first availability zone using a virtual computing cluster and a first storage cluster, the following steps are further included.
[0083] S501, migrate logical availability zone to physical availability zone.
[0084] Specifically, the virtual computing cluster established in Availability Zone B is migrated to the second computing cluster deployed in Availability Zone B, realizing the migration of the computing cluster from the logical availability zone to the physical availability zone.
[0085] S502, Migration of stored data.
[0086] Specifically, data stored in the first storage cluster can be replicated to the second storage cluster in availability zone B via central gateway 14.
[0087] On the one hand, after establishing a logical availability zone in the second availability zone and creating a virtual computing cluster within it, the virtual computing cluster and the first storage cluster can provide services for the cloud server instances in the first availability zone. Since the performance of the virtual computing cluster is typically lower than that of the physical computing cluster, network latency-sensitive users will perceive a performance degradation. Network latency sensitivity refers to the fact that applications are sensitive to network data transmission delays; even minor delays can lead to a significant performance degradation. Therefore, low-latency, low-jitter, and highly reliable network support is required.
[0088] On the other hand, after replicating the data stored in the first storage cluster to the second storage cluster in the second availability zone, the storage services of the cloud server instances in the first availability zone can be accessed locally in the second availability zone, which helps reduce network latency and improve data access speed. Furthermore, by replicating data between different availability zones, ensuring that data has copies in multiple locations enhances data reliability.
[0089] In this embodiment, by establishing a logical availability zone within a second availability zone and migrating stored data from the first availability zone, the computing cluster in a failed availability zone can resume service in other non-failed availability zones. Customers insensitive to network latency can achieve seamless service instance recovery, while customers sensitive to network latency are provided with an online migration solution across availability zones in case of failures. This assists users in achieving off-site disaster recovery in failure scenarios, significantly improving the resolution of instance service unavailability issues caused by user failures.
[0090] In some embodiments, before copying the data stored in the first storage cluster to the second storage cluster in the second availability zone, the method further includes: sending a first prompt message to a client accessing the cloud server instance, the first prompt message being used to inquire whether to copy the data stored in the first storage cluster to the second availability zone; receiving a confirmation message returned by the client in response to the first prompt message; performing the operation of copying the data stored in the first storage cluster to the second storage cluster if the confirmation message indicates that the data stored in the first storage cluster should be copied to the second availability zone; and continuing to provide services for the cloud server instance using the virtual computing cluster and the first storage cluster if the confirmation message indicates that the data stored in the first storage cluster should not be copied to the second computing availability zone.
[0091] In this embodiment, considering that users with low network latency requirements will hardly perceive the performance degradation caused by latency, before performing the storage data replication and virtual computing cluster migration processes described in conjunction with Figure 5, a prompt message can be used to inquire whether the process needs to be performed. Only after user confirmation can the operations of replicating the data stored in the first storage cluster to the second storage cluster, migrating the virtual computing cluster to the second computing cluster, and providing cloud server instance services through the second computing cluster and the second storage cluster begin. This method not only optimizes resource utilization and enhances system flexibility and operational transparency, but also helps reduce unnecessary operations that may result from unconfirmed automatic execution, thereby reducing operational costs.
[0092] In some embodiments, before copying the data stored in the first storage cluster to the second storage cluster in the second availability zone, the method may further include the following steps: querying the network latency target value of the user to which the cloud server instance belongs, wherein the network latency target value is the maximum network latency provided by the cloud server instance specified by the user; if the network latency target value is less than or equal to a preset latency threshold, performing the operation of copying the data stored in the first storage cluster to the second storage cluster; if the network latency target value is greater than the preset latency threshold, continuing to provide services for the cloud server instance using the virtual computing cluster and the first storage cluster.
[0093] For example, if the target network latency value is less than or equal to the preset latency threshold, it means that the user to which the cloud server instance belongs is a latency-sensitive user; if the target network latency value is greater than the preset latency threshold, it means that the user to which the cloud server instance belongs is a latency-insensitive user.
[0094] In this embodiment, performing data replication from the first storage cluster to the second storage cluster and migration from the virtual computing cluster to the second computing cluster for latency-sensitive users, thereby providing cloud server instance services through the second computing cluster and the second storage cluster, ensures the high performance and low latency of the services provided by the cloud server instance. By not performing this data replication operation for latency-sensitive users, and continuing to use the virtual computing cluster and the first storage cluster to provide cloud server instance services, unnecessary data migration and resource adjustments are avoided, reducing operational complexity.
[0095] In some embodiments, the available resource zone is a zone determined after a failure is detected in the first availability zone. The method further includes: restoring the service of providing cloud server instances through the first computing cluster and the first storage cluster after the failure of the first computing cluster in the first availability zone is detected to be eliminated.
[0096] For example, taking a disaster recovery scenario, as the cloud vendor's disaster relief efforts progress, the first availability zone may gradually recover more areas. Once all data nodes are restored, the compute nodes can be restored. For nodes that were previously accessed via logical availability zones, the state independence of compute resources can be leveraged to seamlessly switch them to the original storage cluster through hot migration, thus restoring network latency performance for users.
[0097] Figure 6 illustrates a schematic flowchart of the processing flow after the first availability zone fault is cleared, as provided in an exemplary embodiment of this disclosure. Components in Figure 6 that are the same as or equivalent to those in Figure 5 are referred to by the same reference numerals.
[0098] In some scenarios, the available resource zone is the area determined after a failure is detected in the first availability zone.
[0099] As shown in Figure 6, "S601, Partial Computing Cluster Recovery, Seamless Online Switching for Users," specifically, upon detecting the elimination of the fault in the first computing cluster within the first availability zone, the service provided by the cloud server instance through the first computing cluster and the first storage cluster is restored. This facilitates a rapid recovery to a normal state after the fault is eliminated, ensuring the continuity of services provided by the cloud server instance. In some scenarios, data that has already been migrated to the second storage cluster can continue to be stored in the second storage cluster, or it can be kept in the second storage cluster for a predetermined period before being deleted. This disclosure does not impose specific limitations on the embodiments.
[0100] In some embodiments, after finding a second availability zone that has not experienced a failure, the method further includes the following steps: receiving a data self-migration request from a client, the data self-migration request being used to request the migration of data stored in the first storage cluster to the second availability zone; in response to the data self-migration request, migrating the data stored in the first storage cluster to the second storage cluster in the second availability zone; stopping the provision of cloud server instance services through the first availability zone, and providing cloud server instance services to the client through the second availability zone.
[0101] For example, FIG7 illustrates a flowchart of a user self-migration process provided by an exemplary embodiment of the present disclosure. Components in FIG7 that are the same as or equivalent to those in FIG5 are referred to by the same reference numerals.
[0102] As shown in "S701, User Self-Migration" in Figure 7, after finding a second availability zone that has not experienced a failure, if a data self-migration request is received from a client, the system can respond to the data self-migration request by performing a data copy from the first storage cluster to the second storage cluster in the second availability zone through the central gateway 14, stopping the provision of cloud server instance services through the first availability zone, and starting to provide cloud server instance services to clients through the second availability zone.
[0103] In this embodiment, in response to the client's data self-migration request, data can be quickly migrated to the second availability zone in the early stages of a failure in the first availability zone. The physical computing and physical storage resources of the second availability zone are used to provide services for the cloud server instance, ensuring service continuity and reducing service interruption time caused by failure.
[0104] The method described in the above embodiments of this disclosure facilitates the recovery of client access to cloud server instances when available resource areas exist within an availability zone. It enables normal service delivery through logical availability zones, achieving instance services across availability zones. For network latency-sensitive users, a central gateway can be used to replicate data stored in the first storage cluster to a second storage cluster in the second availability zone even in the event of a failure in the first availability zone. This cross-zone data migration allows cloud server instance services to be provided based on the second computing cluster and the second storage cluster, thus restoring the service of the cloud server instance accessed by the client.
[0105] Corresponding to the application scenarios and methods provided in the embodiments of this disclosure, the embodiments of this disclosure also provide a service migration apparatus. Figure 8 shows a schematic diagram of the structure of a service migration apparatus according to an embodiment of this disclosure. This apparatus is used to execute the methods provided in any of the above embodiments. As shown in Figure 8, the service migration apparatus includes the following modules.
[0106] The determination module 810 is used to determine the available resource area from the first availability zone. The available resource area is the resource area in the first availability zone that normally provides storage services.
[0107] The lookup module 820 is used to look up a second availability zone that has not experienced a failure in response to the detection that the first storage cluster in the first availability zone is deployed in an available resource area. The first storage cluster is used to provide data storage services for cloud server instances in the first availability zone.
[0108] Service module 830 is used to provide services for cloud server instances in the first availability zone based on computing resources in the second availability zone and the first storage cluster in the available resource zone.
[0109] In some embodiments, the lookup module 820 is specifically configured to: in response to detecting that the resource region where the first storage cluster is located is an available resource region, look up a second availability region; or, in response to detecting that the resource region where the first storage cluster is located has failed and there is an available resource region in the first availability region, initiate periodic migration status detection, the migration status detection being used to detect whether the first storage cluster has been migrated to an available resource region; until the result of the migration status detection indicates that the first storage cluster has been migrated to an available resource region, look up a second availability region.
[0110] In some embodiments, when searching for a second availability zone that has not experienced a failure, the search module 820 is specifically used to: search for an availability zone that is adjacent to the first availability zone and has not experienced a failure as the second availability zone; the distance between the second availability zone and the first availability zone is less than a predetermined distance threshold.
[0111] In some embodiments, the service module 830 is specifically used to: establish a logical availability zone in the second availability zone based on computing resources in the second availability zone, and establish a virtual computing cluster in the logical availability zone; bind the virtual computing cluster to the first availability zone, and establish a communication connection between the virtual computing cluster and the first storage cluster in the available resource zone; and provide services for cloud server instances in the first availability zone using the virtual computing cluster and the first storage cluster.
[0112] In some embodiments, the service migration apparatus further includes a replication module for copying data stored in the first storage cluster to a second storage cluster in a second availability zone after providing services for cloud server instances in a first availability zone using the virtual computing cluster and the first storage cluster; a migration module for migrating the virtual computing cluster to a second computing cluster deployed in the second availability zone; and a service module 830 for providing services for cloud server instances through the second computing cluster and the second storage cluster.
[0113] In some embodiments, the service migration apparatus further includes a sending module, configured to send a first prompt message to the client accessing the cloud server instance before copying the data stored in the first storage cluster to the second storage cluster in the second availability zone, the first prompt message being used to inquire whether to copy the data stored in the first storage cluster to the second availability zone; a receiving module, configured to receive a confirmation message returned by the client in response to the first prompt message; a copying module, further configured to perform the operation of copying the data stored in the first storage cluster to the second storage cluster if the confirmation message indicates that the data stored in the first storage cluster should be copied to the second availability zone; and a service module 830, configured to continue providing services for the cloud server instance using the virtual computing cluster and the first storage cluster if the confirmation message indicates that the data stored in the first storage cluster should not be copied to the second availability zone.
[0114] In some embodiments, the service migration apparatus further includes: a query module, configured to query the network latency target value of the user to which the cloud server instance belongs before copying the data stored in the first storage cluster to the second storage cluster in the second availability zone, wherein the network latency target value is the maximum network latency provided by the cloud server instance specified by the user; a copy module, further configured to perform the operation of copying the data stored in the first storage cluster to the second storage cluster if the network latency target value is less than or equal to a preset latency threshold; and a service module 830, further configured to continue to provide services for the cloud server instance using the virtual computing cluster and the first storage cluster if the network latency target value is greater than the preset latency threshold.
[0115] In some embodiments, the available resource zone is a region determined after a failure of the first availability zone is detected. The service migration apparatus further includes a recovery module, configured to restore the service of providing cloud server instances through the first computing cluster and the first storage cluster upon detection that the failure of the first computing cluster in the first availability zone has been eliminated.
[0116] In some embodiments, the service migration apparatus further includes: a receiving module, further configured to receive a data self-migration request from a client after finding a second availability zone that has not experienced a failure, the data self-migration request being used to request the migration of data stored in the first storage cluster to the second availability zone; a migration module, further configured to, in response to the data self-migration request, migrate the data stored in the first storage cluster to the second storage cluster in the second availability zone; and a service module 830, further configured to stop providing cloud server instance services through the first availability zone and provide cloud server instance services to clients through the second availability zone.
[0117] The functions of each module in the apparatus of this embodiment can be found in the corresponding description in the above method, and they have corresponding beneficial effects, which will not be repeated here.
[0118] This disclosure also provides a cloud service system. Figure 9 is a schematic diagram of the structure of a cloud service system according to an embodiment of this disclosure. As shown in Figure 9, the cloud service system includes: a cloud server 910 and a client 920. The cloud server 910 includes at least a cloud server instance 911, a first availability zone 912, and a second availability zone 913. The first availability zone 912 is equipped with a first computing cluster 9111 and a first storage cluster 9112. The cloud server instance 911 provides services to the client by relying on the first computing cluster 9111 and the first storage cluster 9112. The client 920 is used to access the cloud server instance 911. The cloud server 910 is used to execute any of the above-mentioned service migration methods when a failure is detected in the first availability zone 912.
[0119] The functions of each module in each device of the cloud service system of this disclosure embodiment can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.
[0120] Figure 10 is a block diagram of an electronic device used to implement embodiments of the present disclosure. As shown in Figure 10, the electronic device includes a memory 1001 and a processor 1002. The memory 1001 stores a computer program that can run on the processor 1002. When the processor 1002 executes the computer program, it implements the methods in the above embodiments. The number of memories 1001 and processors 1002 can be one or more. In a specific implementation, the electronic device may also include a communication interface 1003 for communicating with external devices and performing data exchange and transmission.
[0121] In practical implementation, if the memory 1001, processor 1002, and communication interface 1003 are implemented independently, they can be interconnected via a bus to communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is used in Figure 10, but this does not indicate that there is only one bus or one type of bus.
[0122] Optionally, in a specific implementation, if the memory 1001, processor 1002 and communication interface 1003 are integrated on a single chip, the memory 1001, processor 1002 and communication interface 1003 can communicate with each other through an internal interface.
[0123] This disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the methods provided in this disclosure.
[0124] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements the methods provided in this disclosure.
[0125] This disclosure also provides a chip including a processor for calling and executing instructions stored in a memory, causing a communication device on which the chip is installed to perform the methods provided in this disclosure.
[0126] This disclosure also provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, output interface, processor, and memory are connected through an internal connection path. The processor is used to execute code in the memory. When the code is executed, the processor is used to execute the method provided in the application embodiment.
[0127] It should be understood that the aforementioned processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting Advanced Reduced Instruction Set Machines (ARM) architecture.
[0128] Further, optionally, the aforementioned memory may include read-only memory and random access memory. The memory may be volatile memory or non-volatile memory, or may include both. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available. Examples include Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0129] In the above embodiments, implementation can be achieved, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to this disclosure are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.
[0130] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.
[0131] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this disclosure, "a plurality of" means two or more, unless otherwise explicitly specified.
[0132] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process. Furthermore, the scope of the preferred embodiments of this disclosure includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functionality involved.
[0133] The logic and / or steps described in the flowchart or otherwise herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-included system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).
[0134] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware, the program being stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiments.
[0135] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. This storage medium can be a read-only memory, a disk, or an optical disk, etc.
[0136] The above are merely exemplary embodiments of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any person skilled in the art can easily conceive of various variations or substitutions within the technical scope described in this disclosure, and these should all be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A service migration method applied to a cloud server, the method comprising: An available resource area is determined from the first availability zone, wherein the available resource area is a resource area in the first availability zone that normally provides storage services; In response to the detection that a first storage cluster in the first availability zone is deployed in the available resource area, a second availability zone without failure is located, wherein the first storage cluster is used to provide data storage services for cloud server instances in the first availability zone; Based on the computing resources in the second availability zone and the first storage cluster in the available resource zone, services are provided for cloud server instances in the first availability zone.
2. The method of claim 1, wherein, The step of responding to the detection that a first storage cluster in the first availability zone is deployed in the available resource area, and searching for a second availability zone that has not experienced a failure, includes: In response to detecting that the resource region where the first storage cluster is located is the available resource region, the second availability zone is located; or, In response to the detection of a failure in the resource region where the first storage cluster is located and the existence of an available resource region in the first availability zone, a periodic migration status detection is initiated. The migration status detection is used to detect whether the first storage cluster has been migrated to the available resource region. The second availability zone is then searched until the result of the migration status detection indicates that the first storage cluster has been migrated to the available resource region.
3. The method of claim 1 or 2, wherein, The process of finding a second availability zone that has not experienced a failure includes: Find an availability zone that is adjacent to the first availability zone and has not experienced a failure, and designate it as the second availability zone; the distance between the second availability zone and the first availability zone is less than a predetermined distance threshold.
4. The method of claim 1, wherein, The provision of services for cloud server instances in the first availability zone based on computing resources in the second availability zone and the first storage cluster in the availability resource zone includes: Based on the computing resources in the second availability zone, a logical availability zone is established in the second availability zone, and a virtual computing cluster is established in the logical availability zone; Bind the virtual computing cluster to the first availability zone, and establish a communication connection between the virtual computing cluster and the first storage cluster in the available resource zone; The virtual computing cluster and the first storage cluster are used to provide services for cloud server instances in the first availability zone.
5. The method of claim 4, wherein, After providing services for cloud server instances in the first availability zone using the virtual computing cluster and the first storage cluster, the method further includes: Copy the data stored in the first storage cluster to the second storage cluster in the second availability zone; Migrate the virtual computing cluster to the second computing cluster deployed in the second availability zone; The cloud server instance is provided through the second computing cluster and the second storage cluster.
6. The method of claim 5, wherein, Before copying the data stored in the first storage cluster to the second storage cluster in the second availability zone, the method further includes: Send a first prompt message to the client accessing the cloud server instance. The first prompt message is used to ask whether to copy the data stored in the first storage cluster to the second availability zone. Receive the confirmation message returned by the client in response to the first prompt information; If the confirmation message indicates that the data stored in the first storage cluster should be copied to the second availability zone, the operation of copying the data stored in the first storage cluster to the second storage cluster shall be performed. If the confirmation message indicates that the data stored in the first storage cluster should not be copied to the second availability zone, the service of the cloud server instance shall continue to be provided using the virtual computing cluster and the first storage cluster.
7. The method of claim 5, wherein, Before copying the data stored in the first storage cluster to the second storage cluster in the second availability zone, the method further includes: Query the network latency target value of the user to which the cloud server instance belongs. The network latency target value is the maximum network latency provided by the cloud server instance specified by the user. If the network latency target value is less than or equal to a preset latency threshold, the operation of copying the data stored in the first storage cluster to the second storage cluster is performed. If the network latency target value is greater than the preset latency threshold, the cloud server instance will continue to be provided using the virtual computing cluster and the first storage cluster.
8. The method of any one of claims 1, 2, 4-7, wherein, The available resource area is the area determined after a failure is detected in the first availability zone, and the method further includes: If the fault in the first availability zone is detected to have been eliminated, the service provided to the cloud server instance through the first computing cluster and the first storage cluster shall be restored.
9. The method of any one of claims 1, 2, 4-7, wherein, After finding the second availability zone that has not experienced a failure, the method further includes: Receive a data self-migration request from a client, the data self-migration request being used to request the migration of data stored in the first storage cluster to the second availability zone; In response to the data self-migration request, the data stored in the first storage cluster is migrated to the second storage cluster in the second availability zone; Stop providing services for the cloud server instance through the first availability zone, and provide services for the cloud server instance to the client through the second availability zone.
10. A cloud service system, wherein, The system includes a cloud server and a client. The cloud server includes at least a cloud server instance, a first availability zone, and a second availability zone. The first availability zone is deployed with a first computing cluster and a first storage cluster. The cloud server instance relies on the first computing cluster and the first storage cluster to provide services to the client. The client is used to access the cloud server instance; The cloud server is configured to execute the service migration method according to any one of claims 1-9 when a failure is detected in the first availability zone and no failure is detected in the second availability zone.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory, wherein the processor, when executing the computer program, performs the following operations: An available resource area is determined from the first availability zone, wherein the available resource area is a resource area in the first availability zone that normally provides storage services; In response to the detection that a first storage cluster in the first availability zone is deployed in the available resource area, a second availability zone without failure is located, wherein the first storage cluster is used to provide data storage services for cloud server instances in the first availability zone; Based on the computing resources in the second availability zone and the first storage cluster in the available resource zone, services are provided for cloud server instances in the first availability zone.
12. The electronic device of claim 11, wherein, The step of responding to the detection that a first storage cluster in the first availability zone is deployed in the available resource area, and searching for a second availability zone that has not experienced a failure, includes: In response to detecting that the resource region where the first storage cluster is located is the available resource region, the second availability zone is located; or, In response to the detection of a failure in the resource region where the first storage cluster is located and the existence of an available resource region in the first availability zone, a periodic migration status detection is initiated. The migration status detection is used to detect whether the first storage cluster has been migrated to the available resource region. The second availability zone is then searched until the result of the migration status detection indicates that the first storage cluster has been migrated to the available resource region.
13. The electronic device of claim 11 or 12, wherein, The process of finding a second availability zone that has not experienced a failure includes: Find an availability zone that is adjacent to the first availability zone and has not experienced a failure, and designate it as the second availability zone; the distance between the second availability zone and the first availability zone is less than a predetermined distance threshold.
14. The electronic device of claim 11, wherein, The provision of services for cloud server instances in the first availability zone based on computing resources in the second availability zone and the first storage cluster in the availability resource zone includes: Based on the computing resources in the second availability zone, a logical availability zone is established in the second availability zone, and a virtual computing cluster is established in the logical availability zone; Bind the virtual computing cluster to the first availability zone, and establish a communication connection between the virtual computing cluster and the first storage cluster in the available resource zone; The virtual computing cluster and the first storage cluster are used to provide services for cloud server instances in the first availability zone.
15. The electronic device of claim 14, wherein, After providing services for the cloud server instances in the first availability zone using the virtual computing cluster and the first storage cluster, the operation further includes: Copy the data stored in the first storage cluster to the second storage cluster in the second availability zone; Migrate the virtual computing cluster to the second computing cluster deployed in the second availability zone; The cloud server instance is provided through the second computing cluster and the second storage cluster.
16. The electronic device of claim 15, wherein, Before copying the data stored in the first storage cluster to the second storage cluster in the second availability zone, the operation further includes: Send a first prompt message to the client accessing the cloud server instance. The first prompt message is used to ask whether to copy the data stored in the first storage cluster to the second availability zone. Receive the confirmation message returned by the client in response to the first prompt information; If the confirmation message indicates that the data stored in the first storage cluster should be copied to the second availability zone, the operation of copying the data stored in the first storage cluster to the second storage cluster shall be performed. If the confirmation message indicates that the data stored in the first storage cluster should not be copied to the second availability zone, the service of the cloud server instance shall continue to be provided using the virtual computing cluster and the first storage cluster.
17. The electronic device of claim 15, wherein, Before copying the data stored in the first storage cluster to the second storage cluster in the second availability zone, the operation further includes: Query the network latency target value of the user to which the cloud server instance belongs. The network latency target value is the maximum network latency provided by the cloud server instance specified by the user. If the network latency target value is less than or equal to a preset latency threshold, the operation of copying the data stored in the first storage cluster to the second storage cluster is performed. If the network latency target value is greater than the preset latency threshold, the cloud server instance will continue to be provided using the virtual computing cluster and the first storage cluster.
18. The electronic device of any of claims 11, 12, 14-17, wherein, The available resource area is the area determined after a failure is detected in the first availability zone. The operation further includes: If the fault in the first availability zone is detected to have been eliminated, the service provided to the cloud server instance through the first computing cluster and the first storage cluster shall be restored.
19. A computer-readable storage medium storing a computer program that, when executed by a processor, implements the method of any one of claims 1 to 9.
20. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 9.