CN105373477B - Capacity testing method - Google Patents

Capacity testing method Download PDF

Info

Publication number
CN105373477B
CN105373477B CN201510834326.9A CN201510834326A CN105373477B CN 105373477 B CN105373477 B CN 105373477B CN 201510834326 A CN201510834326 A CN 201510834326A CN 105373477 B CN105373477 B CN 105373477B
Authority
CN
China
Prior art keywords
virtual machine
test
client
capacity
virtual machines
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.)
Active
Application number
CN201510834326.9A
Other languages
Chinese (zh)
Other versions
CN105373477A (en
Inventor
孙铁闯
周晓宇
唐冰
江水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ISOFT INFRASTRUCTURE SOFTWARE CO Ltd
Original Assignee
ISOFT INFRASTRUCTURE SOFTWARE CO Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by ISOFT INFRASTRUCTURE SOFTWARE CO Ltd filed Critical ISOFT INFRASTRUCTURE SOFTWARE CO Ltd
Priority to CN201510834326.9A priority Critical patent/CN105373477B/en
Publication of CN105373477A publication Critical patent/CN105373477A/en
Application granted granted Critical
Publication of CN105373477B publication Critical patent/CN105373477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a capacity testing method, belonging to the technical field of automatic testing; including control end and at least one customer end, the control end respectively with the customer end is connected, still includes: step S1, presetting a test template for generating a virtual machine in each client; step S2, generating a corresponding preset number of virtual machines in different clients according to the test template; and step S3, adopting the control end to perform capacity test according to the number of the virtual machines generated in all the clients and outputting test data. The beneficial effects of the above technical scheme are: the cost of the capacity test can be reduced, and the flexibility of the test resources of the capacity test is improved.

Description

Capacity testing method
Technical Field
The invention relates to the technical field of automatic testing, in particular to a capacity testing method.
Background
The so-called capacity test method is also used to test the maximum number of hardware devices that a server can control. The capacity test in the prior art generally adopts the following two ways:
1) the method is carried out in a mode of directly connecting physical equipment.
2) The method is carried out in a virtual machine mode.
In the first mode, because the number of the tested physical machines connected directly is limited, the capacity test cannot be accurately performed under the conditions that the capacity of the control server is large enough and the performance is good enough, and the test cost is high.
In the second method, because the conventional virtualization product considers more problems in terms of resource integration and hardware cost, some functions (such as cold and hot migration, load balancing, and the like) which are not used in the capacity test process are integrated, so that the virtual machine itself is relatively "bloated", and occupies a large amount of resources in the test process, thereby failing to expand the flexibility and flexibility of the virtual machine test.
In summary, there is no technical solution in the prior art that can better satisfy the requirement of setting monitored and controlled devices in batch during capacity testing.
Disclosure of Invention
According to the problems in the prior art, a technical scheme of a capacity testing method is provided, and aims to reduce the cost of capacity testing and improve the flexibility and the flexibility of testing resources of the capacity testing.
The technical scheme specifically comprises the following steps:
a capacity testing method comprises a control end and at least one client, wherein the control end is respectively connected with the client, and the capacity testing method further comprises the following steps:
step S1, presetting a test template for generating a virtual machine in each client;
step S2, generating a corresponding preset number of virtual machines in different clients according to the test template;
and step S3, adopting the control end to perform capacity test according to the number of the virtual machines generated in all the clients and outputting test data.
Preferably, in the capacity testing method, the step S1 specifically includes:
step S11, generating an initial virtual machine on the client;
step S12, setting an application environment in the initial virtual machine;
step S13, cutting and closing a plurality of redundant application software and/or application services in the initial virtual machine;
step S14, debugging whether the test scenario between the control end and the initial virtual machine formed in the client is normal:
if the test scenario is not normal, debugging the initial virtual machine, and returning to the step S14;
step S15, forming the test template according to the initial virtual machine, and then turning to the step S2.
Preferably, the capacity testing method, wherein the application environment includes:
installing the application software on the initial virtual machine; and/or
Setting the application service on the initial virtual machine; and/or
Installing middleware on the initial virtual machine; and/or
And installing a database on the initial virtual machine.
Preferably, in the capacity testing method, before the step S1 is executed, a basic operating system required for the capacity test is installed on each client.
Preferably, in the capacity test method, the virtual machines included in each client are operated in batch.
Preferably, the capacity testing method, wherein the batch operation comprises:
starting the virtual machines in batches; and/or
Stopping the virtual machines in batches; and/or
Creating the virtual machines in batches; and/or
And deleting the virtual machines in batches.
Preferably, in the capacity testing method, each of the security units is used to perform security management of data transmission on each of the virtual machines;
a plurality of safety units are arranged and are related to one client, and the safety units are mutually independent;
the safety units correspond to the virtual machines one by one.
Preferably, in the capacity testing method, an address allocation unit is respectively arranged corresponding to each client;
allocating an IP address to each virtual machine in the client by adopting the address allocation unit;
the IP address of each of the virtual machines is different.
Preferably, in the capacity testing method, a data acquisition unit is arranged in each virtual machine in each client;
in step S3, the test data associated with each virtual machine is obtained by using the data acquisition unit.
The beneficial effects of the above technical scheme are: the capacity testing method is provided, the cost of capacity testing can be reduced, and the flexibility of testing resources of the capacity testing is improved.
Drawings
FIG. 1 is a schematic flow chart of a capacity testing method according to a preferred embodiment of the present invention;
FIG. 2 is a flow chart of a capacity testing method according to a preferred embodiment of the present invention based on FIG. 1.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The invention is further described with reference to the following drawings and specific examples, which are not intended to be limiting.
In a preferred embodiment of the present invention, based on the above problems in the prior art, a capacity testing method is provided, which includes a control end and at least one client end, wherein the control end is connected to the client end respectively.
The capacity testing method is shown in fig. 1, and specifically includes:
step S1, presetting a test template for generating a virtual machine in each client;
step S2, generating a corresponding preset number of virtual machines in different clients according to the test template;
and step S3, adopting the control end to perform capacity test according to the number of the virtual machines generated in all the clients and outputting test data.
In a specific embodiment, a test template for generating virtual machines is preset in each client, and then a preset number of virtual machines are generated in each client according to the test template. The preset number of virtual machines generated in different clients may be different from each other and support a preset setting.
Subsequently, in this embodiment, the control end is adopted to perform a capacity test according to the number of virtual machines generated in all the clients, and output test data, and whether the maximum capacity of the control end is obtained is tested according to all the virtual machines generated in all the clients.
In a preferred embodiment of the present invention, as shown in fig. 2, the step S1 specifically includes:
step S11, generating an initial virtual machine on the client;
step S12, setting an application environment in the initial virtual machine;
step S13, cutting and closing a plurality of redundant application software and/or application services in the initial virtual machine;
step S14, whether the test scenario between the initial virtual machine formed in the debugging control end and the client is normal:
if the test scene is abnormal, debugging the initial virtual machine, and returning to the step S14;
step S15, forming a test template from the initial virtual machine, and then proceeding to step S2.
Specifically, in the preferred embodiment of the present invention, an initial virtual machine is first generated in the client, and the initial virtual machine is used to form a subsequent test template.
Subsequently, a corresponding application environment is set on the virtual machine, and the application environment may be an application environment required for building a general virtual machine, and may specifically include several of the following:
installing application software on the initial virtual machine;
setting application service on the initial virtual machine;
installing middleware on the initial virtual machine;
and installing the database on the initial virtual machine.
In a preferred embodiment of the present invention, in order to support the capacity test, the installed application software, application service, middleware, database, etc. need to be configured with a boot-up self-starting service.
However, the application environment required by the conventional virtual machine may not be suitable for capacity testing, because the conventional virtual machine includes an application environment which is more suitable for daily application but not suitable for capacity testing, such as some application software or application service. In view of the above, in the preferred embodiment of the present invention, after the application environment is set in the initial virtual machine, a plurality of redundant application software and/or application services are cut and closed. Specifically, the redundant application software and/or application service refers to application software and/or application service that is not required in the capacity test, and the application software and/or application service is cut and closed, so that the initial virtual machine can be simplified to be more suitable for the capacity test.
And then, judging whether the simulated test scene between the simplified initial virtual machine and the control end normally operates:
if the operation is normal, the debugging is not needed, and a corresponding test template is directly generated according to the initial virtual machine;
if the operation is abnormal, debugging of various settings of the initial virtual machine is needed, and whether the simulated test scene is normal is judged again. The debugging process may be repeated for a plurality of times until the simulated test scene between the initial virtual machine and the control end runs normally.
In a preferred embodiment of the present invention, the test template is a configuration file that stores basic configurations of the initial virtual machine. The client can "copy" other multiple initial virtual machines using the configuration file without manually configuring the implementing virtual machines one by one.
In a preferred embodiment of the present invention, the test template may be saved after being generated, and export is supported, that is, the test template is not limited to generating a virtual machine in one client, and also supports exporting and placing to other clients to generate a virtual machine. In other words, the process of generating the test template can be performed only once in the same capacity test process, thereby reducing the complexity of the test process.
In a preferred embodiment of the present invention, before the step S1 is executed, a basic operating system required by the capacity test is installed on each client. Further, after the basic operating system is installed, the firewall on the client is closed, and relevant application software for generating the test template and forming the virtual machine is installed.
In a preferred embodiment of the present invention, in the capacity testing method, batch operations are supported for all the virtual machines included in each client.
The batch operation includes at least one of:
starting virtual machines in batches;
stopping the virtual machines in batches;
creating virtual machines in batches;
and deleting the virtual machines in batches.
Specifically, in the preferred embodiment of the present invention, in the process of performing the capacity test, the application software for managing the virtual machines can be flexibly applied, and the console is used to control and implement batch start-stop of the virtual machines, batch creation of the virtual machines, or batch deletion of the virtual machines in each client, so as to continuously match the result of the capacity test to find the maximum number of connectable devices at the control end.
In the preferred embodiment of the invention, a security unit is respectively adopted to perform security management of data transmission on each virtual machine;
a plurality of safety units are arranged and are related to one client side, and the safety units are mutually independent;
the security units correspond to the virtual machines one to one.
Specifically, in a preferred embodiment of the present invention, the security unit may be a firewall respectively associated with each virtual machine, which is set in each client, that is, the firewalls of each virtual machine are independent from each other and do not interfere with each other.
In the preferred embodiment of the present invention, an address allocation unit is respectively configured for each client;
allocating an IP address to each virtual machine in the client by adopting an address allocation unit;
the IP address of each virtual machine is different.
In other words, the IP addresses between the different virtual machines in each client are independent and do not interfere with each other.
In a preferred embodiment of the present invention, a data acquisition unit is disposed in each virtual machine in each client;
the test data associated with each virtual machine is acquired using the data acquisition unit in step S3.
Specifically, in the preferred embodiment of the present invention, a data acquisition unit (e.g., a data probe) is disposed in each virtual machine of each client. The data acquisition unit can acquire the operation data of each virtual machine in the capacity test process and send the acquired operation data back to the control end. And the control end judges whether the current capacity is feasible or not according to the operation data, and correspondingly adjusts the connection number of the equipment so as to carry out the capacity test again.
In summary, in the technical scheme of the invention:
firstly, a control end and at least one client end are set, and basic operating systems are installed on the control end and the client end. And installing application software/application service for monitoring the operation and maintenance class on each client, and installing application software for generating the test template and the virtual machine.
Then, an initial virtual machine is generated in the client, and the initial virtual machine is reduced by installing data probes and other common application software, application services, middleware, related databases and the like on the virtual machine and cutting and closing some unnecessary application software and/or services according to the requirement of capacity test. Debugging the simplified initial virtual machine to ensure that the simulated test scene between the simplified initial virtual machine and the control end operates normally, finally closing the initial virtual machine, and generating a test template according to the configuration file of the initial virtual machine.
And then, generating the virtual machines in batches according to the test template, deploying the test scenes in batches, and finally executing the capacity test according to the number of all the virtual machines generated in all the clients connected with the control end.
After the capacity test is executed, the data probe reports the operation data of each virtual machine to the control end, and the control end judges whether the capacity needs to be adjusted or not according to the received operation data, namely whether the virtual machines need to be started and stopped in batches or deleted in batches or created in batches. After the adjustment, the control end performs the capacity test again. And finally testing to obtain the maximum number of the hardware equipment which can be connected and/or monitored by the control end through multiple times of adjustment.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (7)

