CN106649088A - Distributed pressure test method and system - Google Patents

Distributed pressure test method and system Download PDF

Info

Publication number
CN106649088A
CN106649088A CN201610880610.4A CN201610880610A CN106649088A CN 106649088 A CN106649088 A CN 106649088A CN 201610880610 A CN201610880610 A CN 201610880610A CN 106649088 A CN106649088 A CN 106649088A
Authority
CN
China
Prior art keywords
test
task
test machine
message
control server
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.)
Pending
Application number
CN201610880610.4A
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201610880610.4A priority Critical patent/CN106649088A/en
Publication of CN106649088A publication Critical patent/CN106649088A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/501Performance criteria
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5021Priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a distributed pressure test method and system. The system comprises a control server and a test cluster consisting of at least two test machines, wherein each test machine comprises a load balance module, which is used for acquiring a resource usage state of the test machine and obtaining a weighted priority of the test machine according to the resource usage state; the control server comprises a first message processing module, which is used for distributing a task type message to the test machine with the highest weighted priority according to the weighted priorities of all the test machines and corresponding IP addresses; each test machine further comprises a second message processing module and a pressure test engine module; the second message processing module is used for receiving the task type message sent by the control server and analyzing a corresponding pressure test task from the task type message; and the pressure test engine module is used for executing the pressure test task. By adopting the method and the system, the pressure test efficiency can be improved and the load balance of the pressure test is realized.

Description

