Software virtualization test environment generation method and system

By establishing virtual resource utilization efficiency, load balancing, performance monitoring and dynamic adjustment models, and calculating and weighting the virtual environment index, the problem of virtual machine resource allocation is solved, and the optimization and efficiency improvement of the software testing environment is achieved.

CN119025408AActive Publication Date: 2024-11-26THREE GORGES JINSHAJIANG CHUANYUN HYDROPOWER DEV CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410955815.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-11-26
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

The lack of intelligent automation of virtual machine resource allocation schemes in the prior art makes it difficult to achieve optimization of software testing environments.

Method used

By obtaining the information data of the virtual machine, establish a virtual resource utilization efficiency model, load balancing model, performance monitoring model and resource dynamic adjustment model, calculate the corresponding index and weight sum, and generate the overall operation index of the virtual environment to optimize software virtualization testing. environment.

Benefits of technology

It realizes automatic, intelligent and efficient optimization of the virtual environment during software testing, and improves testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025408A_ABST
    Figure CN119025408A_ABST
Patent Text Reader

Abstract

The invention discloses a software virtualization test environment generation method and system, and the method comprises the steps: obtaining information data of a virtual machine, the information data comprises the resource usage amount of the virtual machine, the calculation load of the virtual machine, the storage load of the virtual machine, the CPU utilization rate of the virtual machine, the memory utilization rate of the virtual machine, the disk I / O of the virtual machine and the network bandwidth of the virtual machine; respectively setting a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model and a virtual machine resource dynamic adjustment model, and respectively calculating a utilization efficiency index of virtual resources, a load balancing index between the virtual machines, a virtual machine performance index and a resource dynamic adjustment index according to the information data; and performing weighted summation on all the indexes to generate a virtual environment overall operation index, and completing generation optimization of the software virtualization test environment according to the virtual environment overall operation index.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of software testing, and more specifically, relates to a method and system for generating a software virtualization testing environment. Background Art

[0002] A virtual machine (VM) for software testing is an environment that simulates a computer system, allowing users to run software in an independent, isolated environment, thereby performing various tests without affecting the host system. There are many advantages to using a virtual machine for software testing, such as:

[0003] Isolation: Any problems that occur during testing will not affect the host system.

[0004] Diversity: You can run multiple operating systems on the same physical machine to test the compatibility of software on different platforms.

[0005] Snapshot and restore: You can create snapshots of virtual machines and quickly restore them to their previous states when problems occur, greatly facilitating the testing process.

[0006] Automation: It can be easily integrated with automated testing tools to perform large-scale automated testing.

[0007] However, there is no technical solution in the prior art that can intelligently and automatically allocate the virtual machine's own resources. Summary of the invention

[0008] In order to solve the above technical problems, the present invention proposes a method for generating a software virtualization test environment, comprising:

[0009] Acquire information data of the virtual machine, wherein the information data includes: resource usage of the virtual machine, computing load of the virtual machine, storage load of the virtual machine, CPU utilization of the virtual machine, memory utilization of the virtual machine, disk I / O of the virtual machine, and network bandwidth of the virtual machine;

[0010] Respectively setting a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model and a virtual machine resource dynamic adjustment model, and respectively calculating a virtual resource utilization efficiency index, a load balancing index between virtual machines, a virtual machine performance index and a resource dynamic adjustment index according to the information data;

[0011] All indexes are weighted and summed to generate an overall virtual environment operation index, and the generation and optimization of the software virtualization test environment is completed based on the overall virtual environment operation index.

[0012] Furthermore, the virtual resource utilization efficiency model includes:

[0013]

[0014] in, is the utilization efficiency index of virtual resources, R is the total amount of available virtual resources, U i is the resource usage of the ith virtual machine, N is the total number of virtual machines, T i is the temperature of the ith virtual machine, used to simulate the temperature impact of the physical server, F i is the failure rate of the ith virtual machine, which is used to simulate the reliability of the virtual machine.

[0015] Furthermore, the load balancing model between virtual machines includes:

[0016]

[0017] in, is the load balancing index between virtual machines, L i,cpu is the computing load of the ith virtual machine, L i,storage is the storage load of the ith virtual machine, P i is the priority of the i-th virtual machine.

[0018] Furthermore, the virtual machine performance monitoring model includes:

[0019]

[0020] in, is the virtual machine performance index, C i is the CPU utilization of the ith virtual machine, M i is the memory utilization of the ith virtual machine, D i is the disk I / O of the ith virtual machine, N′ i is the network bandwidth of the i-th virtual machine.

[0021] Furthermore, the virtual machine resource dynamic adjustment model includes:

[0022]

[0023] in, is the resource dynamic adjustment index, L′ i is the total load of the i-th virtual machine, T′ is the time parameter used to simulate the dynamic environment, and R′ i is the recovery time of the ith virtual machine, which is used to simulate the recovery time after a virtual machine failure.

[0024] Further, including:

[0025]

[0026] in, is the overall operation index of the virtual environment, α is the weight of the utilization efficiency index of virtual resources, β is the weight of the load balancing index between virtual machines, γ is the weight of the virtual machine performance index, and δ is the weight of the resource dynamic adjustment index.

[0027] The present invention also provides a software virtualization test environment generation system, comprising:

[0028] A data acquisition module is used to acquire information data of the virtual machine, wherein the information data includes: resource usage of the virtual machine, computing load of the virtual machine, storage load of the virtual machine, CPU utilization of the virtual machine, memory utilization of the virtual machine, disk I / O of the virtual machine, and network bandwidth of the virtual machine;

[0029] Setting a model module, used to respectively set a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model and a virtual machine resource dynamic adjustment model, and respectively calculate the virtual resource utilization efficiency index, the load balancing index between virtual machines, the virtual machine performance index and the resource dynamic adjustment index according to the information data;

[0030] The optimization module is used to perform weighted summation of all indexes to generate an overall operation index of the virtual environment, and complete the generation optimization of the software virtualization test environment according to the overall operation index of the virtual environment.

[0031] Furthermore, the virtual resource utilization efficiency model includes:

[0032]

[0033] in, is the utilization efficiency index of virtual resources, R is the total amount of available virtual resources, U i is the resource usage of the ith virtual machine, N is the total number of virtual machines, T i is the temperature of the ith virtual machine, used to simulate the temperature impact of the physical server, F i is the failure rate of the ith virtual machine, which is used to simulate the reliability of the virtual machine.

[0034] Furthermore, the load balancing model between virtual machines includes:

[0035]

[0036] in, is the load balancing index between virtual machines, L i,cpu is the computing load of the ith virtual machine, L i,storage is the storage load of the ith virtual machine, P i is the priority of the i-th virtual machine.

[0037] Furthermore, the virtual machine performance monitoring model includes:

[0038]

[0039] in, is the virtual machine performance index, C i is the CPU utilization of the ith virtual machine, M i is the memory utilization of the ith virtual machine, D i is the disk I / O of the ith virtual machine, N′ i is the network bandwidth of the i-th virtual machine.

[0040] Compared with the prior art, the above technical solution conceived by the present invention has the following beneficial effects:

[0041] The present invention respectively sets a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model and a virtual machine resource dynamic adjustment model, and calculates the virtual resource utilization efficiency index, the load balancing index between virtual machines, the virtual machine performance index and the resource dynamic adjustment index according to the information data; all indexes are weighted and summed to generate the overall operation index of the virtual environment, and the generation optimization of the software virtualization test environment is completed according to the overall operation index of the virtual environment. Through the above technical scheme, the present invention can automatically, intelligently and efficiently complete the generation optimization of the virtual environment during software testing, thereby improving the software testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 is a flow chart of the method of embodiment 1 of the present invention;

[0043] Figure 2 It is a system structure diagram of embodiment 2 of the present invention. DETAILED DESCRIPTION

[0044] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0045] The method provided by the present invention can be implemented in the following terminal environment, and the terminal may include one or more of the following components: a processor, a storage medium, and a display screen. The storage medium stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method described in the following embodiment.

[0046] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the storage medium, and calling data stored in the storage medium.

[0047] The storage medium may include a random access memory (RAM) or a read-only memory (ROM). The storage medium may be used to store instructions, programs, codes, code sets or instructions.

[0048] The display is used to show the interactive cross-section of each application.

[0049] All subscripts in the formulas of the present invention are only used to distinguish parameters and have no actual meaning.

[0050] In addition, those skilled in the art can understand that the structure of the above terminal does not constitute a limitation on the terminal, and the terminal may include more or fewer components, or combine certain components, or arrange the components differently. For example, the terminal also includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, and a power supply, which will not be described in detail here.

[0051] Example 1

[0052] like Figure 1 As shown, the present invention proposes a method for generating a software virtualization test environment, comprising:

[0053] Step 101, obtaining information data of the virtual machine, wherein the information data includes: resource usage of the virtual machine, computing load of the virtual machine, storage load of the virtual machine, CPU utilization of the virtual machine, memory utilization of the virtual machine, disk I / O of the virtual machine, and network bandwidth of the virtual machine;

[0054] Step 102, respectively setting a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model, and a virtual machine resource dynamic adjustment model, and respectively calculating a virtual resource utilization efficiency index, a load balancing index between virtual machines, a virtual machine performance index, and a resource dynamic adjustment index based on the information data;

[0055] Specifically, the virtual resource utilization efficiency model includes:

[0056]

[0057] in, is the utilization efficiency index of virtual resources, R is the total amount of available virtual resources, U i is the resource usage of the ith virtual machine, N is the total number of virtual machines, T i is the temperature of the ith virtual machine, used to simulate the temperature impact of the physical server, F i is the failure rate of the ith virtual machine, which is used to simulate the reliability of the virtual machine.

[0058] Specifically, the load balancing model between virtual machines includes:

[0059]

[0060] in, is the load balancing index between virtual machines, L i,cpu is the computing load of the ith virtual machine, L i,storage is the storage load of the ith virtual machine, P i is the priority of the i-th virtual machine.

[0061] Regarding the priority of virtual machines, for example:

[0062] Priority can be represented by a scalar value, such as an integer from 1 to 10, where 1 is the lowest priority and 10 is the highest priority. Here is an example:

[0063] Business-critical applications: Priority 10

[0064] Database server: Priority 9

[0065] Ordinary business applications: Priority 7

[0066] File Server: Priority 5

[0067] Development and testing environments: Priority 4

[0068] Batch tasks: Priority 2

[0069] Backup system: Priority 1

[0070] Specifically, the virtual machine performance monitoring model includes:

[0071]

[0072] in, is the virtual machine performance index, C i is the CPU utilization of the ith virtual machine, M i is the memory utilization of the ith virtual machine, D i is the disk I / O of the ith virtual machine, N′ i is the network bandwidth of the i-th virtual machine.

[0073] Specifically, the virtual machine resource dynamic adjustment model includes:

[0074]

[0075] in, is the resource dynamic adjustment index, L′ iis the total load of the i-th virtual machine, T′ is the time parameter used to simulate the dynamic environment, and R′ i is the recovery time of the ith virtual machine, which is used to simulate the recovery time after a virtual machine failure.

[0076] Step 103 , performing weighted summation of all the indexes to generate an overall operation index of the virtual environment, and completing generation optimization of the software virtualization test environment according to the overall operation index of the virtual environment.

[0077] Specifically, they include:

[0078]

[0079] in, is the overall operation index of the virtual environment, α is the weight of the utilization efficiency index of virtual resources, β is the weight of the load balancing index between virtual machines, γ is the weight of the virtual machine performance index, and δ is the weight of the resource dynamic adjustment index.

[0080] For example, the gradient descent method can be used to maximize the overall operating index of the virtual environment, thereby outputting the optimal solution, including the optimal resource allocation plan, virtual machine scheduling strategy, etc.

[0081] Example 2

[0082] like Figure 2 As shown, the embodiment of the present invention also proposes a software virtualization test environment generation system, including:

[0083] A data acquisition module is used to acquire information data of the virtual machine, wherein the information data includes: resource usage of the virtual machine, computing load of the virtual machine, storage load of the virtual machine, CPU utilization of the virtual machine, memory utilization of the virtual machine, disk I / O of the virtual machine, and network bandwidth of the virtual machine;

[0084] Setting a model module, used to respectively set a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model and a virtual machine resource dynamic adjustment model, and respectively calculate the virtual resource utilization efficiency index, the load balancing index between virtual machines, the virtual machine performance index and the resource dynamic adjustment index according to the information data;

[0085] Specifically, the virtual resource utilization efficiency model includes:

[0086]

[0087] in, is the utilization efficiency index of virtual resources, R is the total amount of available virtual resources, U i is the resource usage of the ith virtual machine, N is the total number of virtual machines, T iis the temperature of the ith virtual machine, used to simulate the temperature impact of the physical server, F i is the failure rate of the ith virtual machine, which is used to simulate the reliability of the virtual machine.

[0088] Specifically, the load balancing model between virtual machines includes:

[0089]

[0090] in, is the load balancing index between virtual machines, L i,cpu is the computing load of the ith virtual machine, L i,storage is the storage load of the ith virtual machine, P i is the priority of the i-th virtual machine.

[0091] Regarding the priority of virtual machines, for example:

[0092] Priority can be represented by a scalar value, such as an integer from 1 to 10, where 1 is the lowest priority and 10 is the highest priority. Here is an example:

[0093] Business-critical applications: Priority 10

[0094] Database server: Priority 9

[0095] Ordinary business applications: Priority 7

[0096] File Server: Priority 5

[0097] Development and testing environments: Priority 4

[0098] Batch tasks: Priority 2

[0099] Backup system: Priority 1

[0100] Specifically, the virtual machine performance monitoring model includes:

[0101]

[0102] in, is the virtual machine performance index, C i is the CPU utilization of the ith virtual machine, M i is the memory utilization of the ith virtual machine, D i is the disk I / O of the ith virtual machine, N′ i is the network bandwidth of the i-th virtual machine.

[0103] Specifically, the virtual machine resource dynamic adjustment model includes:

[0104]

[0105] in, is the resource dynamic adjustment index, L′ i is the total load of the i-th virtual machine, T′ is the time parameter used to simulate the dynamic environment, and R′ i is the recovery time of the ith virtual machine, which is used to simulate the recovery time after a virtual machine failure.

[0106] The optimization module is used to perform weighted summation of all indexes to generate an overall operation index of the virtual environment, and complete the generation optimization of the software virtualization test environment according to the overall operation index of the virtual environment.

[0107] Specifically, they include:

[0108]

[0109] in, is the overall operation index of the virtual environment, α is the weight of the utilization efficiency index of virtual resources, β is the weight of the load balancing index between virtual machines, γ is the weight of the virtual machine performance index, and δ is the weight of the resource dynamic adjustment index.

[0110] Example 3

[0111] The embodiment of the present invention further provides a storage medium storing a plurality of instructions, wherein the instructions are used to implement the method for generating a software virtualization test environment.

[0112] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0113] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps: Step 101, obtaining information data of the virtual machine, wherein the information data includes: resource usage of the virtual machine, computing load of the virtual machine, storage load of the virtual machine, CPU utilization of the virtual machine, memory utilization of the virtual machine, disk I / O of the virtual machine, and network bandwidth of the virtual machine;

[0114] Step 102, respectively setting a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model, and a virtual machine resource dynamic adjustment model, and respectively calculating a virtual resource utilization efficiency index, a load balancing index between virtual machines, a virtual machine performance index, and a resource dynamic adjustment index based on the information data;

[0115] Specifically, the virtual resource utilization efficiency model includes:

[0116]

[0117] in, is the utilization efficiency index of virtual resources, R is the total amount of available virtual resources, U i is the resource usage of the ith virtual machine, N is the total number of virtual machines, T i is the temperature of the ith virtual machine, used to simulate the temperature impact of the physical server, F i is the failure rate of the ith virtual machine, which is used to simulate the reliability of the virtual machine.

[0118] Specifically, the load balancing model between virtual machines includes:

[0119]

[0120] in, is the load balancing index between virtual machines, L i,cpu is the computing load of the ith virtual machine, L i,storage is the storage load of the ith virtual machine, P i is the priority of the i-th virtual machine.

[0121] Regarding the priority of virtual machines, for example:

[0122] Priority can be represented by a scalar value, such as an integer from 1 to 10, where 1 is the lowest priority and 10 is the highest priority. Here is an example:

[0123] Business-critical applications: Priority 10

[0124] Database server: Priority 9

[0125] Ordinary business applications: Priority 7

[0126] File Server: Priority 5

[0127] Development and testing environments: Priority 4

[0128] Batch tasks: Priority 2

[0129] Backup system: Priority 1

[0130] Specifically, the virtual machine performance monitoring model includes:

[0131]

[0132] in, is the virtual machine performance index, C i is the CPU utilization of the ith virtual machine, M i is the memory utilization of the ith virtual machine, D i is the disk I / O of the ith virtual machine, N′i is the network bandwidth of the i-th virtual machine.

[0133] Specifically, the virtual machine resource dynamic adjustment model includes:

[0134]

[0135] in, is the resource dynamic adjustment index, L′ i is the total load of the i-th virtual machine, T′ is the time parameter used to simulate the dynamic environment, and R′ i is the recovery time of the ith virtual machine, which is used to simulate the recovery time after a virtual machine failure.

[0136] Step 103 , performing weighted summation of all the indexes to generate an overall operation index of the virtual environment, and completing generation optimization of the software virtualization test environment according to the overall operation index of the virtual environment.

[0137] Specifically, they include:

[0138]

[0139] in, is the overall operation index of the virtual environment, α is the weight of the utilization efficiency index of virtual resources, β is the weight of the load balancing index between virtual machines, γ is the weight of the virtual machine performance index, and δ is the weight of the resource dynamic adjustment index.

[0140] Example 4

[0141] An embodiment of the present invention also proposes an electronic device, including a processor and a storage medium connected to the processor, wherein the storage medium stores a plurality of instructions, and the instructions can be loaded and executed by the processor so that the processor can execute a method for generating a software virtualization test environment.

[0142] Specifically, the electronic device of this embodiment may be a computer terminal, and the computer terminal may include: one or more processors, and a storage medium.

[0143] Among them, the storage medium can be used to store software programs and modules, such as a software virtualization test environment generation method in an embodiment of the present invention, corresponding program instructions / modules, and the processor executes various functional applications and data processing by running the software programs and modules stored in the storage medium, that is, realizing the above-mentioned software virtualization test environment generation method. The storage medium may include a high-speed random storage medium, and may also include a non-volatile storage medium, such as one or more magnetic storage systems, flash memory, or other non-volatile solid-state storage media. In some instances, the storage medium may further include a storage medium remotely arranged relative to the processor, and these remote storage media may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0144] The processor may call the information and application stored in the storage medium through the transmission system to execute the steps: Step 101, obtaining information data of the virtual machine, wherein the information data includes: resource usage of the virtual machine, computing load of the virtual machine, storage load of the virtual machine, CPU utilization of the virtual machine, memory utilization of the virtual machine, disk I / O of the virtual machine, and network bandwidth of the virtual machine;

[0145] Step 102, respectively setting a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model, and a virtual machine resource dynamic adjustment model, and respectively calculating a virtual resource utilization efficiency index, a load balancing index between virtual machines, a virtual machine performance index, and a resource dynamic adjustment index based on the information data;

[0146] Specifically, the virtual resource utilization efficiency model includes:

[0147]

[0148] in, is the utilization efficiency index of virtual resources, R is the total amount of available virtual resources, U i is the resource usage of the ith virtual machine, N is the total number of virtual machines, T i is the temperature of the ith virtual machine, used to simulate the temperature impact of the physical server, F i is the failure rate of the ith virtual machine, which is used to simulate the reliability of the virtual machine.

[0149] Specifically, the load balancing model between virtual machines includes:

[0150]

[0151] in, is the load balancing index between virtual machines, L i,cpu is the computing load of the ith virtual machine, Li,storage is the storage load of the ith virtual machine, P i is the priority of the i-th virtual machine.

[0152] Regarding the priority of virtual machines, for example:

[0153] Priority can be represented by a scalar value, such as an integer from 1 to 10, where 1 is the lowest priority and 10 is the highest priority. Here is an example:

[0154] Business-critical applications: Priority 10

[0155] Database server: Priority 9

[0156] Ordinary business applications: Priority 7

[0157] File Server: Priority 5

[0158] Development and testing environments: Priority 4

[0159] Batch tasks: Priority 2

[0160] Backup system: Priority 1

[0161] Specifically, the virtual machine performance monitoring model includes:

[0162]

[0163] in, is the virtual machine performance index, C i is the CPU utilization of the ith virtual machine, M i is the memory utilization of the ith virtual machine, D i is the disk I / O of the ith virtual machine, N′ i is the network bandwidth of the i-th virtual machine.

[0164] Specifically, the virtual machine resource dynamic adjustment model includes:

[0165]

[0166] in, is the resource dynamic adjustment index, L′ i is the total load of the i-th virtual machine, T′ is the time parameter used to simulate the dynamic environment, and R′ i is the recovery time of the ith virtual machine, which is used to simulate the recovery time after a virtual machine failure.

[0167] Step 103 , performing weighted summation of all the indexes to generate an overall operation index of the virtual environment, and completing generation optimization of the software virtualization test environment according to the overall operation index of the virtual environment.

[0168] Specifically, they include:

[0169]

[0170] in, is the overall operation index of the virtual environment, α is the weight of the utilization efficiency index of virtual resources, β is the weight of the load balancing index between virtual machines, γ is the weight of the virtual machine performance index, and δ is the weight of the resource dynamic adjustment index.

[0171] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0172] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0173] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0174] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0175] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0176] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only storage medium (ROM, Read-Only Memory), random access storage medium (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0177] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived therefrom are still within the scope of protection of the invention.

Claims

1. A method for generating a software virtualization test environment, characterized in that: include: Acquire information data of the virtual machine, wherein the information data includes: resource usage of the virtual machine, computing load of the virtual machine, storage load of the virtual machine, CPU utilization of the virtual machine, memory utilization of the virtual machine, disk I / O of the virtual machine, and network bandwidth of the virtual machine; Respectively setting a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model and a virtual machine resource dynamic adjustment model, and respectively calculating a virtual resource utilization efficiency index, a load balancing index between virtual machines, a virtual machine performance index and a resource dynamic adjustment index according to the information data; All indexes are weighted and summed to generate an overall virtual environment operation index, and the generation and optimization of the software virtualization test environment is completed based on the overall virtual environment operation index.