1. A capacity testing method is characterized by comprising a control end and at least one client, wherein the control end is respectively connected with the client, and the capacity testing method further comprises the following steps:
step S1, presetting a test template for generating a virtual machine in each client;
step S2, generating a corresponding preset number of virtual machines in different clients according to the test template;
step S3, adopting the control end to perform capacity test according to the number of the virtual machines generated in all the clients and outputting test data;
respectively adopting a safety unit to carry out safety management of data transmission on each virtual machine;
a plurality of safety units are arranged and are related to one client, and the safety units are mutually independent;
the safety units correspond to the virtual machines one by one;
the step S1 specifically includes:
step S11, generating an initial virtual machine on the client;
step S12, setting an application environment in the initial virtual machine;
step S13, cutting and closing a plurality of redundant application software and/or application services in the initial virtual machine;
step S14, debugging whether the test scenario between the control end and the initial virtual machine formed in the client is normal:
if the test scenario is not normal, debugging the initial virtual machine, and returning to the step S14;
step S15, forming the test template according to the initial virtual machine, and then turning to the step S2;
the test template stores configuration files of various basic configurations of the initial virtual machine.
2. The capacity testing method of claim 1, wherein the application environment comprises:
installing the application software on the initial virtual machine; and/or
Setting the application service on the initial virtual machine; and/or
Installing middleware on the initial virtual machine; and/or
And installing a database on the initial virtual machine.
3. The capacity testing method of claim 1, wherein before executing the step S1, a basic operating system required by the capacity test is installed on each client.
4. The capacity testing method of claim 1, wherein the virtual machines included in each of the clients are batch-operated.
5. The capacity testing method of claim 4, wherein the batch operation comprises:
starting the virtual machines in batches; and/or
Stopping the virtual machines in batches; and/or
Creating the virtual machines in batches; and/or
And deleting the virtual machines in batches.
6. The capacity testing method according to claim 1, wherein an address allocation unit is respectively provided for each of the clients;
allocating an IP address to each virtual machine in the client by adopting the address allocation unit;
the IP address of each of the virtual machines is different.
7. The capacity testing method of claim 1, wherein a data acquisition unit is provided in each of the virtual machines in each of the clients;
in step S3, the test data associated with each virtual machine is obtained by using the data acquisition unit.
CN201510834326.9A 2015-11-25 2015-11-25 Capacity testing method Active CN105373477B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510834326.9A CN105373477B (en) 2015-11-25 2015-11-25 Capacity testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510834326.9A CN105373477B (en) 2015-11-25 2015-11-25 Capacity testing method