A kind of distributed pressure method of testing and system
Technical field
The present invention relates to pressure test field, more particularly to a kind of distributed pressure method of testing and system.
Background technology
As the rise of internet need to be supplied to increasing user with development, WEB (webpage) class systems or interface Access, ever-increasing user's requirements for access proposes higher and higher requirement to the concurrency and bearing capacity of system, therefore The necessity of pressure test also more and more higher is carried out to system.
Pressure test by simulation practical application hardware environment and user using process system loading, long-time or Super large load ground testing results software is testing performance, reliability, the stability etc. of system under test (SUT).At present, there are many methods Pressure test can be carried out to system, mainly have using pressure survey instrument (such as loadrunner, JMeter, Grinder) and By two methods of programming realization.But, existing overwhelming majority pressure survey instrument is only capable of being surveyed on machine in local separate unit pressure and transports OK, the selection of testing tool is more complicated and variation, and each tester may be required for building a pressure test instrument Use environment, cause the waste of resource, lack unified centralized management.Meanwhile, single machine may not meet in a large number Pressure survey task, manually different pressure survey tasks can only be assigned on different machines and be performed, it is less efficient.And pass through to compile Cheng Shixian then needs to be generated by the way of multithreading or multi-process substantial amounts of concurrent request come modelling customer behavior, to tested system System conducts interviews, and the program capability and technology foundation of tester are had higher requirements, and needs to take a substantial amount of time Design realizes that, while the method for testing realized is often appropriate only to individual system, reusable degree is relatively low, the confidence level of test result Checking is needed, the learning cost of instrument is often higher.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of distributed pressure method of testing and system, to pressure test task The unified management of clustering is carried out, distributed pressure test is realized, the wasting of resources is reduced, is reduced pressure test cost, improves Pressure test efficiency.
For achieving the above object, a kind of distributed pressure test system, including control service are embodiments provided Device and the test cluster being made up of at least two test machines;
The test machine includes load balancing module;
The load balancing module, for gathering the resource service condition of the test machine, according to the resource feelings is used Condition obtains the weighted priority of the test machine, and the IP address of the test machine and corresponding weighted priority are fed back to into institute State control server;
The control server includes first message processing module;
The first message processing module, for according to the weighted priority of each test machine and corresponding IP address, inciting somebody to action Task class message distribution gives weighted priority highest test machine;
The test machine also includes that the second message processing module and pressure survey engine modules;
Second message processing module, for receiving the control task class message that sends of server, from described Corresponding pressure test task is parsed in task class message, and the pressure test task is sent to into the pressure and survey engine mould Block;
The pressure surveys engine modules, for performing the pressure test task.
Preferably, the first message processing module, is additionally operable to for configuration class message to be broadcast to all test machines;
Second message processing module, is additionally operable to receive the configuration class message that the control server sends, from institute State and corresponding configuration operation task is parsed in configuration class message, and the configuration operation task is sent to into the pressure and survey engine Module;
The pressure surveys engine modules, is additionally operable to perform the configuration operation task.
Further, the control service also includes UI modules;
The UI modules, for generating the task class message or the configuration class message according to the UI of user operations.
Preferably, the distributed pressure test system also includes database;
The database, for storing the IP and corresponding weighted priority of the load balancing module feedback;
The load balancing module includes collecting unit, and the resource for each test machine in collecting test cluster uses feelings Condition, according to the resource service condition weighted priority of the test machine is obtained, and by the IP address of the test machine and right The weighted priority answered uploads to database in the way of heartbeat;
The first message processing module includes acquiring unit, for disappearing when the control server generates the task class After breath, the weighted priority and corresponding IP address of all test machines is read from the database.
Preferably, the resource service condition includes CPU usage, memory usage, disk utilization rate, network usage And one or more combination in the request amount for receiving.
Correspondingly, the embodiment of the present invention additionally provides a kind of distributed pressure method of testing, including:
The resource service condition of each test machine in collecting test cluster, according to the resource service condition survey is obtained The weighted priority of test-run a machine, and the IP address of the test machine and corresponding weighted priority are fed back to into control server;
The control server divides task class message according to the weighted priority and corresponding IP address of each test machine Issue weighted priority highest test machine;
The test machine receives the task class message that the control server sends, and parses from the task class message Go out corresponding pressure test task, and perform the pressure test task.
Preferably, in the collecting test cluster each test machine resource service condition, used according to the resource Situation obtains the weighted priority of the test machine, and the IP address of the test machine and corresponding weighted priority are fed back to Before control server, also include:
The control server is broadcast to all test machines by class message is configured;
The test machine receives the configuration class message that the control server sends, and parses from the configuration class message Go out corresponding configuration operation task, and perform the configuration operation task.
Further, will configure before class message is broadcast to all test machines in the control server, also include:
The control server generates the task class message or the configuration class message according to the UI of user operations.
Preferably, in the collecting test cluster each test machine resource service condition, feelings are used according to the resource Condition obtains the weighted priority of the test machine, and the IP address of the test machine and corresponding weighted priority are fed back to into control Control server, including:
The resource service condition of each test machine in collecting test cluster, according to the resource service condition survey is obtained The weighted priority of test-run a machine, and the IP address of the test machine and corresponding weighted priority are uploaded to into number in the way of heartbeat According to storehouse;
After the control server generates the task class message, adding for all test machines is read from the database Power priority and corresponding IP address.
Preferably, the resource service condition includes CPU usage, memory usage, disk utilization rate, network usage And one or more combination in the request amount for receiving.
The present invention allows tester while running a large amount of pressure survey tasks by the pressure testing system of distributedization, Be conducive to improving pressure survey efficiency.By the resource service condition of each test machine in collecting test cluster, adding for test machine is obtained Power priority, is distributed to pressure test task weighted priority highest test machine and goes to perform, realizes load balancing, is conducive to Improve resource utilization.
Further, the present invention surveys engine modules and can will press survey instrument unified plan to test machine by pressure, and to matching somebody with somebody Put, test case, test result, test report etc. are managed collectively, reduce Environmental costs and maintenance cost, improve testing efficiency.
Description of the drawings
Fig. 1 is the structure chart of the one embodiment for the distributed pressure test system that the present invention is provided;
Fig. 2 is the Organization Chart of the one embodiment for the Message Processing framework that embodiment as shown in Figure 1 is provided;
Fig. 3 is the flow chart of the one embodiment for the distributed pressure method of testing that the present invention is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
It is the structure chart of the one embodiment for the distributed pressure test system that the present invention is provided referring to Fig. 1.
As shown in figure 1, the distributed pressure test system includes control server (Master) 10 and by least two The test cluster 20 of the composition of test machine (Slave-1~n) 200;The control server 10 is the control end of system, is responsible for pressing Survey task and configuration information are sent to test machine and reception processing result.The test machine 200 is the controlled terminal of system, is provided with Pressure surveys engine modules, is responsible for receiving pressure survey task and configuration and carrying out pressure test to tested server.
The test machine 200 includes load balancing module 201;
The load balancing module 201, for gathering the resource service condition of the test machine 200, according to the resource Service condition obtains the weighted priority of the test machine 200, and the IP address of the test machine 200 and corresponding weighting is excellent First level feeds back to the control server 10;
A kind of preferred embodiment central, the resource service condition is included in CPU, internal memory, disk and network The service condition of one or more resource, the computational methods of weighted priority (Weight) are as follows:
Wherein, CPUp、MEMp、DISKp、NETpFor the resource utilization of each index, the weight coefficient K of each index1~K4's Big I surveys engine and the consumption degree of resource is arranged according to pressure, in a kind of preferred embodiment central, K1=0.4, K2= 0.3,K3=0.2, K4=0.1.When any one resource utilization is more than 90% (this area skill in CPU, internal memory, disk, network Art personnel can be adjusted according to actual needs to the value) when, the Slave nodes are removed from enabled node and (is weighted Preferred value is set to -1), until the node resource recovers upstate (resource utilization is less than 90%).
In the middle of another preferred embodiment, the request amount that the resource service condition is received including test machine, The weighted priority of the test machine is calculated by LVS-NAT even loads equalization scheme, to reach similar purpose.With aforementioned reality The mode of applying is compared, and present embodiment carries out load balancing by request amount, and aforementioned embodiments are then by collecting Slave nodes Real resources service condition and calculate weighted priority and carry out load balancing, the former can more reflect the idle condition of test machine.
The control server 10 includes first message processing module 101;
The first message processing module 101, for according to the weighted priority of each test machine 200 and corresponding IP ground Location, by task class message distribution to weighted priority highest test machine 200;
The test machine 200 also includes that the second message processing module 202 and pressure survey engine modules 203;
Second message processing module 202, for receiving the task class message that the control server 10 sends, from Corresponding pressure test task is parsed in the task class message, and the pressure test task is sent to into pressure survey and drawn Hold up module 203;
The pressure surveys engine modules 203, for performing the pressure test task.It is one that the pressure surveys engine modules 203 It is individual to be responsible for specially pressing the module for surveying tasks carrying, it is responsible for receiving pressure survey task, construct and sending request carrying out tested server Pressure test.
In the middle of being embodied as, the first message processing module 101 is additionally operable to for configuration class message to be broadcast to all surveys Test-run a machine 200;
Second message processing module 202, is additionally operable to receive the configuration class message that the control server 10 sends, Corresponding configuration operation task is parsed from the configuration class message, and the configuration operation task is sent to into the pressure and surveyed Engine modules 203;
The pressure surveys engine modules 203, is additionally operable to perform the configuration operation task.
Broadcast and execution by configuring class message of the invention, can carry out unified deployment and configuration to slave nodes, protect Demonstrate,prove the integrality and uniformity of all distributed slave node datas.
Specifically, second message processing module 202 services 10 message for sending (including task for receiving control Class message and configuration class message), message content is parsed, corresponding process task is produced (including pressure test according to message content Task and configuration operation task), and give pressure by process task and survey engine modules 203 and perform, and according to the implementing result of task Generate response message and return to control server 10.The pressure surveys engine modules 203 and is responsible for performing the second message in slave nodes The task (including pressure test task and configuration operation task) that processing module 202 is received, it is main to include matching somebody with somebody for pressure survey task Put file generated, test case code building, tasks carrying and test report generation etc..
A kind of preferred embodiment central, the distributed pressure test system also includes database (Mysql) 30;
The database 30, for storing the IP and corresponding weighted priority of the feedback of the load balancing module 201;
The load balancing module 201 includes collecting unit, and the resource for each test machine in collecting test cluster makes With situation, the weighted priority of the test machine is obtained according to the resource service condition, and by the IP address of the test machine Database is uploaded in the way of heartbeat with corresponding weighted priority.
The first message processing module includes acquiring unit, for generating the task class when the control server 10 After message, the weighted priority and corresponding IP address of all test machines is read from the database 30, it is excellent to obtain weighting The IP address of first level highest test machine.
Additionally, pressure surveys engine modules 200 also further test result and system under test (SUT) place server resource can be used For UI module polls and displaying in control server 10 in data write into Databasce.
In the middle of present embodiment, load balancing module 201 can in the way of heartbeat by the IP address of its place test machine and Weighted priority is stored in database 30.When the one task class message of generation of server 10 is controlled, can read from database 30 Take the IP address and weighted priority of all available test machine node of test cluster 20, and by the task class message be sent to compared with For the machine of idle (weighted priority highest).By database 30 as the storage and transfer of data transfer, can be surveyed according to pressure Demand dynamically adjust Slave nodes quantity (only need to register in the Slave information tables of database and add test machine IP, and The second message processing module is run in the node using its IP as routing_key and pressure surveys engine modules, without the need for restarting Service).
Further, as shown in figure 1, the control service also includes UI modules 102;
UI (User Interface, the user interface) module 102, for appointing according to the UI of user operation generations Business class message or the configuration class message.
UI modules 102 provide the user easy operation, and these operations can be divided into two types:Task generic operation and configuration class Operation.Task generic operation refers to the operation that only need to be performed in separate unit slave nodes, and this generic operation will not destroy Slave nodes According to integrality and uniformity, the information that generally comprises reads and presses surveys tasks carrying, and such as application test case records agency, starts test case Record, stop test case recording, preview test case code, start test assignment, obtain task log (daily record) information etc..Configuration class behaviour The operation that need to be performed in all slave nodes is referred to, these operations must assure that the complete of all distributed slave node datas Whole property and uniformity, generally comprise task creation editor and configuration distributing, such as create task, editor's task, delete task, task Configuration, the preservation of test case code etc..
In a kind of preferred embodiment central, in the control server 10 first message processing module 101 and institute State and use RabbitMQ as message system medium between the second message processing module 202 in test machine 200.RabbitMQ is One Message Agent, it can provide a general message and send and receive platform for your application, and ensure that message exists Safety in transmitting procedure.
In the middle of being embodied as, the integrated RabbitMQ of 101 and second message processing module of first message processing module 202 bears Duty is generated, sends, receives task message.The first message processing module 101 of Master nodes is mainly responsible for parsing user in UI On operation and these operations are generated into corresponding message, then transmit the message to specify Slave nodes by RabbitMQ, And receive the response message that Slave nodes are returned by RabbitMQ.Second message processing module 202 of Slave nodes is then born Blame and receive the message that Master nodes are sent by RabbitMQ, and parse message content generation correspondence task and give pressure survey engine Module is performed, and returns to Master by RabbitMQ according to the implementing result of task generation response message.
Message Processing framework in whole framework as shown in Fig. 2 have the two kinds of switches of faout and direct (exchange), title is respectively config (configuration) and task (task), and the message module of Slave nodes can be stated when starting One message queue (queue).The message queue of all Slave nodes can bind (binding) to config switches, while The message queue can be tied to task switches using the IP of Slave nodes as binding key (routing_key).
Master can state callback queues (reply_to) and association identification (correlation_id) when sending message, close Connection is designated the uuid of request, can produce response message after Slave nodes receive the message of Master transmissions and process, the sound Message is answered to be sent to Master by callback queues.
When Master produces configuration class message, config switches, config exchange opportunities can be transmitted the message to The message for receiving is broadcasted to the message queue of all Slave nodes bound therewith, so as to reach configuration distribution and data one The purpose of cause property.When Master produces task class message, the weighting that can read all Slave nodes from database first is excellent First level and obtain the most idle (weighted priority highest) Slave nodes IP address, then using the IP address as The task class message is simultaneously sent to task switches, routing_key of the task exchange opportunities according to message by routing_key The message is routed in the message queue of correspondence Slave nodes, so as to reach the purpose of load balancing.
If as shown in Fig. 2 there is IP to be two Slave of 192.168.44.16 and 192.168.44.17 in test cluster (test machine) A and B, and its load balancing weighted priority is respectively 50.0 and 60.0.When user carries out configuration class on UI When operation (as configuration is preserved) produces configuration class message, Master will transmit the message to config switches, and pass through Config switches broadcast the message to two test machines of A, B.When user carries out task class operation (as performed test on UI Task) produce task class message when, Master can read the weighted priority of two Slave nodes of A, B from database and obtain IP address 192.168.44.17 of B node the most idle is taken, then using 192.168.44.17 is as routing_key and incites somebody to action The task class message is sent to task switches, and the message will be forwarded to B node by task switches.
Message Processing adopts the RabbitMQ of asynchronous communication mode in present embodiment, it is possible to reduce period of reservation of number, Further improve the efficiency that pressure is surveyed.It should be noted that above-mentioned embodiment is only a kind of preferred embodiment of the present invention, this Art personnel adopt other modes to realize the communication between message module also dependent on being actually needed, such as a kind of The embodiment of secondary choosing, (Application Programming Interface, application programming connects can also to pass through API Mouthful) mode synchronize communication, realize the information exchange between message module.
The present invention provides the solution of a kind of distributedization and load balancing for pressure test, mainly solves following asking Topic:Pressure survey instrument chooses various, challenge:The pressure of the present invention surveys a kind of integrated general pressure test instrument of engine modules, All of pressure surveys engine unified plan on each node of test cluster, and without the need for tester making for pressure survey instrument is individually built With environment, the mode of writing of all test cases is unified;Task, test case, result scattering problem:The test assignment of tester's generation, Configuration, test case, test result, report etc. are managed by systematic unity;Single machine can not meet multitask, multisystem pressure and survey Needs of problems:The present invention provides Load Balancing Solution, can be according to the resource service condition of each node in test cluster Test assignment is distributed to into machine more idle in test cluster.
It is the flow chart of the one embodiment for the distributed pressure method of testing that the present invention is provided referring to Fig. 3.The present embodiment General principle it is consistent with embodiment illustrated in fig. 1, the correlation that can be found in embodiment illustrated in fig. 1 of part is not described in detail in detail in the present embodiment Description.
As shown in Fig. 2 the distributed pressure method of testing, including:
S1, the resource service condition of each test machine in collecting test cluster, according to the resource service condition institute is obtained The weighted priority of test machine is stated, and the IP address of the test machine and corresponding weighted priority are fed back to into control service Device;
S2, the control server disappears task class according to the weighted priority and corresponding IP address of each test machine Breath is distributed to weighted priority highest test machine;
S3, the test machine receives the task class message that the control server sends, from the task class message Corresponding pressure test task is parsed, and performs the pressure test task.
Wherein, the resource service condition include CPU usage, memory usage, disk utilization rate, network usage with And one or more combination in the request amount for receiving.
In the middle of being embodied as, before step S1, also include:
S21, the control server is broadcast to all test machines by class message is configured;
S22, the test machine receives the configuration class message that the control server sends, from the configuration class message Corresponding configuration operation task is parsed, and performs the configuration operation task.
Further, before step S21, also include:
S20, the control server generates the task class message or the configuration class message according to the UI of user operations.
A kind of preferred embodiment central, step S1 is specifically included:
S11, the resource service condition of each test machine in collecting test cluster, according to the resource service condition institute is obtained The weighted priority of test machine is stated, and the IP address of the test machine and corresponding weighted priority are uploaded in the way of heartbeat To database;
S12, after the control server generates the task class message, reads all test machines from the database Weighted priority and corresponding IP address.
In sum, the present invention allows tester while running a large amount of by the pressure testing system of distributedization Pressure survey task, is conducive to improving pressure survey efficiency.By the resource service condition of each test machine in collecting test cluster, surveyed The weighted priority of test-run a machine, is distributed to pressure test task weighted priority highest test machine and goes to perform, realizes that load is equal Weighing apparatus, is conducive to improving resource utilization.The present invention surveys engine modules and can will press survey instrument unified plan to test machine by pressure, And configuration, test case, test result, test report etc. are managed collectively, Environmental costs and maintenance cost are reduced, improve test Efficiency.
It should be noted that, device embodiment described above is only schematic, wherein described as separating component The unit of explanation can be or may not be physically separate, can be as the part that unit shows or can also It is not physical location, you can be located at a place, or can also be distributed on multiple NEs.Can be according to reality Need the purpose for selecting some or all of module therein to realize this embodiment scheme.In addition, the device that the present invention is provided In embodiment accompanying drawing, the annexation between module represent between them have communication connection, specifically can be implemented as one or A plurality of communication bus or holding wire.Those of ordinary skill in the art are not in the case where creative work is paid, you can to understand And implement.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be borrowed Software is helped to add the mode of required common hardware to realize, naturally it is also possible to include special IC, specially by specialized hardware Realized with CPU, private memory, special components and parts etc..Generally, all functions of being completed by computer program can Easily realized with corresponding hardware, and, for realizing that the particular hardware structure of same function can also be various many Sample, such as analog circuit, digital circuit or special circuit etc..But, it is more for the purpose of the present invention in the case of software program reality It is now more preferably embodiment.Based on such understanding, technical scheme is substantially made to prior art in other words The part of contribution can be embodied in the form of software product, and the computer software product is stored in the storage medium that can read In, such as the floppy disk of computer, USB flash disk, portable hard drive, read-only storage (ROM, Read-Only Memory), random access memory Device (RAM, Random Access Memory), magnetic disc or CD etc., including some instructions use is so that a computer sets Standby (can be personal computer, server, or network equipment etc.) performs the method described in each embodiment of the invention.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by the scope of the claims.

