A method and system for generating a software virtualization test environment
The method optimizes virtual machine resource allocation and testing environments by calculating weighted indices for virtual resource utilization, load balancing, and performance monitoring, addressing the inefficiencies in existing technologies and improving testing efficiency.
Patent Information
- Application Number
- CN202410955815.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2025-07-15
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The lack of intelligent virtual machine resource automation allocation schemes in the prior art has led to inefficient software testing.
By obtaining the information data of the virtual machine, setting up the virtual resource utilization efficiency model, load balancing model, performance monitoring model and resource dynamic adjustment model, calculating the corresponding index, and weighted summing to generate the overall operation index of the virtual environment, and optimizing the software virtualization test environment.
It realizes the automatic generation and optimization of virtual environments during software testing, and improves testing efficiency.
Smart Images

Figure CN119025408B_ABST
Abstract
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 test 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 and isolated environment, thereby performing various tests without affecting the host system. There are many advantages to using virtual machines for software testing, such as:
[0003] Isolation: Any problems that occur during the testing process will not affect the host system.
[0004] Diversity: Multiple operating systems can be run on the same physical machine to test the compatibility of software on different platforms.
[0005] Snapshot and restore: Snapshots of the virtual machine can be created and quickly restored to a previous state when problems occur, greatly facilitating the testing process.
[0006] Automation: It can be easily integrated with automated testing tools for large-scale automated testing.
[0007] However, there is no technical solution in the prior art that can intelligently and automatically allocate the resources of the virtual machine itself. Summary of the Invention
[0008] To solve the above technical problems, the present invention proposes a method for generating a software virtualization test environment, including:
[0009] Obtain information data of the virtual machine, where the information data includes: the resource usage of the virtual machine, the computing 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;
[0010] 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 calculate the utilization efficiency index of virtual resources, the load balancing index between virtual machines, the virtual machine performance index, and the resource dynamic adjustment index respectively according to the information data;
[0011] Perform a weighted sum of all the indexes to generate an overall operation index of the virtual environment, and complete the generation and optimization of the software virtualization test environment according to the overall operation index of the virtual environment.
[0012] Furthermore, the virtual resource utilization efficiency model includes:
[0013]
[0014] Among them, 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 i-th virtual machine, N is the total number of virtual machines, T i is the temperature of the i-th virtual machine, used to simulate the influence of the physical server temperature, F i is the failure rate of the i-th virtual machine, used to simulate the reliability of the virtual machine.
[0015] Furthermore, the load balancing model between the virtual machines includes:
[0016]
[0017] Among them, is the load balancing index between the virtual machines, L i,cpu is the computing load of the i-th virtual machine, L i,storage is the storage load of the i-th virtual machine, P i is the priority of the i-th virtual machine.
[0018] Furthermore, the virtual machine performance monitoring model includes:
[0019]
[0020] Among them, is the virtual machine performance index, C i is the CPU utilization rate of the i-th virtual machine, M i is the memory utilization rate of the i-th virtual machine, D i is the disk I / O of the i-th 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] Among them, is the resource dynamic adjustment index, L′ i is the total load of the i-th virtual machine, T′ is a time parameter, used to simulate the dynamic environment, R′ i is the recovery time of the i-th virtual machine, used to simulate the recovery time after the virtual machine fails.
[0024] Furthermore, it includes:
[0025]
[0026] Among them, is the overall operating 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, including:
[0028] An information acquisition module, configured to acquire information data of virtual machines, where the information data includes: the resource usage of virtual machines, the computing load of virtual machines, the storage load of virtual machines, the CPU utilization rate of virtual machines, the memory utilization rate of virtual machines, the disk I / O of virtual machines, and the network bandwidth of virtual machines;
[0029] A model setting module, configured 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 calculate the utilization efficiency index of virtual resources, the load balancing index between virtual machines, the virtual machine performance index, and the resource dynamic adjustment index respectively according to the information data;
[0030] An optimization module, configured to perform weighted summation on all indexes to generate an overall operating index of the virtual environment, and complete the generation and optimization of the software virtualization test environment according to the overall operating index of the virtual environment.
[0031] Further, the virtual resource utilization efficiency model includes:
[0032]
[0033] Wherein, 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 i-th virtual machine, N is the total number of virtual machines, T i is the temperature of the i-th virtual machine, used to simulate the influence of the physical server temperature, F i is the failure rate of the i-th virtual machine, used to simulate the reliability of the virtual machine.
[0034] Further, the load balancing model between virtual machines includes:
[0035]
[0036] Wherein, is the load balancing index between virtual machines, L i,cpu is the computing load of the i-th virtual machine, L i,storage is the storage load of the i-th virtual machine, P i is the priority of the i-th virtual machine.
[0037] Further, the virtual machine performance monitoring model includes:
[0038]
[0039] Wherein, is the virtual machine performance index, C i is the CPU utilization rate of the i-th virtual machine, M i is the memory utilization rate of the i-th virtual machine, D i is the disk I / O of the i-th virtual machine, N' i is the network bandwidth of the i-th virtual machine.
[0040] Compared with the prior art by the above technical solution conceived by the present invention, the following beneficial effects are obtained:
[0041] By separately setting up 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 calculating the utilization efficiency index of virtual resources, the load balancing index between virtual machines, the virtual machine performance index, and the resource dynamic adjustment index respectively according to the information data; all the indexes are weighted and summed to generate an overall operation index of the virtual environment, and the generation and optimization of the software virtualization test environment are completed according to the overall operation index of the virtual environment. By the above technical solution, the present invention can automatically, intelligently and efficiently complete the generation and optimization of the virtual environment during software testing, and improve the software testing efficiency. Description of the Drawings
[0042] Figure 1 is the flowchart of the method according to Embodiment 1 of the present invention;
[0043] Figure 2 is the system structure diagram according to Embodiment 2 of the present invention. Detailed Embodiments
[0044] In order to better understand the above technical solution, the following will specifically describe the above technical solution in conjunction with the accompanying drawings of the specification and specific embodiments.
[0045] The method provided by the present invention can be implemented in the following terminal environment. The terminal may include one or more of the following components: a processor, a storage medium, and a display screen. Among them, at least one instruction is stored in the storage medium, and the instruction is loaded and executed by the processor to implement the method described in the following embodiments.
[0046] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect various parts within the entire terminal, and by running or executing instructions, programs, code sets, or instruction sets stored in the storage medium, and by calling data stored in the storage medium, it executes various functions of the terminal and processes data.
[0047] The storage medium may include a random access memory (RAM), or may also include a read-only memory (ROM). The storage medium can be used to store instructions, programs, codes, code sets or instructions.
[0048] The display screen is used to display the interaction cross-sections of various application programs.
[0049] In the formula of the present invention, all subscripts are only for distinguishing 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. The terminal may include more or fewer components, or combine certain components, or have different component arrangements. 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 elaborated here.
[0051] Embodiment 1
[0052] As Figure 1 shown, the present invention provides a method for generating a software virtualization test environment, including:
[0053] Step 101: Obtain information data of the virtual machine, where the information data includes: the resource usage of the virtual machine, the computing 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;
[0054] Step 102: 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 calculate the utilization efficiency index of virtual resources, the load balancing index between virtual machines, the virtual machine performance index, and the resource dynamic adjustment index respectively according to the information data;
[0055] Specifically, the virtual resource utilization efficiency model includes:
[0056]
[0057] Where 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 i-th virtual machine, N is the total number of virtual machines, T i is the temperature of the i-th virtual machine, used to simulate the influence of the physical server temperature, F i is the failure rate of the i-th virtual machine, used to simulate the reliability of the virtual machine.
[0058] Specifically, the load balancing model between virtual machines includes:
[0059]
[0060] Among them, is the load balancing index between virtual machines, L i,cpu is the computing load of the i-th virtual machine, L i,storage is the storage load of the i-th virtual machine, P i is the priority of the i-th virtual machine.
[0061] Regarding the priority of virtual machines, for example:
[0062] The priority can be represented by a scalar value, such as an integer from 1 to 10, where 1 represents the lowest priority and 10 represents the highest priority. The following is an example:
[0063] Critical business applications: Priority 10
[0064] Database server: Priority 9
[0065] General business applications: Priority 7
[0066] File server: Priority 5
[0067] Development and testing environment: Priority 4
[0068] Batch processing tasks: Priority 2
[0069] Backup system: Priority 1
[0070] Specifically, the virtual machine performance monitoring model includes:
[0071]
[0072] Among them, is the virtual machine performance index, C i is the CPU utilization rate of the i-th virtual machine, M i is the memory utilization rate of the i-th virtual machine, D i is the disk I / O of the i-th 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] Among them, is the resource dynamic adjustment index, L′ iis the total load of the i-th virtual machine, T′ is a time parameter used to simulate a dynamic environment, and R′ i is the recovery time of the i-th virtual machine, which is used to simulate the recovery time after a virtual machine failure.
[0076] Step 103: Perform a weighted sum of all the indices to generate an overall running index of the virtual environment, and complete the generation and optimization of the software virtualization test environment according to the overall running index of the virtual environment.
[0077] Specifically, it includes:
[0078]
[0079] Among them, is the overall running index of the virtual environment, α is the weight of the virtual resource utilization efficiency index, β 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 solve for maximizing the overall running index of the virtual environment, thereby outputting an optimal solution, including an optimal resource allocation scheme, a virtual machine scheduling strategy, etc.
[0081] Embodiment 2
[0082] As Figure 2 shown, an embodiment of the present invention also proposes a software virtualization test environment generation system, including:
[0083] An information acquisition module, configured to acquire information data of virtual machines, where the information data includes: the resource usage of virtual machines, the computing load of virtual machines, the storage load of virtual machines, the CPU utilization rate of virtual machines, the memory utilization rate of virtual machines, the disk I / O of virtual machines, and the network bandwidth of virtual machines;
[0084] A model setting module, configured 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 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 respectively according to the information data;
[0085] Specifically, the virtual resource utilization efficiency model includes:
[0086]
[0087] Among them, is the virtual resource utilization efficiency index, R is the total amount of available virtual resources, U i is the resource usage of the i-th virtual machine, N is the total number of virtual machines, T iis the temperature of the i-th virtual machine, used to simulate the impact of the physical server temperature, F i is the failure rate of the i-th virtual machine, used to simulate the reliability of the virtual machine.
[0088] Specifically, the load balancing model between virtual machines includes:
[0089]
[0090] Among them, is the load balancing index between virtual machines, L i,cpu is the computing load of the i-th virtual machine, L i,storage is the storage load of the i-th virtual machine, P i is the priority of the i-th virtual machine.
[0091] Regarding the priority of virtual machines, for example:
[0092] The priority can be represented by a scalar value, such as an integer from 1 to 10, where 1 represents the lowest priority and 10 represents the highest priority. Here is an example:
[0093] Critical business applications: Priority 10
[0094] Database server: Priority 9
[0095] General business applications: Priority 7
[0096] File server: Priority 5
[0097] Development and testing environment: Priority 4
[0098] Batch processing tasks: Priority 2
[0099] Backup system: Priority 1
[0100] Specifically, the virtual machine performance monitoring model includes:
[0101]
[0102] Among them, is the virtual machine performance index, C i is the CPU utilization rate of the i-th virtual machine, M i is the memory utilization rate of the i-th virtual machine, D i is the disk I / O of the i-th 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] Among them, is the resource dynamic adjustment index, L′ i is the total load of the i-th virtual machine, T′ is a time parameter used to simulate the dynamic environment, R′ i is the recovery time of the i-th virtual machine, which is used to simulate the recovery time after a virtual machine failure.
[0106] An optimization module is used to perform weighted summation on all the 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, it includes:
[0108]
[0109] Among them, is the overall operation index of the virtual environment, α is the weight of the virtual resource utilization efficiency index, β is the weight of the load balance index between virtual machines, γ is the weight of the virtual machine performance index, and δ is the weight of the resource dynamic adjustment index.
[0110] Embodiment 3
[0111] The embodiment of the present invention also proposes a storage medium storing multiple instructions, and the instructions are used to implement the software virtualization test environment generation method described above.
[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 located in any mobile terminal in a mobile terminal group.
[0113] Optionally, in this embodiment, the storage medium is set to store program codes for performing the following steps: Step 101, obtaining information data of a virtual machine, where the information data includes: the resource usage amount of the virtual machine, the computing 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;
[0114] Step 102, respectively setting a virtual resource utilization efficiency model, a load balance model between virtual machines, a virtual machine performance monitoring model, and a virtual machine resource dynamic adjustment model, and respectively calculating the virtual resource utilization efficiency index, the load balance index between virtual machines, the virtual machine performance index, and the resource dynamic adjustment index according to the information data;
[0115] Specifically, the virtual resource utilization efficiency model includes:
[0116]
[0117] Among them, is the utilization efficiency index of virtual resources, R is the total amount of available virtual resources, and U i is the resource usage of the i-th virtual machine, N is the total number of virtual machines, and T i is the temperature of the i-th virtual machine, used to simulate the influence of the physical server temperature, and F i is the failure rate of the i-th virtual machine, used to simulate the reliability of the virtual machine.
[0118] Specifically, the load balancing model between virtual machines includes:
[0119]
[0120] Among them, is the load balancing index between virtual machines, and L i,cpu is the computing load of the i-th virtual machine, and L i,storage is the storage load of the i-th virtual machine, and P i is the priority of the i-th virtual machine.
[0121] Regarding the priority of virtual machines, for example:
[0122] The priority can be represented by a scalar value, such as an integer from 1 to 10, where 1 represents the lowest priority and 10 represents the highest priority. The following is an example:
[0123] Critical business applications: Priority 10
[0124] Database server: Priority 9
[0125] General business applications: Priority 7
[0126] File server: Priority 5
[0127] Development and testing environment: Priority 4
[0128] Batch processing tasks: Priority 2
[0129] Backup system: Priority 1
[0130] Specifically, the virtual machine performance monitoring model includes:
[0131]
[0132] Among them, is the virtual machine performance index, and C i is the CPU utilization rate of the i-th virtual machine, and M i is the memory utilization rate of the i-th virtual machine, and D i is the disk I / O of the i-th virtual machine, and N′i is the network bandwidth of the i-th virtual machine.
[0133] Specifically, the virtual machine resource dynamic adjustment model includes:
[0134]
[0135] Among them, is the resource dynamic adjustment index, L′ i is the total load of the i-th virtual machine, T′ is a time parameter used to simulate the dynamic environment, R′ i is the recovery time of the i-th virtual machine, which is used to simulate the recovery time after the virtual machine fails.
[0136] Step 103: Perform a weighted sum of all the indices to generate an overall operation index of the virtual environment, and complete the generation and optimization of the software virtualization test environment according to the overall operation index of the virtual environment.
[0137] Specifically, it includes:
[0138]
[0139] Among them, is the overall operation index of the virtual environment, α is the weight of the virtual resource utilization efficiency index, β 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] Embodiment 4
[0141] An embodiment of the present invention also proposes an electronic device, including a processor and a storage medium connected to the processor. The storage medium stores multiple 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 in this embodiment can 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 method for generating a software virtualization test environment in an embodiment of the present invention, and the corresponding program instructions / modules. The processor runs the software programs and modules stored in the storage medium to execute various functional applications and data processing, that is, to implement the above-mentioned method for generating a software virtualization test environment. The storage medium can include a high-speed random storage medium, and can 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 can further include a storage medium remotely set relative to the processor, and these remote storage media can be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and their combinations.
[0144] The processor can call the information and application programs stored in the storage medium through the transmission system to execute the steps: Step 101, obtain the information data of the virtual machine. Among them, the information data includes: the resource usage of the virtual machine, the computing 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.
[0145] Step 102, respectively set the virtual resource utilization efficiency model, the load balancing model between virtual machines, the virtual machine performance monitoring model, and the virtual machine resource dynamic adjustment model, and 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 respectively according to the information data.
[0146] Specifically, the virtual resource utilization efficiency model includes:
[0147]
[0148] Among them, is the virtual resource utilization efficiency index, R is the total amount of available virtual resources, U i is the resource usage of the i-th virtual machine, N is the total number of virtual machines, T i is the temperature of the i-th virtual machine, used to simulate the influence of the physical server temperature, F i is the failure rate of the i-th virtual machine, used to simulate the reliability of the virtual machine.
[0149] Specifically, the load balancing model between virtual machines includes:
[0150]
[0151] Among them, is the load balancing index between virtual machines, L i,cpu is the computing load of the i-th virtual machine, Li,storage is the storage load of the i-th virtual machine, P i is the priority of the i-th virtual machine.
[0152] Regarding the priority of virtual machines, for example:
[0153] The priority can be represented by a scalar value, such as an integer from 1 to 10, where 1 represents the lowest priority and 10 represents the highest priority. The following is an example:
[0154] Critical business applications: Priority 10
[0155] Database server: Priority 9
[0156] General business applications: Priority 7
[0157] File server: Priority 5
[0158] Development and testing environment: Priority 4
[0159] Batch processing tasks: Priority 2
[0160] Backup system: Priority 1
[0161] Specifically, the virtual machine performance monitoring model includes:
[0162]
[0163] Among them, is the virtual machine performance index, C i is the CPU utilization rate of the i-th virtual machine, M i is the memory utilization rate of the i-th virtual machine, D i is the disk I / O of the i-th 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] Among them, is the resource dynamic adjustment index, L′ i is the total load of the i-th virtual machine, T′ is a time parameter used to simulate the dynamic environment, R′ i is the recovery time of the i-th virtual machine, used to simulate the recovery time after a virtual machine failure.
[0167] Step 103: Perform a weighted sum of all the indices to generate an overall operation index for the virtual environment, and complete the generation and optimization of the software virtualization test environment based on the overall operation index of the virtual environment.
[0168] Specifically, it includes:
[0169]
[0170] Among them, 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-described 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 descriptions of the various embodiments have their own emphases. For the parts not detailed in a certain embodiment, reference may 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 above-described system embodiments are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. 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 displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of units or modules can be in electrical or other forms.
[0174] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0175] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can 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 such understanding, the technical solution of the present invention, in essence, 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. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, read-only storage media (ROM, Read-Only Memory), random access storage media (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical discs.
[0177] Obviously, the above embodiments are merely examples given for clear illustration and are not limitations on the implementation manners. For those of ordinary skill in the art, other different forms of changes or variations can be made based on the above description. It is not necessary and impossible to enumerate all the implementation manners here. And the obvious changes or variations derived therefrom are still within the protection scope of the present invention.
Claims
1. A method for generating a software virtualization test environment, characterized in that Including: Obtain the information data of the virtual machine, where the information data includes: the resource usage of the virtual machine, the computing 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 set the virtual resource utilization efficiency model, the load balancing model between virtual machines, the virtual machine performance monitoring model, and the virtual machine resource dynamic adjustment model, and 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 respectively according to the information data; The virtual resource utilization efficiency model includes: Among them, 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 i-th virtual machine, N is the total number of virtual machines, T i is the temperature of the i-th virtual machine, used to simulate the influence of the physical server temperature, F i is the failure rate of the i-th virtual machine, used to simulate the reliability of the virtual machine; Perform a weighted sum of all the indexes to generate an overall operation index of the virtual environment, and complete the generation and optimization of the software virtualization test environment according to the overall operation index of the virtual environment.
2. The method for generating a software virtualization test environment according to claim 1, characterized in that, The load balancing model between virtual machines includes: Among them, is the load balancing index between virtual machines, L i,cpu is the computing load of the i-th virtual machine, L i,storage is the storage load of the i-th virtual machine, P i is the priority of the i-th virtual machine.
3. The method for generating a software virtualization test environment according to claim 2, wherein, The virtual machine performance monitoring model includes: Among them, is the virtual machine performance index, C i is the CPU utilization rate of the i-th virtual machine, M i is the memory utilization rate of the i-th virtual machine, D i is the disk I / O of the i-th virtual machine, N′ i is the network bandwidth of the i-th virtual machine.
4. The method for generating a software virtualization test environment according to claim 3, wherein, The virtual machine resource dynamic adjustment model includes: Among them, 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, R′ i is the recovery time of the i-th virtual machine, which is used to simulate the recovery time after the virtual machine fails.
5. The method for generating a software virtualization test environment according to claim 4, wherein Including: Among them, 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.
6. A software virtualization test environment generation system, characterized in that Including: An acquisition data module for obtaining the information data of the virtual machine, where the information data includes: the resource usage of the virtual machine, the computing 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; A setting model module for respectively setting the virtual resource utilization efficiency model, the load balancing model between virtual machines, the virtual machine performance monitoring model, and the virtual machine resource dynamic adjustment model, and calculating the virtual resource utilization efficiency index, the load balancing index between virtual machines, the virtual machine performance index, and the resource dynamic adjustment index respectively according to the information data; The virtual resource utilization efficiency model includes: Among them, 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 i-th virtual machine, N is the total number of virtual machines, T i is the temperature of the i-th virtual machine, used to simulate the influence of the physical server temperature, F i is the failure rate of the i-th virtual machine, used to simulate the reliability of the virtual machine; An optimization module for performing a weighted sum of all the indexes to generate an overall operation index of the virtual environment, and completing the generation and optimization of the software virtualization test environment according to the overall operation index of the virtual environment.
7. The software virtualization test environment generation system according to claim 6, wherein, The load balancing model between virtual machines includes: Among them, is the load balancing index between virtual machines, L i,cpu is the computing load of the i-th virtual machine, L i,storage is the storage load of the i-th virtual machine, P i is the priority of the i-th virtual machine.
8. The software virtualization test environment generation system according to claim 7, wherein, The virtual machine performance monitoring model includes: Among them, is the virtual machine performance index, C i is the CPU utilization rate of the i-th virtual machine, M i is the memory utilization rate of the i-th virtual machine, D i is the disk I / O of the i-th virtual machine, N′ i is the network bandwidth of the i-th virtual machine.
Citation Information
Patent Citations
Server resource management system and method
CN117687740A