Publications (2)

Publication Number Publication Date
CN105373477A CN105373477A (en) 2016-03-02
CN105373477B true CN105373477B (en) 2022-01-11

Family

ID=55375695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510834326.9A Active CN105373477B (en) 2015-11-25 2015-11-25 Capacity testing method

Country Status (1)

Country Link
CN (1) CN105373477B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108897656A (en) * 2018-05-30 2018-11-27 郑州云海信息技术有限公司 A kind of method and system of automatic test NAS store function
CN110502316A (en) * 2019-08-26 2019-11-26 杭州安恒信息技术股份有限公司 A kind of test machine configuration method, system and relevant apparatus based on KVM platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347979A (en) * 2010-07-29 2012-02-08 日本电气株式会社 Thin client system, management server, and virtual machine creation management method
CN102457512A (en) * 2010-11-08 2012-05-16 中标软件有限公司 Thin client server virtualization method and virtual thin client server
CN104503875A (en) * 2014-12-08 2015-04-08 深圳市阿龙电子有限公司 Test method and test system of Android device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060184937A1 (en) * 2005-02-11 2006-08-17 Timothy Abels System and method for centralized software management in virtual machines
US8949791B2 (en) * 2009-07-08 2015-02-03 Vmware, Inc. Distributed software testing using cloud computing resources
US8489929B2 (en) * 2010-09-30 2013-07-16 Salesforce.Com, Inc. Facilitating large-scale testing using virtualization technology in a multi-tenant database environment
CA2847975A1 (en) * 2011-09-07 2013-03-14 Tandemlaunch Technologies Inc. System and method for using eye gaze information to enhance interactions
CN102662836B (en) * 2012-03-28 2015-06-03 易云捷讯科技(北京)有限公司 Evaluation system and method for virtual machine
US9047410B2 (en) * 2012-07-18 2015-06-02 Infosys Limited Cloud-based application testing
CN103118100A (en) * 2013-01-25 2013-05-22 武汉大学 Guarantee method and guarantee system for improving usability of virtual machine application
CN104735102A (en) * 2013-12-18 2015-06-24 广州岚萃贸易有限公司 Customer relation management system based on cloud platform and cloud computing
CN104008012B (en) * 2014-05-30 2017-10-20 长沙麓云信息科技有限公司 A kind of high-performance MapReduce implementation methods based on dynamic migration of virtual machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347979A (en) * 2010-07-29 2012-02-08 日本电气株式会社 Thin client system, management server, and virtual machine creation management method
CN102457512A (en) * 2010-11-08 2012-05-16 中标软件有限公司 Thin client server virtualization method and virtual thin client server
CN104503875A (en) * 2014-12-08 2015-04-08 深圳市阿龙电子有限公司 Test method and test system of Android device