Claims (10)

1. a kind of distributed pressure test system, it is characterised in that constitute including control server and by least two test machines Test cluster;
The test machine includes load balancing module;
The load balancing module, for gathering the resource service condition of the test machine, obtains according to the resource service condition To the weighted priority of the test machine, and the IP address of the test machine and corresponding weighted priority are fed back to into the control Control server;
The control server includes first message processing module;
The first message processing module, for according to the weighted priority of each test machine and corresponding IP address, by task Class message distribution gives weighted priority highest test machine;
The test machine also includes that the second message processing module and pressure survey engine modules;
Second message processing module, for receiving the task class message that the control server sends, from the task Corresponding pressure test task is parsed in class message, and the pressure test task is sent to into the pressure and survey engine modules;
The pressure surveys engine modules, for performing the pressure test task.
2. distributed pressure test system as claimed in claim 1, it is characterised in that the first message processing module, also For configuration class message to be broadcast to into all test machines;
Second message processing module, is additionally operable to receive the configuration class message that the control server sends, and matches somebody with somebody from described Put and parse in class message corresponding configuration operation task, and the configuration operation task is sent to into the pressure and survey engine mould Block;
The pressure surveys engine modules, is additionally operable to perform the configuration operation task.
3. distributed pressure test system as claimed in claim 2, it is characterised in that the control service also includes UI moulds Block;
The UI modules, for generating the task class message and/or the configuration class message according to the UI of user operations.
4. distributed pressure test system as claimed in claim 1, it is characterised in that the distributed pressure test system is also Including database;
The database, for storing the IP and corresponding weighted priority of the load balancing module feedback;
The load balancing module includes collecting unit, for the resource service condition of each test machine in collecting test cluster, The weighted priority of the test machine is obtained according to the resource service condition, and by the IP address of the test machine and corresponding Weighted priority uploads to database in the way of heartbeat;
The first message processing module includes acquiring unit, for generating the task class message when the control server Afterwards, the weighted priority and corresponding IP address of all test machines are read from the database.
5. the distributed pressure test system as described in any one of Claims 1 to 4, it is characterised in that the resource uses feelings Condition include the one kind in CPU usage, memory usage, disk utilization rate, network usage and the request amount that receives or Multiple combination.
6. a kind of distributed pressure method of testing, it is characterised in that include:
The resource service condition of each test machine in collecting test cluster, according to the resource service condition test machine is obtained Weighted priority, and the IP address of the test machine and corresponding weighted priority are fed back to into control server;
The control server gives task class message distribution according to the weighted priority and corresponding IP address of each test machine Weighted priority highest test machine;
The test machine receives the task class message that the control server sends, and it is right to parse from the task class message The pressure test task answered, and perform the pressure test task.
7. distributed pressure method of testing as claimed in claim 6, it is characterised in that in the collecting test cluster each The resource service condition of test machine, according to the resource service condition weighted priority of the test machine is obtained, and will be described The IP address of test machine and corresponding weighted priority are fed back to before control server, are also included:
The control server is broadcast to all test machines by class message is configured;
The test machine receives the configuration class message that the control server sends, and it is right to parse from the configuration class message The configuration operation task answered, and perform the configuration operation task.
8. distributed pressure method of testing as claimed in claim 7, it is characterised in that will configure class in the control server Message is broadcast to before all test machines, is also included:
The control server generates the task class message or the configuration class message according to the UI of user operations.
9. distributed pressure method of testing as claimed in claim 6, it is characterised in that each survey in the collecting test cluster The resource service condition of test-run a machine, according to the resource service condition weighted priority of the test machine is obtained, and by the survey The IP address of test-run a machine and corresponding weighted priority feed back to control server, including:
The resource service condition of each test machine in collecting test cluster, according to the resource service condition test machine is obtained Weighted priority, and the IP address of the test machine and corresponding weighted priority are uploaded to into data in the way of heartbeat Storehouse;
After the control server generates the task class message, the weighting that all test machines are read from the database is excellent First level and corresponding IP address.
10. the distributed pressure method of testing as described in any one of claim 6~9, it is characterised in that the resource uses feelings Condition include the one kind in CPU usage, memory usage, disk utilization rate, network usage and the request amount that receives or Multiple combination.
CN201610880610.4A 2016-10-09 2016-10-09 Distributed pressure test method and system Pending CN106649088A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610880610.4A CN106649088A (en) 2016-10-09 2016-10-09 Distributed pressure test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610880610.4A CN106649088A (en) 2016-10-09 2016-10-09 Distributed pressure test method and system

Publications (1)

Publication Number Publication Date
CN106649088A true CN106649088A (en) 2017-05-10

Family

ID=58855115

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610880610.4A Pending CN106649088A (en) 2016-10-09 2016-10-09 Distributed pressure test method and system

Country Status (1)

Country Link
CN (1) CN106649088A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368419A (en) * 2017-07-27 2017-11-21 千寻位置网络有限公司 Automatic test approach and system, service terminal, memory under distributed environment
CN107608901A (en) * 2017-10-20 2018-01-19 北京京东金融科技控股有限公司 Method of testing and device based on Jmteter, storage medium, electronic equipment
CN107707638A (en) * 2017-06-01 2018-02-16 云智慧(北京)科技有限公司 Distributed cloud pressure measuring machine resource management system and method
CN107707432A (en) * 2017-10-30 2018-02-16 成都视达科信息技术有限公司 A kind of method of testing and system
CN107885647A (en) * 2017-12-12 2018-04-06 杭州时趣信息技术有限公司 A kind of method, system and computer-readable recording medium for detecting unit ability
CN108241582A (en) * 2018-01-12 2018-07-03 东华大学 A kind of software automated testing platform based on RabbitMQ message-oriented middlewares
CN108519943A (en) * 2018-03-06 2018-09-11 平安科技(深圳)有限公司 Testing and control and test execution device, method and computer storage media
CN108710565A (en) * 2018-03-05 2018-10-26 聚好看科技股份有限公司 A kind of method for testing pressure, apparatus and system
CN108959000A (en) * 2018-06-20 2018-12-07 深圳市腾讯网络信息技术有限公司 A kind of server stress test method, system and terminal
CN109359033A (en) * 2018-09-05 2019-02-19 广州神马移动信息科技有限公司 Method for testing pressure, testing service device, management server and system
CN109800087A (en) * 2019-01-02 2019-05-24 郑州云海信息技术有限公司 A method of for automatic test
CN110874304A (en) * 2018-09-03 2020-03-10 广州神马移动信息科技有限公司 Pressure testing method, device, equipment and computer readable storage medium
CN112306740A (en) * 2020-11-03 2021-02-02 深圳市瑞驰信息技术有限公司 Method for improving erasure code repair performance in ARM based on Glusterfs
CN112799930A (en) * 2021-01-29 2021-05-14 华夏城视网络电视股份有限公司 Distributed pressure testing method and system
CN113628358A (en) * 2021-07-27 2021-11-09 北京优奥创思科技发展有限公司 Conference sign-in hardware performance test method, system and storage medium
CN113672495A (en) * 2021-07-06 2021-11-19 微梦创科网络科技(中国)有限公司 System and method for implementing full link voltage measurement on production environment
CN113886050A (en) * 2021-10-21 2022-01-04 中国联合网络通信集团有限公司 Pressure testing method, device, equipment and storage medium
CN115827498A (en) * 2023-02-20 2023-03-21 创云融达信息技术(天津)股份有限公司 Pressure test distribution method and system for software program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6360268B1 (en) * 1997-10-07 2002-03-19 Hewlett-Packard Company Distributed automated testing system
CN101043384A (en) * 2006-05-25 2007-09-26 华为技术有限公司 System and method for network test
CN102981951A (en) * 2012-11-01 2013-03-20 珠海金山网络游戏科技有限公司 Platform and method of cloud test development

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6360268B1 (en) * 1997-10-07 2002-03-19 Hewlett-Packard Company Distributed automated testing system
CN101043384A (en) * 2006-05-25 2007-09-26 华为技术有限公司 System and method for network test
CN102981951A (en) * 2012-11-01 2013-03-20 珠海金山网络游戏科技有限公司 Platform and method of cloud test development

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707638A (en) * 2017-06-01 2018-02-16 云智慧(北京)科技有限公司 Distributed cloud pressure measuring machine resource management system and method
CN107733735A (en) * 2017-06-01 2018-02-23 云智慧(北京)科技有限公司 Script recording system and method
CN107707638B (en) * 2017-06-01 2022-10-21 云智慧(北京)科技有限公司 Distributed cloud pressure measuring machine resource management system and method
CN107733735B (en) * 2017-06-01 2022-03-04 云智慧(北京)科技有限公司 Script recording system and method implanted in pressure measurement device
CN107368419A (en) * 2017-07-27 2017-11-21 千寻位置网络有限公司 Automatic test approach and system, service terminal, memory under distributed environment
CN107608901B (en) * 2017-10-20 2019-12-31 京东数字科技控股有限公司 Jmeter-based testing method and device, storage medium and electronic equipment
CN107608901A (en) * 2017-10-20 2018-01-19 北京京东金融科技控股有限公司 Method of testing and device based on Jmteter, storage medium, electronic equipment
CN107707432A (en) * 2017-10-30 2018-02-16 成都视达科信息技术有限公司 A kind of method of testing and system
CN107885647A (en) * 2017-12-12 2018-04-06 杭州时趣信息技术有限公司 A kind of method, system and computer-readable recording medium for detecting unit ability
CN108241582A (en) * 2018-01-12 2018-07-03 东华大学 A kind of software automated testing platform based on RabbitMQ message-oriented middlewares
CN108710565A (en) * 2018-03-05 2018-10-26 聚好看科技股份有限公司 A kind of method for testing pressure, apparatus and system
CN108519943A (en) * 2018-03-06 2018-09-11 平安科技(深圳)有限公司 Testing and control and test execution device, method and computer storage media
CN108959000B (en) * 2018-06-20 2022-02-18 深圳市腾讯网络信息技术有限公司 Server pressure testing method, system and terminal
CN108959000A (en) * 2018-06-20 2018-12-07 深圳市腾讯网络信息技术有限公司 A kind of server stress test method, system and terminal
CN110874304A (en) * 2018-09-03 2020-03-10 广州神马移动信息科技有限公司 Pressure testing method, device, equipment and computer readable storage medium
CN109359033A (en) * 2018-09-05 2019-02-19 广州神马移动信息科技有限公司 Method for testing pressure, testing service device, management server and system
CN109800087A (en) * 2019-01-02 2019-05-24 郑州云海信息技术有限公司 A method of for automatic test
CN112306740A (en) * 2020-11-03 2021-02-02 深圳市瑞驰信息技术有限公司 Method for improving erasure code repair performance in ARM based on Glusterfs
CN112799930A (en) * 2021-01-29 2021-05-14 华夏城视网络电视股份有限公司 Distributed pressure testing method and system
CN113672495A (en) * 2021-07-06 2021-11-19 微梦创科网络科技(中国)有限公司 System and method for implementing full link voltage measurement on production environment
CN113628358A (en) * 2021-07-27 2021-11-09 北京优奥创思科技发展有限公司 Conference sign-in hardware performance test method, system and storage medium
CN113628358B (en) * 2021-07-27 2023-02-10 北京优奥创思科技发展有限公司 Conference sign-in hardware performance test method, system and storage medium
CN113886050A (en) * 2021-10-21 2022-01-04 中国联合网络通信集团有限公司 Pressure testing method, device, equipment and storage medium
CN113886050B (en) * 2021-10-21 2024-06-04 中国联合网络通信集团有限公司 Pressure test method, device, equipment and storage medium
CN115827498A (en) * 2023-02-20 2023-03-21 创云融达信息技术(天津)股份有限公司 Pressure test distribution method and system for software program

Similar Documents

Publication Publication Date Title
CN106649088A (en) Distributed pressure test method and system
US11683221B1 (en) Automatic generation of template for provisioning services in a hosted computing environment
WO2020253347A1 (en) Container cluster management method, device and system
US9122685B2 (en) Operating cloud computing and cloud computing information system
US6601020B1 (en) System load testing coordination over a network
CN104978258B (en) Automatic software test method and system
CN107590075B (en) Software testing method and device
JP2016140116A (en) Techniques for network replication
CN105119966A (en) Official account management method and device
CN104077212A (en) Pressure test system and method
US7877478B2 (en) Ghost agents for application domains within a grid environment
CN102880503A (en) Data analysis system and data analysis method
CN103581247A (en) Method for testing distributed type Web based on cloud computing environment
CN106446168B (en) A kind of load client realization method of Based on Distributed data warehouse
CN110134338B (en) Distributed storage system and data redundancy protection method and related equipment thereof
CN103561078A (en) Telecom operation system and service implementation method
CN110532493B (en) Data processing method and device, storage medium and electronic device
CN106649164A (en) Hardware interface management method
CN109597764A (en) A kind of test method and relevant apparatus of catalogue quota
CN102929693B (en) Performance evaluation method and device for servers of whole equipment cabinet
CN112787853B (en) Automatic generation method and device of network change scheme and related equipment
CN114466000B (en) CDN gateway source returning method and device
CN103236954A (en) Web service evaluation system in mobile network
CN114490336A (en) Joint debugging test method, access system, front end and storage medium
CN111722783B (en) Data storage method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510