CN110928647A - Virtualization performance testing method and device - Google Patents
Virtualization performance testing method and device Download PDFInfo
- Publication number
- CN110928647A CN110928647A CN201911201784.3A CN201911201784A CN110928647A CN 110928647 A CN110928647 A CN 110928647A CN 201911201784 A CN201911201784 A CN 201911201784A CN 110928647 A CN110928647 A CN 110928647A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- virtual machines
- template
- duplicate
- test script
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45591—Monitoring or debugging support
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a virtualization performance testing method and a virtualization performance testing device, wherein the method comprises the following steps: installing a test component in a server to be tested; configuring a template virtual machine, adding a pressure test script into the template virtual machine and setting the pressure test script as a starting item; continuously and in batches, generating a plurality of duplicate virtual machines according to the template virtual machine, and starting the plurality of duplicate virtual machines to call the test components based on the pressure test script; continuously monitoring the number of the duplicate virtual machines and the corresponding resource use condition of the server to be tested; and analyzing the virtualization performance index of the server to be tested according to the monitored number of the different duplicate virtual machines and the corresponding resource use condition. By utilizing the embodiment of the invention, the actual running state is simulated as close as possible, and the simulation test based on the closer actual running state improves the test efficiency to a great extent, reduces the influence of human intervention and further integrally improves the effect of the virtualization performance test.
Description
Technical Field
The invention relates to the technical field of virtualization. The invention further relates to a virtualization performance testing method and device.
Background
A virtual machine (virtual machine) refers to a complete computer system with complete hardware system functionality, which is emulated by software and runs in a completely isolated environment.
Currently, a considerable number of virtual machines are typically configured in a cluster for data processing. And virtual machines typically have corresponding hardware configurations and software programs to implement corresponding functions.
When a cluster is generally established, each virtual machine is connected with a virtual machine network in the integrated cluster in a matching manner according to a certain protocol relationship, and the operation is carried out. After the cluster server is formed, each virtual machine needs to be tested, and the virtual machines of the whole cluster need to be tested, so that various indexes of the virtualization performance of the server are obtained.
The method commonly adopted in the existing virtualization performance test is to obtain a first single test element and call a first virtual machine; executing a test process based on the first single test element, testing a first test module of the first virtual machine, and displaying a test result; acquiring a second single test element, executing a test process based on the second single test element, testing a second test module of the first virtual machine, and displaying a test result; and repeatedly executing the test process, testing the nth test module of the first virtual machine, and displaying the test result. The above test mode has better and better advantages for small-scale clusters or simple-architecture servers, but has the following disadvantages for large-scale clusters and complex-architecture servers:
(1) under the condition of setting more virtual machines, each virtual machine, each test element and each test module need to be tested one by one, which consumes a large amount of time and increases the labor intensity;
(2) in the process of testing each virtual machine, each testing element and each testing module one by one, errors exist in the testing result due to carelessness caused by human intervention and the like in each operation, and the stability of the test is influenced;
(3) the single test for each virtual machine, each test element, and each test module one by one cannot completely and truly simulate the actual operating state of the cluster and/or the server, which often causes a situation that the theoretical index obtained by the test has a large deviation from the actual parameters in the operation of the real environment.
Therefore, based on the above problems in the prior art, it is desirable to provide an optimized virtualization performance test method, so as to simulate the actual operation state as close as possible, improve the test efficiency, reduce the influence of human intervention, and further improve the virtualization performance test effect as a whole.
Disclosure of Invention
In one aspect, the present invention provides a method for virtualization performance testing based on the above object, wherein the method comprises the following steps:
installing a test component in a server to be tested;
configuring a template virtual machine, adding a pressure test script into the template virtual machine and setting the pressure test script as a starting item;
continuously and in batches, generating a plurality of duplicate virtual machines according to the template virtual machine, and starting the plurality of duplicate virtual machines to call the test components based on the pressure test script;
continuously monitoring the number of the duplicate virtual machines and the corresponding resource use condition of the server to be tested;
and analyzing the virtualization performance index of the server to be tested according to the monitored number of the different duplicate virtual machines and the corresponding resource use condition.
According to the embodiment of the method for testing the virtualization performance, the configuring the template virtual machine, and adding the pressure test script into the template virtual machine and setting the pressure test script as the boot start item further comprises:
generating a virtualized host in a server to be tested, and installing an operating system in the virtualized host to configure as a template virtual machine;
and adding the pressure test script into an operating system of the template virtual machine, and setting the pressure test script as a starting item in the operating system.
An embodiment of the method of virtualizing performance testing according to the present invention, wherein the generating a plurality of replica virtual machines from the template virtual machine continuously and in batches, and the starting the plurality of replica virtual machines to invoke the test component based on the stress test script further comprises:
generating a plurality of duplicate virtual machines completely consistent with the template virtual machine based on the template virtual machine and distributing marks;
and monitoring the plurality of duplicate virtual machines, and sending out a fault prompt with a mark aiming at the duplicate virtual machine with a problem in the generation process.
An embodiment of the method of virtualizing performance testing according to the present invention, wherein the generating a plurality of replica virtual machines from the template virtual machine continuously and in batches, and the starting the plurality of replica virtual machines to invoke the test component based on the stress test script further comprises:
and respectively running the pressure test scripts on the multiple duplicate virtual machines to respectively call each functional software and/or application program in the test component according to the sequence set in the pressure test scripts to perform pressure test.
An embodiment of the method of virtualizing performance testing according to the present invention, wherein the generating a plurality of replica virtual machines from the template virtual machine continuously and in batches, and the starting the plurality of replica virtual machines to invoke the test component based on the stress test script further comprises:
starting a plurality of duplicate virtual machines and triggering delay timing;
in response to the delay timer reaching a predetermined time, a test component is invoked based on the stress test script.
In another aspect, the present invention further provides an apparatus for virtualization performance testing, wherein the apparatus includes:
at least one processor; and
a memory storing processor-executable program instructions that, when executed by the processor, perform the steps of:
installing a test component in a server to be tested;
configuring a template virtual machine, adding a pressure test script into the template virtual machine and setting the pressure test script as a starting item;
continuously and in batches, generating a plurality of duplicate virtual machines according to the template virtual machine, and starting the plurality of duplicate virtual machines to call the test components based on the pressure test script;
continuously monitoring the number of the duplicate virtual machines and the corresponding resource use condition of the server to be tested;
and analyzing the virtualization performance index of the server to be tested according to the monitored number of the different duplicate virtual machines and the corresponding resource use condition.
An embodiment of the apparatus for virtualization performance test according to the present invention, wherein the configuring the template virtual machine and adding the pressure test script to the template virtual machine and setting the pressure test script as a boot start item further comprises:
generating a virtualized host in a server to be tested, and installing an operating system in the virtualized host to configure as a template virtual machine;
and adding the pressure test script into an operating system of the template virtual machine, and setting the pressure test script as a starting item in the operating system.
An embodiment of the apparatus for virtualizing a performance test according to the present invention, wherein the generating the plurality of replica virtual machines from the template virtual machine continuously and in batches, and the starting the plurality of replica virtual machines to call the test component based on the stress test script further comprises:
generating a plurality of duplicate virtual machines completely consistent with the template virtual machine based on the template virtual machine and distributing marks;
and monitoring the plurality of duplicate virtual machines, and sending out a fault prompt with a mark aiming at the duplicate virtual machine with a problem in the generation process.
An embodiment of the apparatus for virtualizing a performance test according to the present invention, wherein the generating the plurality of replica virtual machines from the template virtual machine continuously and in batches, and the starting the plurality of replica virtual machines to call the test component based on the stress test script further comprises:
and respectively running the pressure test scripts on the multiple duplicate virtual machines to respectively call each functional software and/or application program in the test component according to the sequence set in the pressure test scripts to perform pressure test.
An embodiment of the apparatus for virtualizing a performance test according to the present invention, wherein the generating the plurality of replica virtual machines from the template virtual machine continuously and in batches, and the starting the plurality of replica virtual machines to call the test component based on the stress test script further comprises:
starting a plurality of duplicate virtual machines and triggering delay timing;
in response to the delay timer reaching a predetermined time, a test component is invoked based on the stress test script.
By adopting the technical scheme, the invention at least has the following beneficial effects: aiming at the problems that the deviation of theoretical indexes and actual parameters is large, the testing process is time-consuming and labor-consuming, and the testing stability is influenced by human intervention in the prior art, various testing elements are combined in a pressure testing script, and duplicate virtual machines are generated in batches to simultaneously, comprehensively and randomly combine the testing elements based on the pressure testing script, so that the actual running state is simulated as close as possible, the testing efficiency is improved to a great extent based on the simulation test closer to the actual running state, the influence of the human intervention is reduced, and the effect of the virtualization performance test is integrally improved.
The present invention provides aspects of embodiments, which should not be used to limit the scope of the present invention. Other embodiments are contemplated in accordance with the techniques described herein, as will be apparent to one of ordinary skill in the art upon study of the following figures and detailed description, and are intended to be included within the scope of the present application.
Embodiments of the invention are explained and described in more detail below with reference to the drawings, but they should not be construed as limiting the invention.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the description of the prior art and the embodiments will be briefly described below, parts in the drawings are not necessarily drawn to scale, and related elements may be omitted, or in some cases the scale may have been exaggerated in order to emphasize and clearly show the novel features described herein. In addition, the structural order may be arranged differently, as is known in the art.
FIG. 1 shows a schematic block diagram of an embodiment of a method of virtualizing performance tests in accordance with the present invention.
Detailed Description
While the present invention may be embodied in various forms, there is shown in the drawings and will hereinafter be described some exemplary and non-limiting embodiments, with the understanding that the present disclosure is to be considered an exemplification of the invention and is not intended to limit the invention to the specific embodiments illustrated.
FIG. 1 shows a schematic block diagram of an embodiment of a method of virtualizing performance tests in accordance with the present invention. In the embodiment shown in the figure, the method comprises at least the following steps:
s1: installing a test component in a server to be tested;
s2: configuring a template virtual machine, adding a pressure test script into the template virtual machine and setting the pressure test script as a starting item;
s3: continuously and in batches, generating a plurality of duplicate virtual machines according to the template virtual machine, and starting the plurality of duplicate virtual machines to call the test components based on the pressure test script;
s4: continuously monitoring the number of the duplicate virtual machines and the corresponding resource use condition of the server to be tested;
s5: and analyzing the virtualization performance index of the server to be tested according to the monitored number of the different duplicate virtual machines and the corresponding resource use condition.
First, in order to perform a stress test on the virtualization performance of the server, a test component needs to be installed in the server under test in step S1. In some embodiments, the testing component may be a daily functional software and/or application, including: word, ie, ppt, excel, notepad, and the like. The requirements on hardware resources (i.e. test elements) during the operation of these test components are different, in other words, different test elements can be tested simultaneously by the operation of the combination of these functional software and/or applications. Subsequently, step S2 configures the template virtual machine, and adds the stress test script to the template virtual machine and sets it as a boot item. The stress test script herein contains instructions to invoke the test component described above. Thus, the establishment of the template virtual machine is completed. The duplicate virtual machines may then be replicated using the template virtual machine, i.e., multiple duplicate virtual machines are generated from the template virtual machine continuously and in batches in step S3, and are launched to invoke the test component based on the stress test script. In other words, generating duplicate virtual machines in batches means gradually increasing the number of duplicate virtual machines in the server under test, and starting the generated duplicate virtual machines to invoke the test components based on the stress test script enables a stress test with increasing stress on the performance of the server under test. According to the actual test requirements and/or the user requirements, the number of the duplicate virtual machines generated and started in each batch can be constant or can be changed, such as decreasing, so that the constant boost pressure test and the variable boost pressure test of the server to be tested are realized, and for example, the specific limit index of the server to be tested is determined more accurately. Additionally, starting the generated replica virtual machine can be accomplished in two ways. One is that by starting the template virtual machine, the copy virtual machine generated by the template virtual machine is started along with the starting of the template virtual machine; the two replica virtual machines are started actively. In the testing process, step S4 monitors the number of duplicate virtual machines and the corresponding resource usage of the server to be tested in real time or at regular time, so as to obtain real effective data during testing, including the number of real effective duplicate virtual machines and the real effective resource usage, including but not limited to CPU usage, GPU usage, memory usage, hard disk occupancy, network bandwidth and rate of the server to be tested. Step S5 is to analyze the virtualization performance index of the server to be tested, such as the limit of the number of virtual machines that can be loaded by the server to be tested, according to the number of different duplicate virtual machines and the corresponding resource usage condition monitored in step S4.
Further embodiments of the present invention will be described below, it being noted that the numbering of the steps mentioned therein is used only for the convenience of unambiguously indicating the step without any particular indication, and does not limit the order of the steps described.
In some embodiments of the method for testing virtualization performance of the present invention, the step S2 configuring the template virtual machine, and adding the stress test script to the template virtual machine and setting it as a boot start further includes:
s21: generating a virtualized host in a server to be tested, and installing an operating system in the virtualized host to configure as a template virtual machine;
s22: and adding the pressure test script into an operating system of the template virtual machine, and setting the pressure test script as a starting item in the operating system.
Specifically, step S21 generates an empty virtualized host in the server under test using a suitable virtualization technique, and installs an operating system in the virtualized host to configure it as a template virtual machine. In some embodiments, this step may also be implemented to configure one of the empty hosts as a template virtual machine if one or more virtualized hosts already exist in the server under test. After the template virtual machine is configured, step S22 adds the stress test script to the operating system of the template virtual machine, and sets the stress test script as a boot item in the operating system. Thus, the establishment of the complete template virtual machine is completed. The template virtual machine may be used to generate a replica virtual machine during subsequent testing.
In some embodiments of the method for virtualization performance testing of the present invention, the step S3 of continuously and batchwise generating a plurality of duplicate virtual machines from the template virtual machine, and the starting the plurality of duplicate virtual machines to invoke the test component based on the stress test script further comprises:
s311: generating a plurality of duplicate virtual machines completely consistent with the template virtual machine based on the template virtual machine and distributing marks;
s312: and monitoring the plurality of duplicate virtual machines, and sending out a fault prompt with a mark aiming at the duplicate virtual machine with a problem in the generation process.
In the process of generating multiple duplicate virtual machines according to the template virtual machine in step S3, step S311 is further included to generate multiple duplicate virtual machines completely consistent with the template virtual machine based on the template virtual machine and assign a label, and step S312 is performed to monitor the multiple duplicate virtual machines generated at the same time, and once a duplicate virtual machine with a problem in the generation process is found, the label of the duplicate virtual machine is extracted and a fault prompt with a label is issued to remind the operation and maintenance staff to pay attention and take certain measures, for example, manually delete the duplicate virtual machine. The purpose of this is to prevent the problematic duplicate virtual machine generated due to the duplication exception from entering the testing link and further causing unnecessary adverse effects on the whole virtualization performance test.
In some embodiments of the method for virtualization performance testing of the present invention, the step S3 of continuously and batchwise generating a plurality of duplicate virtual machines from the template virtual machine, and the starting the plurality of duplicate virtual machines to invoke the test component based on the stress test script further comprises:
s321: and respectively running the pressure test scripts on the multiple duplicate virtual machines to respectively call each functional software and/or application program in the test component according to the sequence set in the pressure test scripts to perform pressure test.
As previously described, the stress test script contains instructions to invoke the test component described above. In some embodiments, the priority of each test component is preset in the stress test script, and the script further includes instructions to run each test component (e.g., daily function software and/or application) in order of priority, perform certain operations after running, exit without any saving or exit after saving data in a designated area, delete saved data, and the like. In a further embodiment, the pressure test script comprises instructions of opening word software, automatically typing a plurality of characters in an edit area of the word, not saving and quitting the word software and the like; in a further embodiment, the pressure test script comprises instructions of opening excel software, operating the sheet1 (including cell merging, font thickening, automatic applying formats, formulas and the like), exiting the excel software after the operation is completed, saving the data of the operation on a desktop, automatically deleting the saved data after a period of time, and the like; in a further embodiment, the pressure test script comprises instructions of opening the ppt software, opening "test. pptx" in a file mode, quitting the ppt software after the slide is played, not making any save record, and the like; in a further embodiment, the pressure test script comprises instructions of opening ie software, sequentially opening 3 webpages by the ie software, loading pictures, closing the webpages one by one, exiting the ie software, not making any history record and the like; in a further embodiment, the stress test script includes instructions to open the datapad software, type in several characters, exit the datapad software, do no save records, and so on. It should be understood that the pressure test script described in the present invention includes, but is not limited to, the above embodiments and the combination of the above embodiments. The above embodiments should be understood as illustrative, not limiting, of the contents of the stress test script.
In some embodiments of the method for virtualization performance testing of the present invention, the step S3 of continuously and batchwise generating a plurality of duplicate virtual machines from the template virtual machine, and the starting the plurality of duplicate virtual machines to invoke the test component based on the stress test script further comprises:
s331: starting a plurality of duplicate virtual machines and triggering delay timing;
s332: in response to the delay timer reaching a predetermined time, a test component is invoked based on the stress test script.
Considering that the virtual machines need to simulate the hardware instructions of the underlying layer, if the pressure test script is run just after the virtual machines are started to operate the test components, which affects the starting speed, in a preferred embodiment, a delay time is set, step S331 first triggers the delay timer while starting a plurality of duplicate virtual machines, and step S332 starts to call the test components based on the pressure test script after the delay timer reaches a predetermined time, for example, after the duplicate virtual machines are started for two minutes.
In addition, in a further embodiment, if the pressure test script is abnormally interrupted in the process of running, the pressure test script may need to be edited again, and the office. au3 is opened by using the auto to find the root cause of the problem. Correspondingly, the pressure test script is updated, the updated virtual machine sends the updated pressure test script to the corresponding template virtual machine, and the template virtual machine receives the updated pressure test script, performs synchronous operation on the duplicate virtual machine generated by the template virtual machine, and distributes the new pressure test script to the corresponding duplicate virtual machine.
In addition, in a further embodiment, if all the test components are not required to be operated according to the requirement of a user or the actual requirement of the virtualization performance test of the server to be tested, the test can be suspended, the pressure test script of the template virtual machine is edited, and the part which is not required to be executed is removed. The template virtual machine then synchronizes its generated replica virtual machines to distribute new stress test scripts to the respective replica virtual machines.
In another aspect, the present invention further provides an apparatus for virtualization performance testing, wherein the apparatus includes:
at least one processor; and
a memory storing processor-executable program instructions that, when executed by the processor, perform the steps of:
s1: installing a test component in a server to be tested;
s2: configuring a template virtual machine, adding a pressure test script into the template virtual machine and setting the pressure test script as a starting item;
s3: continuously and in batches, generating a plurality of duplicate virtual machines according to the template virtual machine, and starting the plurality of duplicate virtual machines to call the test components based on the pressure test script;
s4: continuously monitoring the number of the duplicate virtual machines and the corresponding resource use condition of the server to be tested;
s5: and analyzing the virtualization performance index of the server to be tested according to the monitored number of the different duplicate virtual machines and the corresponding resource use condition.
In some embodiments of the apparatus for virtualization performance testing of the present invention, the step S2 configuring the template virtual machine, and adding the stress test script to the template virtual machine and setting it as a boot start item further includes:
s21: generating a virtualized host in a server to be tested, and installing an operating system in the virtualized host to configure as a template virtual machine;
s22: and adding the pressure test script into an operating system of the template virtual machine, and setting the pressure test script as a starting item in the operating system.
In some embodiments of the apparatus for virtualization performance testing of the present invention, the step S3 of continuously and batchwise generating a plurality of duplicate virtual machines from the template virtual machine, and starting the plurality of duplicate virtual machines to invoke the test component based on the stress test script further comprises:
s311: generating a plurality of duplicate virtual machines completely consistent with the template virtual machine based on the template virtual machine and distributing marks;
s312: and monitoring the plurality of duplicate virtual machines, and sending out a fault prompt with a mark aiming at the duplicate virtual machine with a problem in the generation process.
In some embodiments of the apparatus for virtualization performance testing of the present invention, the step S3 of continuously and batchwise generating a plurality of duplicate virtual machines from the template virtual machine, and starting the plurality of duplicate virtual machines to invoke the test component based on the stress test script further comprises:
s321: and respectively running the pressure test scripts on the multiple duplicate virtual machines to respectively call each functional software and/or application program in the test component according to the sequence set in the pressure test scripts to perform pressure test.
In some embodiments of the apparatus for virtualization performance testing of the present invention, the step S3 of continuously and batchwise generating a plurality of duplicate virtual machines from the template virtual machine, and starting the plurality of duplicate virtual machines to invoke the test component based on the stress test script further comprises:
s331: starting a plurality of duplicate virtual machines and triggering delay timing;
s332: in response to the delay timer reaching a predetermined time, a test component is invoked based on the stress test script.
The devices and apparatuses disclosed in the embodiments of the present invention may be various electronic terminal apparatuses, such as a mobile phone, a Personal Digital Assistant (PDA), a tablet computer (PAD), a smart television, and the like, or may be a large terminal apparatus, such as a server, and therefore the scope of protection disclosed in the embodiments of the present invention should not be limited to a specific type of device and apparatus. The client disclosed in the embodiment of the present invention may be applied to any one of the above electronic terminal devices in the form of electronic hardware, computer software, or a combination of both.
The computer-readable storage media (e.g., memory) described herein may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which can act as external cache memory. By way of example and not limitation, RAM is available in a variety of forms such as synchronous RAM (DRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
By adopting the technical scheme, the invention at least has the following beneficial effects: aiming at the problems that the deviation of theoretical indexes and actual parameters is large, the testing process is time-consuming and labor-consuming, and the testing stability is influenced by human intervention in the prior art, various testing elements are combined in a pressure testing script, and duplicate virtual machines are generated in batches to simultaneously, comprehensively and randomly combine the testing elements based on the pressure testing script, so that the actual running state is simulated as close as possible, the testing efficiency is improved to a great extent based on the simulation test closer to the actual running state, the influence of the human intervention is reduced, and the effect of the virtualization performance test is integrally improved.
It is to be understood that the features listed above for the different embodiments may be combined with each other to form further embodiments within the scope of the invention, where technically feasible. Furthermore, the specific examples and embodiments described herein are non-limiting, and various modifications of the structure, steps and sequence set forth above may be made without departing from the scope of the invention.
In this application, the use of the conjunction of the contrary intention is intended to include the conjunction. The use of definite or indefinite articles is not intended to indicate cardinality. In particular, references to "the" object or "an" and "an" object are intended to mean one of many such objects possible. However, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated. Furthermore, the conjunction "or" may be used to convey simultaneous features, rather than mutually exclusive schemes. In other words, the conjunction "or" should be understood to include "and/or". The term "comprising" is inclusive and has the same scope as "comprising".
The above-described embodiments, particularly any "preferred" embodiments, are possible examples of implementations, and are presented merely for a clear understanding of the principles of the invention. Many variations and modifications may be made to the above-described embodiments without departing substantially from the spirit and principles of the technology described herein. All such modifications are intended to be included within the scope of this disclosure.
Claims (10)
1. A method of virtualizing performance testing, the method comprising the steps of:
installing a test component in a server to be tested;
configuring a template virtual machine, adding a pressure test script into the template virtual machine and setting the pressure test script as a starting item;
continuously and in batches, generating a plurality of duplicate virtual machines according to the template virtual machine, and starting the plurality of duplicate virtual machines to call the test component based on the pressure test script;
continuously monitoring the number of the duplicate virtual machines and the corresponding resource use condition of the server to be tested;
and analyzing the virtualization performance index of the server to be tested according to the monitored number of the different duplicate virtual machines and the corresponding resource use condition.
2. The method of claim 1, wherein configuring the template virtual machine and adding a stress test script to the template virtual machine and setting the stress test script as a boot item further comprises:
generating a virtualized host in the server to be tested, and installing an operating system in the virtualized host to configure as the template virtual machine;
and adding the pressure test script into the operating system of the template virtual machine, and setting the pressure test script as a starting item in the operating system.
3. The method of claim 1, wherein the continuously and batchwise generating a plurality of replica virtual machines from the template virtual machine, and launching the plurality of replica virtual machines to invoke the test component based on the stress test script further comprises:
generating a plurality of duplicate virtual machines completely consistent with the template virtual machine based on the template virtual machine and distributing marks;
and monitoring the plurality of duplicate virtual machines, and sending a fault prompt with the mark aiming at the duplicate virtual machine with a problem in the generation process.
4. The method of claim 1, wherein the continuously and batchwise generating a plurality of replica virtual machines from the template virtual machine, and launching the plurality of replica virtual machines to invoke the test component based on the stress test script further comprises:
and respectively running the pressure test scripts on the multiple duplicate virtual machines to respectively call the functional software and/or the application programs in the test component to perform pressure test according to the sequence set in the pressure test scripts.
5. The method of claim 1, wherein the continuously and batchwise generating a plurality of replica virtual machines from the template virtual machine, and launching the plurality of replica virtual machines to invoke the test component based on the stress test script further comprises:
starting the plurality of duplicate virtual machines and triggering delay timing;
invoking the test component based on the stress test script in response to the delay timer reaching a predetermined time.
6. An apparatus for virtualization performance testing, the apparatus comprising:
at least one processor; and
a memory storing processor-executable program instructions that, when executed by the processor, perform the steps of:
installing a test component in a server to be tested;
configuring a template virtual machine, adding a pressure test script into the template virtual machine and setting the pressure test script as a starting item;
continuously and in batches, generating a plurality of duplicate virtual machines according to the template virtual machine, and starting the plurality of duplicate virtual machines to call the test component based on the pressure test script;
continuously monitoring the number of the duplicate virtual machines and the corresponding resource use condition of the server to be tested;
and analyzing the virtualization performance index of the server to be tested according to the monitored number of the different duplicate virtual machines and the corresponding resource use condition.
7. The apparatus of claim 6, wherein the configuring the template virtual machine and adding a stress test script to the template virtual machine and setting as a boot item further comprises:
generating a virtualized host in the server to be tested, and installing an operating system in the virtualized host to configure as the template virtual machine;
and adding the pressure test script into the operating system of the template virtual machine, and setting the pressure test script as a starting item in the operating system.
8. The apparatus of claim 6, wherein the continuously and batchwise generating a plurality of replica virtual machines from the template virtual machine, and initiating the plurality of replica virtual machines to invoke the test component based on the stress test script further comprises:
generating a plurality of duplicate virtual machines completely consistent with the template virtual machine based on the template virtual machine and distributing marks;
and monitoring the plurality of duplicate virtual machines, and sending a fault prompt with the mark aiming at the duplicate virtual machine with a problem in the generation process.
9. The apparatus of claim 6, wherein the continuously and batchwise generating a plurality of replica virtual machines from the template virtual machine, and initiating the plurality of replica virtual machines to invoke the test component based on the stress test script further comprises:
and respectively running the pressure test scripts on the multiple duplicate virtual machines to respectively call the functional software and/or the application programs in the test component to perform pressure test according to the sequence set in the pressure test scripts.
10. The apparatus of claim 6, wherein the continuously and batchwise generating a plurality of replica virtual machines from the template virtual machine, and initiating the plurality of replica virtual machines to invoke the test component based on the stress test script further comprises:
starting the plurality of duplicate virtual machines and triggering delay timing;
invoking the test component based on the stress test script in response to the delay timer reaching a predetermined time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911201784.3A CN110928647A (en) | 2019-11-29 | 2019-11-29 | Virtualization performance testing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911201784.3A CN110928647A (en) | 2019-11-29 | 2019-11-29 | Virtualization performance testing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110928647A true CN110928647A (en) | 2020-03-27 |
Family
ID=69848011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911201784.3A Withdrawn CN110928647A (en) | 2019-11-29 | 2019-11-29 | Virtualization performance testing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110928647A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112306639A (en) * | 2020-11-11 | 2021-02-02 | 新华三大数据技术有限公司 | Virtual desktop testing method and device |
CN113010262A (en) * | 2021-02-22 | 2021-06-22 | 樊馨 | Memory optimization method based on cloud computing |
CN118132425A (en) * | 2024-02-27 | 2024-06-04 | 北京安锐卓越信息技术股份有限公司 | Multi-machine distributed pressure measurement method, device, medium and electronic equipment |
-
2019
- 2019-11-29 CN CN201911201784.3A patent/CN110928647A/en not_active Withdrawn
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112306639A (en) * | 2020-11-11 | 2021-02-02 | 新华三大数据技术有限公司 | Virtual desktop testing method and device |
CN112306639B (en) * | 2020-11-11 | 2023-02-24 | 新华三大数据技术有限公司 | Virtual desktop testing method and device |
CN113010262A (en) * | 2021-02-22 | 2021-06-22 | 樊馨 | Memory optimization method based on cloud computing |
CN113010262B (en) * | 2021-02-22 | 2022-05-10 | 中科磐云(北京)科技有限公司 | Memory optimization method based on cloud computing |
CN118132425A (en) * | 2024-02-27 | 2024-06-04 | 北京安锐卓越信息技术股份有限公司 | Multi-machine distributed pressure measurement method, device, medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108958927B (en) | Deployment method and device of container application, computer equipment and storage medium | |
CN110928647A (en) | Virtualization performance testing method and device | |
CN111124850A (en) | MQTT server performance testing method, system, computer equipment and storage medium | |
CN106649057A (en) | Method and device for testing server pressure | |
CN105653338B (en) | A kind of update method and device of application | |
CN112615759B (en) | Full link voltage measurement assembly, full link voltage measurement method and device | |
US9898390B2 (en) | Virtual service localization | |
CN112799940B (en) | Regression testing method, regression testing device, computer system and computer readable storage medium | |
US11580008B2 (en) | Method and system for synchronous development and testing of live, multi-tenant microservices based SaaS systems | |
CN109522173A (en) | A kind of OPA network card testing method, device, terminal and storage medium | |
CN111274512A (en) | Page loading method, device and medium | |
CN109684166A (en) | Method, apparatus, terminal and the storage medium of automatic test Sensor log normalization | |
CN112650689A (en) | Test method, test device, electronic equipment and storage medium | |
CN114531477A (en) | Method and device for configuring functional components, computer equipment and storage medium | |
CN111752828A (en) | Performance test method and device for Web application | |
US11921604B2 (en) | Evaluating system recovery using emulated production systems | |
CN110442500A (en) | A kind of test method and device of the super fusion clustering performance based on Unixbench | |
CN104182344B (en) | Overwrite installation testing method and overwrite installation testing device | |
CN112667490A (en) | Performance test method and device based on hook function | |
CN111124890B (en) | Distributed database performance test method, system, terminal and storage medium | |
CN106815127A (en) | The cloud desktop method for testing pressure of controllable load | |
CN110990207A (en) | BPS memory test method, system, terminal and storage medium based on Whitley platform | |
CN115617668A (en) | Compatibility testing method, device and equipment | |
CN115114135B (en) | Software data testing method, device, equipment, medium and product | |
CN111143193B (en) | Big data service testing method, system, terminal and storage medium based on RobotFramework |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200327 |