Cloud platform high-availability test environment construction method, test method and device

By installing a management node and deploying distributed storage on a single physical machine, a simplified setup of a high-availability testing environment for a cloud platform is achieved. This solves the problems of high cost and complexity in existing technologies, enabling low-cost and efficient setup and testing of the testing environment.

CN115080184BActive Publication Date: 2025-11-18SHANGHAI YUNZHOU INFORMATION & TECH LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210663562.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-13
Publication Date
2025-11-18
Estimated Expiration
2042-06-13

AI Technical Summary

Technical Problem

In existing technologies, building a high-availability testing environment for a cloud platform requires a large number of physical machines, resulting in high costs, complex setup methods, and inconvenient testing.

Method used

Install the system image file of the primary management node on a physical machine, create multiple cloud hosts, and deploy distributed storage and high availability management nodes in the cloud hosts. By using nested virtualization, the cloud hosts are virtualized as physical machine resources, thus building a multi-node high availability test environment.

Benefits of technology

High availability testing of multi-node distributed storage, management nodes, image repositories, and compute nodes can be completed with a small number of physical machines. It is simple to set up, low in cost, more convenient to test, and improves testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115080184B_ABST
    Figure CN115080184B_ABST
Patent Text Reader

Abstract

The application provides a cloud platform high-availability test environment construction method, a test method and a device thereof. In the scheme, a cloud platform high-availability test environment capable of performing distributed storage high-availability of multiple nodes, management node high-availability, image warehouse high-availability, and computing node high-availability and other related tests can be constructed by a small number of physical machines, which is simple to construct and has a low construction cost. On this basis, after the cloud platform high-availability test environment is constructed by the above method, a test virtual machine can be created based on a cloud host in the cloud environment, then the cloud host corresponding to the test virtual machine is closed, and according to the running state of the test virtual machine after being closed, the test result of the cloud platform high-availability function is determined, so as to complete the high-availability test of the cloud platform, making the test simpler and more convenient and improving the overall test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information technology, and in particular to a method for building a high-availability testing environment for a cloud platform, a testing method, and equipment thereof. Background Technology

[0002] With the continuous development of information technology, cloud computing is being used more and more widely in various fields, and how to improve the high availability of cloud platforms has become an increasingly important issue. High availability (HA) is an essential function of cloud computing applications, and almost all applications that have migrated to the cloud use it. Therefore, it is necessary to test the high availability function of the cloud platform in a certain way.

[0003] Traditionally, setting up a high-availability testing environment for a cloud platform requires a large number of physical machines. For example, in a real-world scenario, setting up a high-availability testing environment for a cloud platform might require deploying 3 nodes for distributed storage (3 physical machines), 2 nodes for management (2 physical machines), 2 nodes for image repository (2 physical machines), and 3 nodes for compute (3 physical machines). In total, about 10 physical machines are needed to complete the testing environment setup. This results in high setup costs, complex setup methods, and inconvenient testing. Summary of the Invention

[0004] One objective of this application is to provide a method for building a high-availability testing environment for a cloud platform, a testing method, and equipment, in order to solve the problems of high building costs, complex building methods, and inconvenient testing in the prior art.

[0005] To achieve the above objectives, this application provides a method for building a high-availability testing environment for a cloud platform, the method comprising:

[0006] Install the system image file of the primary management node on a physical machine so that the primary management node service runs after the physical machine's system boots up, and add the physical machine as a primary compute node;

[0007] Create multiple cloud hosts managed by the primary management node, wherein at least two cloud hosts install the system image file of the secondary management node, and the remaining cloud hosts install the system image file of the secondary computing node. The secondary management node also serves as an image repository node.

[0008] Deploy distributed storage on at least two cloud hosts, and deploy high availability management nodes and high availability image warehouses on the cloud host that serves as a secondary management node;

[0009] The multiple cloud hosts are added to the cloud environment managed by the secondary management node, so that the cloud hosts are virtualized as physical machine resources of the cloud environment, and the distributed storage deployed in the cloud hosts is added to the cloud environment as storage resources of the cloud environment.

[0010] Furthermore, the method also includes:

[0011] Enable the nested virtualization function of the physical machine.

[0012] Furthermore, multiple cloud hosts managed by the aforementioned primary management node are created, including:

[0013] Multiple cloud hosts are created based on the first human-computer interaction interface provided by the primary management node.

[0014] Furthermore, distributed storage is deployed across at least two cloud hosts, including:

[0015] Deploy distributed storage across at least two cloud hosts and set the number of replicas to be the same as the number of cloud hosts.

[0016] Furthermore, distributed storage is deployed across at least two cloud hosts, including:

[0017] Deploy distributed storage across all cloud hosts managed by the primary management node.

[0018] Furthermore, the multiple cloud hosts are added to the cloud environment managed by the secondary management node, so that the cloud hosts are virtualized as physical machine resources of the cloud environment, and the distributed storage deployed in the cloud hosts is added to the cloud environment as storage resources of the cloud environment, including:

[0019] Based on the second human-computer interaction interface provided by the secondary management node, the multiple cloud hosts are added to the cloud environment managed by the secondary management node, so that the cloud hosts are virtualized as physical machine resources of the cloud environment, and the distributed storage deployed in the cloud hosts is added to the cloud environment as storage resources of the cloud environment.

[0020] This application also provides a cloud platform high availability testing method, the method comprising:

[0021] The test environment is built using the cloud platform high availability test environment building method described above;

[0022] Create a test virtual machine based on a cloud host in the cloud environment;

[0023] Shut down the cloud host corresponding to the test virtual machine;

[0024] Based on the running status of the test virtual machine after shutdown, determine the test results of the cloud platform's high availability function.

[0025] Furthermore, based on the running status of the test virtual machine after shutdown, the test results of the cloud platform's high availability function are determined, including:

[0026] If, after shutting down the cloud host corresponding to the test virtual machine, the test virtual machine is moved from its original cloud host to another cloud host in the cloud environment to continue running, then the high availability function of the cloud platform is confirmed to be normal.

[0027] Based on another aspect of this application, a computing device is also provided, the device including a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to execute the cloud platform high availability test environment construction method or test method.

[0028] This application also provides a computer-readable medium storing computer program instructions that can be executed by a processor to implement the cloud platform high availability test environment construction method or test method.

[0029] Compared with existing technologies, this application provides a method for building a high-availability testing environment for a cloud platform. This method involves installing the system image file of a primary management node on a physical machine, enabling the physical machine to run the services of the primary management node after system startup, and adding the physical machine as a primary compute node. Then, multiple cloud hosts are created under the management of the primary management node, with at least two cloud hosts installing the system image file of a secondary management node, and the remaining cloud hosts installing the system image file of a secondary compute node. The secondary management node also serves as an image repository node. Distributed storage is deployed on at least two cloud hosts, and high availability for the management node and the image repository is deployed on the cloud host serving as the secondary management node. Finally, the multiple cloud hosts are added to the cloud environment managed by the secondary management node, making the cloud hosts virtual physical machine resources of the cloud environment, and the distributed storage deployed on the cloud hosts is added to the cloud environment as storage resources. Therefore, a high-availability testing environment for a cloud platform can be built with only a small number of physical machines, enabling testing of high availability for distributed storage, management nodes, image repositories, and compute nodes across multiple nodes. The setup is simple and cost-effective.

[0030] Based on this, after building the cloud platform high availability test environment using the above method, a test virtual machine can be created based on a cloud host in the cloud environment. Then, the cloud host corresponding to the test virtual machine is shut down, and the test results of the cloud platform high availability function are determined based on the running status of the test virtual machine after shutdown. This completes the high availability test of the cloud platform, making the test simpler and more convenient, and improving the overall efficiency of the test. Attached Figure Description

[0031] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:

[0032] Figure 1 A flowchart illustrating a method for building a high-availability testing environment for a cloud platform, as provided in an embodiment of this application.

[0033] Figure 2 A flowchart illustrating a cloud platform high availability testing method provided in this application embodiment;

[0034] Figure 3 The overall flowchart for implementing high availability testing of a cloud platform using the solution provided in the embodiments of this application is shown below;

[0035] The same or similar reference numerals in the accompanying drawings represent the same or similar parts. Detailed Implementation

[0036] The present application will now be described in further detail with reference to the accompanying drawings.

[0037] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0038] In a typical configuration of this application, the terminal and the service network devices each include one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0039] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0040] Computer-readable media include both permanent and non-permanent, removable and non-removable media, which can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only optical disc (CD-ROM), digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0041] Some embodiments of this application provide a method for building a cloud platform high availability test environment. This method can build a cloud platform high availability test environment that can perform related tests such as distributed storage high availability, management node high availability, image repository high availability, and compute node high availability using only a small number of physical machines. The method is simple to build and has a low cost.

[0042] In practical scenarios, the execution subject of this method can be a user device, a network device, or a device composed of user devices and network devices integrated through a network, or it can be an application running on the aforementioned devices. The user device includes, but is not limited to, various terminal devices such as computers, mobile phones, and tablets; the network device includes, but is not limited to, network hosts, single network servers, multiple network server sets, or cloud computing-based computer sets. Here, the cloud consists of a large number of hosts or network servers based on cloud computing, where cloud computing is a type of distributed computing, consisting of a virtual computer composed of a group of loosely coupled computer sets.

[0043] Figure 1 The present application illustrates a process flow for setting up a high-availability testing environment for a cloud platform, comprising at least the following processing steps:

[0044] Step S101: Install the system image file of the primary management node on a physical machine so that the primary management node service runs after the physical machine's system starts up, and add the physical machine as a primary computing node.

[0045] The system image file for the primary management node can be a pre-prepared image file for installing the system on a physical machine, enabling the physical machine to function as a management node after installation. The system image file can be an ISO format file. After the physical machine installs the management node's ISO file, it will automatically start the management node service upon system startup and provide a corresponding user interface. This interface allows users to log in, access the system, and perform related configuration operations. For example, when adding the physical machine as a primary computing node, the user can add the computing node through the user interface by selecting options within the interface.

[0046] Step S102: Create multiple cloud hosts managed by the first-level management node.

[0047] Adding cloud hosts can be done through the human-computer interaction interface provided by the primary management node. Multiple cloud hosts can be created based on this interface. For example, the interface can provide cloud host creation options, allowing users to quickly create a cloud host by selecting the appropriate option. Each cloud host is a virtual machine created based on the services provided by the primary management node and utilizing the resources of the physical machine. For instance, the physical machine can allocate CPU, memory, and disk resources according to the user's input creation options to generate a preset number of virtual machines, which are then managed by the primary management node as multiple cloud hosts.

[0048] After creating the cloud hosts, the system image files of secondary management nodes can be installed on at least two cloud hosts, serving as secondary management nodes. These secondary management nodes also act as image repository nodes. The remaining cloud hosts install the system image files of secondary compute nodes, serving as compute nodes. For example, if three cloud hosts—cloud host 1, cloud host 2, and cloud host 3—are created and managed by the primary management node in this step, the system image files of the secondary management nodes can be installed on cloud host 1 and cloud host 2, while the system image files of the compute nodes can be installed on cloud host 3. Simultaneously, the software required for the image repository can be installed on cloud host 1 and cloud host 2, allowing cloud host 1 and cloud host 2 to simultaneously function as image repository nodes.

[0049] In this embodiment, the difference between the primary management node and the secondary management node lies in their management levels. The primary management node manages multiple virtual cloud hosts created based on actual physical machines, such as cloud host 1, cloud host 2, and cloud host 3 in the aforementioned scenario. The secondary management node, on the other hand, manages the cloud environment built upon cloud host 1, cloud host 2, and cloud host 3, which is the cloud environment ultimately built for high availability testing by the solution provided in this embodiment. While both may rely on the same resources during operation, they manage different objects.

[0050] Step S103: Deploy distributed storage on at least two cloud hosts, and deploy high availability of management nodes and high availability of image warehouses on the cloud hosts that serve as secondary management nodes.

[0051] When deploying distributed storage, it can be deployed on all cloud hosts managed by the primary management node. For example, if the primary management node actually manages three cloud hosts, namely cloud host 1, cloud host 2, and cloud host 3, then distributed storage can be deployed on each of these three cloud hosts.

[0052] Furthermore, for the deployed distributed storage, the number of replicas can be set to be the same as the number of cloud hosts. For example, when distributed storage is deployed on all cloud hosts in this embodiment, the number of replicas for storing data can also be set to the same number. Taking the aforementioned scenario as an example, distributed storage is deployed on cloud host 1, cloud host 2, and cloud host 3. Here, distributed storage can be Ceph, where cloud host 1, cloud host 2, and cloud host 3 serve as three distributed storage nodes of Ceph, and the Ceph management node and storage node can be reused.

[0053] Management node high availability ensures that if a single management node in a cloud platform fails or becomes unavailable, other management nodes can seamlessly take over and support the management node's services. Image repository high availability is similar to management node high availability, ensuring that if one image repository node fails, other image repository nodes can still support image upload and download services.

[0054] Step S104: Add the multiple cloud hosts to the cloud environment managed by the secondary management node, so that the cloud hosts are virtualized as physical machine resources of the cloud environment, and add the distributed storage deployed in the cloud hosts to the cloud environment as storage resources of the cloud environment. This completes the construction of the high-availability test environment for the cloud platform at this point.

[0055] When adding physical machine resources in a cloud environment, the multiple cloud hosts can also be added to the cloud environment managed by the secondary management node based on the human-machine interface provided by the secondary management node, i.e., based on the second human-machine interface provided by the secondary management node. This allows the cloud hosts to be virtualized as physical machine resources of the cloud environment, and the distributed storage deployed in the cloud hosts can be added to the cloud environment as storage resources of the cloud environment.

[0056] Taking the aforementioned three cloud host scenarios as an example, the IP addresses of cloud host 1, cloud host 2, and cloud host 3 can be added to the cloud environment through the second human-machine interface of the secondary management node, serving as physical machine resources within the cloud environment managed by the secondary management node. Thus, a cloud platform high-availability test environment capable of performing tests on distributed storage high availability, management node high availability, image repository high availability, and compute node high availability across multiple nodes can be built using only one physical machine. Without the solution described in this application, at least 10 physical machines are required to build the same test environment: 3 physical machines for 3-node distributed storage high availability, 2 physical machines for 2-node management node high availability, 2 physical machines for 2-node image repository high availability, and 3 physical machines for 3-node compute node high availability. Therefore, the solution provided in this application is simple to build and has a low construction cost.

[0057] In a real-world scenario, cloud host 1, cloud host 2, and cloud host 3 are not actually physical machines, but rather virtual machines created based on resources provided by a physical machine. Therefore, when they are considered physical machine resources within a cloud environment, they are virtual physical machine resources added within a virtual cloud environment. To successfully implement this virtual environment, nested virtualization can be used. Thus, nested virtualization can be enabled on the physical machines to facilitate multi-level nested virtualization and the setup of the test environment.

[0058] Figure 2 The present application illustrates a processing flow of a cloud platform high availability testing method according to an embodiment of the present application, which includes at least the following processing steps:

[0059] Step S201: The test environment is built using the aforementioned cloud platform high availability test environment building method.

[0060] Step S202: After the test environment is set up, a test virtual machine can be created based on a cloud host in the built cloud environment. For example, taking the aforementioned scenario, a cloud host 4 can be created as a test virtual machine, which can be created using the virtual physical machine resources corresponding to cloud host 2. At this time, the relationship between cloud host 4 and cloud host 2 is similar to that between cloud host 2 and a physical machine; for cloud host 4, cloud host 2 is its corresponding physical machine. Therefore, by performing corresponding operations on cloud host 2, various failures of the physical machine can be simulated, thereby testing the high availability performance of the cloud environment composed of cloud host 1, cloud host 2, and cloud host 3. Since cloud host 2 is essentially a virtual machine, not a physical machine, various operations on it only require changing the cloud environment settings through various configuration items. Therefore, the testing operation is convenient and can effectively improve testing efficiency.

[0061] Step S203: Shut down the cloud host corresponding to the test virtual machine to simulate the situation when the physical machine fails.

[0062] Step S204: Determine the test results of the cloud platform's high availability function based on the running status of the test virtual machine after shutdown.

[0063] In the pre-built test environment, some cloud hosts are used both as physical machines in the cloud environment and as distributed storage nodes. Simultaneously, some cloud hosts are also reused as management nodes and image repository nodes. For example, in the aforementioned scenario, cloud hosts 1, 2, and 3 serve as three physical machines and three distributed storage nodes in the cloud environment, while cloud hosts 1 and 2 serve as two management nodes and two image repository nodes. If the high availability function is normal, the high availability functions of the management nodes and the image repository will not be affected regardless of which node fails. The virtual resources required by the test virtual machines can also be provided by other cloud hosts. Furthermore, since the distributed storage uses multi-replica storage, it is also unaffected by single-node failures, and data read and write operations can still proceed normally. Therefore, if cloud host 2 is shut down, according to the expected behavior of the cloud platform's high availability function, cloud host 4 should migrate to cloud host 1 or 3 to continue running.

[0064] Therefore, in some embodiments of this application, when determining the test results of the cloud platform's high availability function, the judgment can be made based on the running status of the test virtual machine after it is shut down. If, after shutting down the cloud host corresponding to the test virtual machine, the test virtual machine is moved from the original cloud host to another cloud host in the cloud environment to continue running, then the cloud platform's high availability function is determined to be normal, thereby obtaining an accurate high availability test result.

[0065] Figure 3The overall process of implementing high availability testing of a cloud platform using the solution provided in the embodiments of this application is illustrated, including the setup of the test environment and the subsequent high availability testing process. The specific steps are as follows:

[0066] Step S1. On a physical machine 1, enable the nested virtualization option and install the management node ISO.

[0067] After the management node ISO is installed, the management node service will start by default after the physical machine's system boots up, and provide the management node UI interface 1, which is used to manage virtual machines created based on the physical machine.

[0068] Step S2. Add this physical machine as a compute node on the management node UI interface 1. That is to say, the physical machine managed by the management node has only 1 physical machine in its resource pool.

[0069] Step S3. Create a three-layer network 1 on the management node UI interface 1, and create 3 cloud hosts (Cloud Host 1, Cloud Host 2, Cloud Host 3). Here, Cloud Host 1 and Cloud Host 2 are installed using the management node ISO, and Cloud Host 3 is installed using the compute node ISO. Cloud Host 1 or Cloud Host 2, acting as the management node, can provide a corresponding UI interface 2 for managing the cloud environment composed of Cloud Host 1, Cloud Host 2, and Cloud Host 3.

[0070] Step S4. Deploy distributed storage on cloud host 1, cloud host 2, and cloud host 3, and then deploy high availability management nodes and high availability image warehouses on cloud host 1 and cloud host 2.

[0071] a) The system used for distributed storage here can be selected according to the actual testing needs. For example, in this embodiment, it can be Ceph. Cloud hosts 1, 2, and 3 are respectively used as three Ceph nodes, and the Ceph management node and storage node are reused, and the distributed storage has 3 replicas.

[0072] b) High availability of management nodes ensures that if a single management node of the cloud platform fails or becomes unreachable, another management node can seamlessly take over the functions that support the management node's services.

[0073] c) Similar to high availability of management nodes, high availability of image repositories is used to ensure that when one image repository node fails, another node can support image upload and download services.

[0074] Step S5. In the management node UI interface 2, add the IP addresses of cloud host 1, cloud host 2, and cloud host 3 to the cloud environment as physical machine resources. That is, cloud host 1 or cloud host 2, as the physical machine resource pool managed by the management node, contains three virtual physical machines: cloud host 1, cloud host 2, and cloud host 3. Simultaneously, add the deployed distributed storage to the cloud environment as storage resources.

[0075] Here, cloud hosts 1, 2, and 3 serve as three physical machines in the cloud environment and are also reused as three distributed storage nodes in the cloud environment. At the same time, cloud hosts 1 and 2 serve as two management nodes in the cloud environment and are also reused as two image repository nodes in the cloud environment.

[0076] Step S6. Create a three-layer network 2 on the management node UI interface 2, and create a cloud host 4 as a test virtual machine for the high availability function that needs to be tested.

[0077] Step S7. Locate the virtual physical machine where cloud server 4 is located, such as cloud server 2 or cloud server 3, etc. Here, cloud server 2 is used as an example. After finding the corresponding "virtual physical machine", you can simulate a fault on the "virtual physical machine" to test the high availability function.

[0078] Step S8. On the management node UI interface 1, shut down the cloud host 2 to simulate the power failure of the physical machine corresponding to the cloud host 4. The high availability function of the cloud platform can be determined based on its subsequent running status.

[0079] If the high availability function is functioning correctly, the high availability functions of the management node and the image repository will not be affected regardless of which node fails. The virtual resources required by the test virtual machine can also be provided by other cloud hosts. Furthermore, since distributed storage uses multi-replica storage, it is also unaffected by single-node failures, and data read and write operations can still proceed normally. Therefore, if cloud host 2 is shut down, according to the expected behavior of the cloud platform's high availability function, cloud host 4 should migrate to cloud host 1 or 3 to continue running.

[0080] Therefore, a cloud platform high availability testing environment can be built with only a small number of physical machines, enabling tests on distributed storage high availability, management node high availability, image repository high availability, and compute node high availability across multiple nodes. The setup is simple and cost-effective.

[0081] Based on this, after building the cloud platform high availability test environment using the above method, a test virtual machine can be created based on a cloud host in the cloud environment. Then, the cloud host corresponding to the test virtual machine is shut down, and the test results of the cloud platform high availability function are determined based on the running status of the test virtual machine after shutdown. This completes the high availability test of the cloud platform, making the test simpler and more convenient, and improving the overall efficiency of the test.

[0082] Based on the same inventive concept, this application also provides a computing device, the method corresponding to which is the cloud platform high availability test environment construction method or cloud platform high availability test method in the foregoing embodiments, and the principle of solving the problem is similar to that of the method.

[0083] The computing device provided in this application includes a memory for storing computer program instructions and a processor for executing the computer program instructions. When the computer program instructions are executed by the processor, the device is triggered to implement the methods and / or technical solutions of the aforementioned embodiments of this application.

[0084] In particular, the methods and / or embodiments in this application can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowchart. When the computer program is executed by a processing unit, it performs the functions defined in the methods of this application.

[0085] It should be noted that the computer-readable medium described in this application can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0086] In this application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, capable of transmitting, propagating, or transmitting a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wireline, optical fiber, RF, etc., or any suitable combination thereof.

[0087] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0088] The flowcharts or block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of devices, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-specific system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0089] In another aspect, this application also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The aforementioned computer-readable medium carries one or more computer program instructions, which may be executed by a processor to implement the methods and / or technical solutions of the various embodiments of this application.

