Virtual machine load test method and device, equipment and medium

By automating virtual machine creation, load attachment and stability testing methods, the problem of cloud host stability testing in the existing technology is solved, and a faster and more efficient testing process is achieved.

CN119668768APending Publication Date: 2025-03-21BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311212381.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2025-03-21

Smart Images

  • Figure CN119668768A_ABST
    Figure CN119668768A_ABST
Patent Text Reader

Abstract

The invention relates to a virtual machine load testing method and device, equipment and a medium. The virtual machine load test method comprises the following steps: in response to a virtual machine creation request of a user, creating a target virtual machine corresponding to the virtual machine creation request; in response to a load addition request of a user, adding a target load to the target virtual machine based on the target test tool; in response to a virtual machine login request of a user, performing a stability test on the target virtual machine according to the target load to obtain a test result; and monitoring the test result in real time, and displaying the load condition of the target virtual machine. According to the embodiment of the invention, the downloading and installation process of a test tool can be omitted, and the test speed is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a virtual machine load testing method, device, equipment and medium. Background Art

[0002] Cloud host (virtual machine) stability testing refers to running various loads inside the cloud host for a long time and checking whether the virtual machine status will have abnormal conditions such as downtime.

[0003] In the related art, for stability testing of batch cloud hosts, users still need to manually download and install testing tools inside virtual machines, which is very time-consuming and highly repetitive. Summary of the invention

[0004] In order to solve the above technical problems, the present disclosure provides a virtual machine load testing method, device, equipment and medium.

[0005] In a first aspect, the present disclosure provides a virtual machine load testing method, comprising:

[0006] In response to a user's virtual machine creation request, create a target virtual machine corresponding to the virtual machine creation request;

[0007] In response to a user's load addition request, adding a target load to a target virtual machine based on a target testing tool;

[0008] In response to the user's virtual machine login request, a stability test is performed on the target virtual machine according to the target load to obtain a test result;

[0009] Monitor the test results in real time and display the load status of the target virtual machine.

[0010] In a second aspect, the present disclosure provides a virtual machine load testing device, comprising:

[0011] A first processing module, configured to respond to a user's virtual machine creation request and create a target virtual machine corresponding to the virtual machine creation request;

[0012] A second processing module is used to respond to a user's load addition request and add a target load to a target virtual machine based on a target testing tool;

[0013] The third processing module is used to respond to the user's virtual machine login request, perform a stability test on the target virtual machine according to the target load, and obtain a test result;

[0014] The load display module is used to monitor the test results in real time and display the load status of the target virtual machine.

[0015] In a third aspect, the present disclosure provides a virtual machine load testing device, including:

[0016] processor;

[0017] A memory for storing executable instructions;

[0018] The processor is used to read executable instructions from the memory and execute the executable instructions to implement the virtual machine load testing method of the first aspect.

[0019] In a fourth aspect, the present disclosure provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the processor implements the virtual machine load testing method of the first aspect.

[0020] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:

[0021] The virtual machine load testing method, apparatus, equipment and medium of the embodiments of the present disclosure can respond to the user's virtual machine creation request, create a target virtual machine corresponding to the virtual machine creation request, then respond to the user's load addition request, add a target load to the target virtual machine based on the target testing tool, and then respond to the user's virtual machine login request, perform a stability test on the target virtual machine according to the target load to obtain the test results, and finally monitor the test results in real time to display the load status of the target virtual machine. As a result, the target testing tool can be directly selected to add the target load to the target virtual machine, eliminating the download and installation process of the testing tool and improving the testing speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0023] Figure 1 A flow chart of a virtual machine load testing method provided by an embodiment of the present disclosure;

[0024] Figure 2 A schematic diagram of an interface for creating a virtual machine module provided in an embodiment of the present disclosure;

[0025] Figure 3 A schematic diagram of an interface of a load attachment module provided in an embodiment of the present disclosure;

[0026] Figure 4 A schematic diagram of an interface of a file upload module provided in an embodiment of the present disclosure;

[0027] Figure 5 A schematic diagram of an interface of a document editing module provided in an embodiment of the present disclosure;

[0028] Figure 6 A schematic diagram of an interface of a chart display module provided in an embodiment of the present disclosure;

[0029] Figure 7 A schematic diagram of the structure of a virtual machine load testing device provided in an embodiment of the present disclosure;

[0030] Figure 8 A schematic diagram of the structure of a virtual machine load testing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0032] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0033] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0034] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0035] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0036] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0037] In order to solve the above problems, the present disclosure provides a virtual machine load testing method, device, equipment and medium. Figures 1 to 6 The virtual machine load testing method provided by the embodiment of the present disclosure is described in detail.

[0038] Figure 1 A flow chart of a virtual machine load testing method provided by an embodiment of the present disclosure is shown.

[0039] In the disclosed embodiment, the virtual machine load testing method may be performed by an electronic device, wherein the electronic device may include but is not limited to terminals such as laptop computers and desktop computers, or servers such as cloud servers or cloud server clusters.

[0040] like Figure 1 As shown, the virtual machine load testing method may include the following steps.

[0041] S110. In response to a user's virtual machine creation request, create a target virtual machine corresponding to the virtual machine creation request.

[0042] In an embodiment of the present disclosure, the electronic device may create a target virtual machine corresponding to the virtual machine creation request in response to a user's virtual machine creation request.

[0043] Optionally, the virtual machine creation request may be a request to create a virtual machine.

[0044] Optionally, the target virtual machine may be a created virtual machine.

[0045] Specifically, when a user wants to create a virtual machine, the user may send a virtual machine creation request to the electronic device, and the electronic device may create a target virtual machine corresponding to the virtual machine creation request in response to the virtual machine creation request.

[0046] Figure 2 A schematic diagram of an interface for creating a virtual machine module provided by an embodiment of the present disclosure is shown.

[0047] like Figure 2 As shown, the electronic device can display an interface for creating a virtual machine module to the user. The user can enter the information of the virtual machine to be created through the interface, such as a series of parameters such as model, host machine, package, key, image, password, number of virtual machines, etc., and select the Submit option to send a virtual machine creation request to the electronic device. The electronic device can create a corresponding target virtual machine in response to the virtual machine creation request.

[0048] S120. In response to a user's load addition request, add a target load to a target virtual machine based on a target testing tool.

[0049] In an embodiment of the present disclosure, the electronic device may add a target load to a target virtual machine based on a target testing tool in response to a user's load addition request.

[0050] Optionally, the load addition request may be a request to add a load to the virtual machine.

[0051] Optionally, the target test tool may be a test tool for performing load addition.

[0052] Optionally, the target load may be a load that needs to be added, for example, the target load may include at least one of a processor load, a memory load, a disk load, and a network load.

[0053] Specifically, after the target virtual machine is created, the user can also add a load to the target virtual machine, that is, send a load addition request to the electronic device, and the electronic device can respond to the load addition request and add a target load to the target virtual machine based on the target testing tool.

[0054] Figure 3 A schematic diagram of an interface of a load addition module provided in an embodiment of the present disclosure is shown.

[0055] like Figure 3 As shown, the electronic device can display the interface of the load attachment module to the user, and the user can select the corresponding target test tool through the interface to attach the target load to the target virtual machine. For example, the user can select the test tool (i.e., CpuLoadTool) for the central processing unit (CPU) as Cpuburn.exe, and the corresponding command (Command) as . / cpuburn-n 4-u 5, and can select the test tool (i.e., MemLoadTool) for the memory (Mem) as Testlinit64.exe, and the corresponding command (Command) as . / Testlimit64.exe-d-c11264, etc., which can include at least one of the processor (CPU or graphics processing unit (GPU)) load, memory (Mem) load, disk (Disk) load, network (Network) load, etc., which are not limited here.

[0056] S130. In response to the user's virtual machine login request, a stability test is performed on the target virtual machine according to the target load to obtain a test result.

[0057] In an embodiment of the present disclosure, the electronic device may respond to a user's virtual machine login request and perform a stability test on a target virtual machine according to a target load to obtain a test result.

[0058] Optionally, the virtual machine login request may be a request for logging into a virtual machine.

[0059] Optionally, the stability test may be to test the stability of the virtual machine under load.

[0060] Optionally, the test result may be a result obtained after performing a stability test.

[0061] Specifically, a user can log in to a virtual machine through an electronic device. For example, the user can enter the corresponding login parameters of the virtual machine, such as name, Internet Protocol Address (IP), key, etc., in the interface of the virtual machine login module displayed by the electronic device, and select the submit option to make a virtual machine login request. The electronic device can respond to the virtual machine login request, perform a stability test on the target virtual machine according to the target load, and obtain the test results.

[0062] S140. Monitor the test results in real time and display the load status of the target virtual machine.

[0063] In the disclosed embodiment, after the electronic device performs a stability test and obtains the test result, it can monitor the test result in real time and display the load condition of the target virtual machine.

[0064] Specifically, after the electronic device performs a stability test on the virtual machine through the target load, the test result can be monitored in real time, and the load status of the target virtual machine can be displayed to the user according to the test result.

[0065] Therefore, in the embodiment of the present disclosure, it is possible to respond to the user's virtual machine creation request and create a target virtual machine corresponding to the virtual machine creation request, then respond to the user's load addition request and add a target load to the target virtual machine based on the target testing tool, and then respond to the user's virtual machine login request and perform a stability test on the target virtual machine according to the target load to obtain the test results, and finally monitor the test results in real time to display the load status of the target virtual machine. Therefore, the target testing tool can be directly selected to add the target load to the target virtual machine, eliminating the download and installation process of the testing tool and improving the testing speed.

[0066] Optionally, before S110, the virtual machine load testing method may further include: in response to a file upload operation of a user, receiving a plurality of test tools uploaded by the user; and uploading the plurality of test tools to a file transfer server.

[0067] In an embodiment of the present disclosure, the electronic device may receive a plurality of testing tools uploaded by a user in response to a file upload operation by the user.

[0068] Optionally, the file upload operation may be an operation for uploading a file of a test tool.

[0069] Optionally, the testing tool may be a tool for performing load testing on a virtual machine.

[0070] Specifically, a user may upload multiple test tools through an electronic device, that is, perform a file upload operation, and the electronic device may receive the multiple test tools uploaded by the user in response to the file upload operation.

[0071] Figure 4 A schematic diagram of an interface of a file upload module provided in an embodiment of the present disclosure is shown.

[0072] like Figure 4 As shown, the electronic device can display the interface of the file upload module to the user, and the user can upload the files corresponding to the test tool in the interface. For example, the user can select the files corresponding to the test tool to upload, such as Ntttcp.exe test tool file, Iperf3.exe test tool file, Cpuburn.exe test tool file, etc., which are not limited here, and select the Complete option to perform the file upload operation. The electronic device can respond to the file upload operation and receive multiple test tools uploaded by the user.

[0073] Furthermore, the electronic device may upload multiple test tools to the file transfer server.

[0074] Optionally, the file transfer server may be a FTP server (File Transfer Protocol Server).

[0075] Specifically, after receiving the multiple test tools, the electronic device may upload the multiple test tools to a file transfer server, such as an FTP server.

[0076] Therefore, multiple testing tools can be pre-stored in the file transfer server, and the user only needs to select the corresponding testing tool without having to download and install the testing tool, thereby improving the testing speed.

[0077] Optionally, after uploading the multiple testing tools to the file transfer server, the method further includes: obtaining corresponding usage documents in response to the user's document editing operations on the multiple testing tools; and saving the usage documents to the embedded database.

[0078] In an embodiment of the present disclosure, after uploading a plurality of testing tools to a file transfer server, the electronic device can obtain corresponding usage documents in response to a user's document editing operations on the plurality of testing tools.

[0079] Optionally, the document editing operation may be an operation of editing a usage document of the testing tool.

[0080] Optionally, the usage documentation may be a document containing instructions for using the test tool.

[0081] Specifically, the user can perform document editing operations on the uploaded multiple testing tools, that is, edit the usage documents corresponding to the multiple testing tools, and the electronic device can obtain the corresponding usage documents in response to the document editing operation.

[0082] Figure 5 A schematic diagram of an interface of a document editing module provided by an embodiment of the present disclosure is shown.

[0083] like Figure 5 As shown, the electronic device can display the interface of the document editing module to the user, and the user can perform document editing operations for multiple test tools in the interface, that is, edit the usage documents corresponding to the multiple test tools. For example, the user can perform document editing operations for the Cpu test tool (Cpuburn.exe), such as writing . / cpuburn to burn all available cores, . / cpuburn-n 2 (burn two cores), . / cpuburn-n 4-u 5 (burn two cores, updated every 5 seconds), etc., and select the Submit option. The electronic device can respond to the user's document editing operation and obtain the corresponding usage document.

[0084] Furthermore, the electronic device may save the usage document into an embedded database.

[0085] Optionally, the embedded database may be a Sqlite3 database (Structured Query Language).

[0086] Specifically, after the electronic device obtains the usage document, it can save the usage document into an embedded database, so that when the user uses the test tool, the electronic device can display the usage document corresponding to the test tool, which is convenient for the user to quickly add load and improve the test speed.

[0087] Optionally, S120 may specifically include: in response to a user's tool selection operation, determining a target test tool corresponding to the tool selection operation among multiple test tools and displaying a corresponding usage document; in response to a user's load addition operation, adding a target load to a target virtual machine based on the target test tool.

[0088] In an embodiment of the present disclosure, the electronic device may determine a target testing tool corresponding to the tool selection operation among multiple testing tools and display a corresponding usage document in response to a tool selection operation by a user.

[0089] Optionally, the tool selection operation may be an operation of selecting a target test tool.

[0090] Specifically, a user can use an electronic device to select a required target testing tool from multiple testing tools, that is, perform a tool selection operation. The electronic device can respond to the tool selection operation, determine the target testing tool corresponding to the tool selection operation from multiple testing tools, and can display the usage document corresponding to the target testing tool.

[0091] Furthermore, the electronic device may add a target load to the target virtual machine based on a target testing tool in response to a load adding operation by the user.

[0092] Optionally, the load addition operation may be an operation of adding a load to the target virtual machine.

[0093] Specifically, after the electronic device displays the target testing tool and the corresponding usage documentation, the user can determine the usage method of the target testing tool according to the usage documentation, and use the target testing tool to load the target virtual machine, that is, perform a load loading operation. The electronic device can respond to the load addition operation and add a target load to the target virtual machine based on the target testing tool.

[0094] As a result, users can directly select the target test tool on the page and view the corresponding usage documentation, eliminating the need to download and install the test tool, thereby increasing the test speed.

[0095] Optionally, S140 may specifically include: monitoring the test results in real time, and rendering a chart of the test results to obtain a corresponding target chart; and displaying the load status of the target virtual machine based on the target chart.

[0096] In the disclosed embodiment, the electronic device can monitor the test results in real time, and render a chart of the test results to obtain a corresponding target chart.

[0097] Optionally, the chart rendering may be rendering the data into a chart.

[0098] Optionally, the target chart may be a chart that intuitively displays the test results. For example, the target chart may be a bar chart, a column chart, a line chart, etc., which is not limited here.

[0099] Specifically, the electronic device can monitor the test results in real time, and render the test results in a chart to obtain a corresponding target chart.

[0100] Furthermore, the electronic device may display the load status of the target virtual machine based on the target chart.

[0101] Figure 6 A schematic diagram of an interface of a chart display module provided by an embodiment of the present disclosure is shown.

[0102] like Figure 6As shown, the electronic device can display the interface of the chart display module, in which the load status of the target virtual machine can be displayed in the form of a chart. For example, the interface can display charts corresponding to the CPU usage, Mem usage, and Disk usage in the target virtual machine, respectively, so as to accurately and intuitively display the load status of the target virtual machine and facilitate further analysis by the user.

[0103] Optionally, after S140, the virtual machine load testing method may further include: performing batch management on the multiple virtual machines in response to a batch management operation of the user.

[0104] In an embodiment of the present disclosure, the electronic device may perform batch management on a plurality of virtual machines in response to a batch management operation of a user.

[0105] Optionally, the batch management operation may be an operation for managing multiple virtual machines. For example, the batch management operation may be a batch startup operation, a batch deletion operation, a batch binding operation, etc., which is not limited here.

[0106] Specifically, users can query and batch manage multiple virtual machines through electronic devices, such as performing batch startup operations, batch deletion operations, batch binding operations, etc. on multiple virtual machines. The electronic device can respond to the batch management operations and perform batch management of multiple virtual machines, such as batch startup, batch deletion, batch binding, etc., by calling underlying interfaces such as nova and neutron.

[0107] As a result, users can simply perform batch management operations on multiple virtual machines through the interface to improve virtual machine processing efficiency.

[0108] Figure 7 A schematic structural diagram of a virtual machine load testing device provided by an embodiment of the present disclosure is shown.

[0109] like Figure 7 As shown, the virtual machine load testing device 700 may include a first processing module 710 , a second processing module 720 , a third processing module 730 and a load display module 740 .

[0110] The first processing module 710 can be used to create a target virtual machine corresponding to the virtual machine creation request in response to a user's virtual machine creation request.

[0111] The second processing module 720 can be used to respond to a user's load addition request and add a target load to the target virtual machine based on a target testing tool.

[0112] The third processing module 730 can be used to respond to the user's virtual machine login request, perform a stability test on the target virtual machine according to the target load, and obtain a test result.

[0113] The load display module 740 can be used to monitor the test results in real time and display the load status of the target virtual machine.

[0114] Therefore, in the embodiment of the present disclosure, it is possible to respond to the user's virtual machine creation request and create a target virtual machine corresponding to the virtual machine creation request, then respond to the user's load addition request and add a target load to the target virtual machine based on the target testing tool, and then respond to the user's virtual machine login request and perform a stability test on the target virtual machine according to the target load to obtain the test results, and finally monitor the test results in real time to display the load status of the target virtual machine. Therefore, the target testing tool can be directly selected to add the target load to the target virtual machine, eliminating the download and installation process of the testing tool and improving the testing speed.

[0115] In some embodiments of the present disclosure, the virtual machine load testing device 700 may further include a fourth processing module and a fifth processing module.

[0116] The fourth processing module may be configured to receive a plurality of test tools uploaded by a user in response to a file upload operation of the user before creating a target virtual machine corresponding to the virtual machine creation request in response to the virtual machine creation request of the user.

[0117] The fifth processing module can be used to upload multiple testing tools to the file transfer server.

[0118] In some embodiments of the present disclosure, the virtual machine load testing device 700 may further include a sixth processing module and a seventh processing module.

[0119] The sixth processing module may be used to obtain corresponding usage documents in response to the user's document editing operations on the multiple testing tools after the multiple testing tools are uploaded to the file transfer server.

[0120] The seventh processing module can be used to save the usage document into the embedded database.

[0121] In some embodiments of the present disclosure, the second processing module 720 may specifically include a first processing unit and a second processing unit.

[0122] The first processing unit may be configured to determine, in response to a tool selection operation by a user, a target testing tool corresponding to the tool selection operation among a plurality of testing tools and display a corresponding usage document.

[0123] The second processing unit may be configured to add a target load to a target virtual machine based on a target testing tool in response to a load adding operation by a user.

[0124] In some embodiments of the present disclosure, the target load may include at least one of a processor load, a memory load, a disk load, and a network load.

[0125] In some embodiments of the present disclosure, the load display module 740 may specifically include a chart rendering unit and a load display unit.

[0126] The chart rendering unit can be used to monitor the test results in real time, and to render the test results in charts to obtain corresponding target charts.

[0127] The load display unit may be used to display the load status of the target virtual machine based on the target graph.

[0128] In some embodiments of the present disclosure, the virtual machine load testing device 700 may further include an eighth processing module.

[0129] The eighth processing module can be used to perform batch management on multiple virtual machines in response to a batch management operation by a user after monitoring the test results in real time and displaying the load status of the target virtual machine.

[0130] It should be noted that Figure 7 The virtual machine load testing apparatus 700 shown can execute Figures 1 to 6 The various steps in the method embodiment shown in the figure are implemented Figures 1 to 6 The various processes and effects in the method embodiment shown are not described in detail here.

[0131] Figure 8 A structural schematic diagram of a virtual machine load testing device provided by an embodiment of the present disclosure is shown.

[0132] In some embodiments of the present disclosure, Figure 8 The virtual machine load testing device shown may be a server device. Specifically, the server may include but is not limited to servers such as a cloud server or a cloud server cluster.

[0133] like Figure 8 As shown, the virtual machine load testing device may include a processor 801 and a memory 802 storing computer program instructions.

[0134] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0135] The memory 802 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 802 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 802 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 802 is a non-volatile solid-state memory. In a particular embodiment, the memory 802 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (Electrically Erasable Programmable ROM, EEPROM), an electrically rewritable ROM (EAROM) or a flash memory, or a combination of two or more of these.

[0136] The processor 801 reads and executes the computer program instructions stored in the memory 802 to perform the steps of the virtual machine load testing method provided in the embodiment of the present disclosure.

[0137] In one example, the virtual machine load testing device may further include a transceiver 803 and a bus 804. Figure 8 As shown, the processor 801, the memory 802 and the transceiver 803 are connected via a bus 804 and communicate with each other.

[0138] The bus 804 includes hardware, software, or both. For example, but not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a Memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 804 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0139] The embodiment of the present disclosure further provides a computer-readable storage medium, which may store a computer program. When the computer program is executed by a processor, the processor implements the virtual machine load testing method provided by the embodiment of the present disclosure.

[0140] The above-mentioned storage medium may, for example, include a memory 802 of computer program instructions, and the above-mentioned instructions may be executed by the processor 801 of the virtual machine load testing device to complete the virtual machine load testing method provided by the embodiment of the present disclosure. Optionally, the storage medium may be a non-temporary computer-readable storage medium, for example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (Random Access Memory, RAM), a compact disc read-only memory (CompactDisc ROM, CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0141] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0142] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A virtual machine load testing method, characterized in that: include: In response to a user's virtual machine creation request, create a target virtual machine corresponding to the virtual machine creation request; In response to the load addition request of the user, adding a target load to the target virtual machine based on a target testing tool; In response to the user's virtual machine login request, performing a stability test on the target virtual machine according to the target load to obtain a test result; The test results are monitored in real time to display the load status of the target virtual machine.

2. The method according to claim 1, characterized in that: Before creating a target virtual machine corresponding to the virtual machine creation request in response to the user's virtual machine creation request, the method further includes: In response to the file uploading operation of the user, receiving a plurality of testing tools uploaded by the user; Upload a plurality of the test tools to a file transfer server.

3. The method according to claim 2, characterized in that After uploading the plurality of test tools to the file transfer server, the method further includes: In response to the user's document editing operations on the plurality of test tools, obtaining corresponding usage documents; The usage document is saved in the embedded database.

4. The method according to claim 3, characterized in that The step of adding a target load to the target virtual machine based on a target testing tool in response to the user's load addition request includes: In response to the tool selection operation of the user, determining the target testing tool corresponding to the tool selection operation among the plurality of testing tools and displaying the corresponding usage document; In response to the load adding operation of the user, a target load is added to the target virtual machine based on the target testing tool.

5. The method according to claim 1, characterized in that The target load includes at least one of a processor load, a memory load, a disk load, and a network load.

6. The method according to claim 1, characterized in that The real-time monitoring of the test results to display the load status of the target virtual machine includes: Monitor the test results in real time, and render charts of the test results to obtain corresponding target charts; The load status of the target virtual machine is displayed based on the target chart.

7. The method according to claim 1, characterized in that After monitoring the test result in real time and displaying the load condition of the target virtual machine, the method further includes: In response to the batch management operation of the user, batch management is performed on the multiple virtual machines.

8. A virtual machine load testing device, characterized in that: include: A first processing module, configured to respond to a user's virtual machine creation request and create a target virtual machine corresponding to the virtual machine creation request; A second processing module, configured to respond to the user's load addition request and add a target load to the target virtual machine based on a target testing tool; A third processing module is used to respond to the virtual machine login request of the user, perform a stability test on the target virtual machine according to the target load, and obtain a test result; The load display module is used to monitor the test results in real time and display the load status of the target virtual machine.

9. A virtual machine load testing device, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the virtual machine load testing method described in any one of claims 1 to 7.

10. A non-volatile computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the virtual machine load testing method according to any one of claims 1 to 7.