2. A method for generating a software virtualization test environment according to claim 1, characterized in that: The virtual resource utilization efficiency model includes: in, is the utilization efficiency index of virtual resources, R is the total amount of available virtual resources, U i is the resource usage of the ith virtual machine, N is the total number of virtual machines, T i is the temperature of the ith virtual machine, used to simulate the temperature impact of the physical server, F i is the failure rate of the ith virtual machine, which is used to simulate the reliability of the virtual machine.

3. A method for generating a software virtualization test environment according to claim 2, characterized in that: The load balancing model between virtual machines includes: in, is the load balancing index between virtual machines, L i,cpu is the computing load of the ith virtual machine, L i,storage is the storage load of the ith virtual machine, P i is the priority of the i-th virtual machine.

4. A method for generating a software virtualization test environment according to claim 3, characterized in that: The virtual machine performance monitoring model includes: in, is the virtual machine performance index, C i is the CPU utilization of the ith virtual machine, M i is the memory utilization of the ith virtual machine, D i is the disk I / O of the ith virtual machine, N′ i is the network bandwidth of the i-th virtual machine.

5. A method for generating a software virtualization test environment according to claim 4, characterized in that: The virtual machine resource dynamic adjustment model includes: in, is the resource dynamic adjustment index, L′ i is the total load of the i-th virtual machine, T′ is the time parameter used to simulate the dynamic environment, and R′ i is the recovery time of the ith virtual machine, which is used to simulate the recovery time after a virtual machine failure.

6. A method for generating a software virtualization test environment according to claim 5, characterized in that: include: in, is the overall operation index of the virtual environment, α is the weight of the utilization efficiency index of virtual resources, β is the weight of the load balancing index between virtual machines, γ is the weight of the virtual machine performance index, and δ is the weight of the resource dynamic adjustment index.

7. A software virtualization test environment generation system, characterized in that: include: A data acquisition module is used to acquire information data of the virtual machine, wherein the information data includes: resource usage of the virtual machine, computing load of the virtual machine, storage load of the virtual machine, CPU utilization of the virtual machine, memory utilization of the virtual machine, disk I / O of the virtual machine, and network bandwidth of the virtual machine; Setting a model module, used to respectively set a virtual resource utilization efficiency model, a load balancing model between virtual machines, a virtual machine performance monitoring model and a virtual machine resource dynamic adjustment model, and respectively calculate the virtual resource utilization efficiency index, the load balancing index between virtual machines, the virtual machine performance index and the resource dynamic adjustment index according to the information data; The optimization module is used to perform weighted summation of all indexes to generate an overall operation index of the virtual environment, and complete the generation optimization of the software virtualization test environment according to the overall operation index of the virtual environment.

8. A software virtualization test environment generation system as claimed in claim 7, characterized in that: The virtual resource utilization efficiency model includes: in, is the utilization efficiency index of virtual resources, R is the total amount of available virtual resources, U i is the resource usage of the ith virtual machine, N is the total number of virtual machines, T i is the temperature of the ith virtual machine, used to simulate the temperature impact of the physical server, F i is the failure rate of the ith virtual machine, which is used to simulate the reliability of the virtual machine.

9. A software virtualization test environment generation system as claimed in claim 8, characterized in that: The load balancing model between virtual machines includes: in, is the load balancing index between virtual machines, L i,cpu is the computing load of the ith virtual machine, L i,storage is the storage load of the ith virtual machine, P i is the priority of the i-th virtual machine.

10. A software virtualization test environment generation system as claimed in claim 9, characterized in that: The virtual machine performance monitoring model includes: in, is the virtual machine performance index, C i is the CPU utilization of the ith virtual machine, M i is the memory utilization of the ith virtual machine, Di is the disk I / O of the ith virtual machine, N′ i is the network bandwidth of the i-th virtual machine.

Citation Information

Patent Citations

  • Cloud service resource dynamic allocation system and method based on module service copy addition and deletion

    CN104301403A

  • Server resource management system and method

    CN117687740A

  • Operation maintenance system of information system

    CN118295883A