[0090] It should be noted that this application can be implemented in software and / or a combination of software and hardware, for example, using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In some embodiments, the software program of this application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, magnetic or optical drives, floppy disks, and similar devices. Furthermore, some steps or functions of this application can be implemented in hardware, for example, as circuitry that cooperates with a processor to perform the various steps or functions.

[0091] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within this application. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in the apparatus claims may also be implemented by a single unit or device through software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any particular order. The numerical order of the sequence numbers corresponding to the steps does not indicate any particular execution order; the steps may be executed in any combination of orders provided that the execution logic is followed.

Claims

1. A method for building a high-availability testing environment for a cloud platform, characterized in that, The method includes: Install the system image file of the primary management node on a physical machine so that the primary management node service runs after the physical machine's system boots up, and add the physical machine as a primary compute node; Multiple cloud hosts are created and managed by the primary management node. Each cloud host is a virtual machine created based on the services provided by the primary management node and relying on the resources of the physical machine. At least two cloud hosts install the system image file of the secondary management node, and the remaining cloud hosts install the system image file of the secondary computing node. The secondary management node also serves as an image repository node. The primary management node is used to manage multiple virtual cloud hosts created based on the actual physical machine, and the secondary management node manages the cloud environment built on the cloud hosts. Deploy distributed storage on at least two cloud hosts, and deploy high availability management nodes and high availability image warehouses on the cloud host that serves as a secondary management node; The multiple cloud hosts are added to the cloud environment managed by the secondary management node, so that the cloud hosts are virtualized as physical machine resources of the cloud environment for creating test virtual machines, and the distributed storage deployed in the cloud hosts is added to the cloud environment as storage resources of the cloud environment.

2. The method according to claim 1, characterized in that, The method further includes: Enable the nested virtualization function of the physical machine.

3. The method according to claim 1, characterized in that, Create multiple cloud hosts managed by the aforementioned primary management node, including: Multiple cloud hosts are created based on the first human-computer interaction interface provided by the primary management node.

4. The method according to claim 1, characterized in that, Deploy distributed storage across at least two cloud hosts, including: Deploy distributed storage across at least two cloud hosts and set the number of replicas to be the same as the number of cloud hosts.

5. The method according to claim 1 or 4, characterized in that, Deploy distributed storage across at least two cloud hosts, including: Deploy distributed storage across all cloud hosts managed by the primary management node.

6. The method according to claim 1, characterized in that, Adding the multiple cloud hosts to the cloud environment managed by the secondary management node, so that the cloud hosts are virtualized as physical machine resources of the cloud environment, and adding the distributed storage deployed in the cloud hosts to the cloud environment as storage resources of the cloud environment, including: Based on the second human-computer interaction interface provided by the secondary management node, the multiple cloud hosts are added to the cloud environment managed by the secondary management node, so that the cloud hosts are virtualized as physical machine resources of the cloud environment, and the distributed storage deployed in the cloud hosts is added to the cloud environment as storage resources of the cloud environment.

7. A method for testing the high availability of a cloud platform, characterized in that, The method includes: The test environment is built using the method described in any one of claims 1 to 6; Create a test virtual machine based on a cloud host in the cloud environment; Shut down the cloud host corresponding to the test virtual machine; Based on the running status of the test virtual machine after shutdown, determine the test results of the cloud platform's high availability function.

8. The method according to claim 7, characterized in that, Based on the running status of the test virtual machine after shutdown, determine the test results of the cloud platform's high availability function, including: If, after shutting down the cloud host corresponding to the test virtual machine, the test virtual machine is moved from its original cloud host to another cloud host in the cloud environment to continue running, then the high availability function of the cloud platform is confirmed to be normal.

9. A computing device, the device comprising a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein, When the computer program instructions are executed by the processor, the device is triggered to perform the method of any one of claims 1 to 8.

10. A computer-readable medium having stored thereon computer program instructions that can be executed by a processor to implement the method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Cloud resource configuration method and physical machine for realizing cloud resource configuration

    CN113193986A

  • CBTC integration test deployment method

    CN113342688A