Also Published As

Publication number Publication date
CN105373477A (en) 2016-03-02

Similar Documents

Publication Publication Date Title
CN108536519B (en) Method for automatically building Kubernetes main node and terminal equipment
CN112383502B (en) Method and system for uniformly monitoring physical machine and virtual machine and electronic device
CN110581855B (en) Application control method and device, electronic equipment and computer readable storage medium
CN106681924B (en) A kind of method for testing software and system
US20070244999A1 (en) Method, apparatus, and computer product for updating software
CN106919485B (en) System based on hardware testing tool configured on server
US10798218B2 (en) Environment isolation method and device
CN113742031B (en) Node state information acquisition method and device, electronic equipment and readable storage medium
CN106657354A (en) Load balancing device and method
CN109656569B (en) Multi-environment application deployment method, equipment, storage medium and device
US11108673B2 (en) Extensible, decentralized health checking of cloud service components and capabilities
CN105512026A (en) Automatic batch testing method
CN103475526A (en) IP setting and detecting method supporting multi-VLAN virtual machine
CN107634871B (en) Connectivity test method, device and system
CN105373477B (en) Capacity testing method
CN106254312A (en) A kind of method and device being realized server attack protection by virtual machine isomery
EP3306858B1 (en) Network management system deployment method and device, and network management system
CN105389254A (en) System and method for verifying compatibility of server and Oracle Linux system
CN104468293A (en) VPN accessing method
CN104378449A (en) Virtual IP realization method
US8250413B2 (en) Connection broker assignment status reporting
CN111901395A (en) Multi-cluster switching method and device
CN109117243B (en) Service deployment method, device, client device and computer readable storage medium
CN115658221A (en) State detection method, service virtual machine, equipment and medium
CN109766235A (en) Configuration file detection method, system, equipment and medium based on software supervision

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant