CN109739708A - Test the methods, devices and systems of pressure - Google Patents
Test the methods, devices and systems of pressure Download PDFInfo
- Publication number
- CN109739708A CN109739708A CN201910002819.4A CN201910002819A CN109739708A CN 109739708 A CN109739708 A CN 109739708A CN 201910002819 A CN201910002819 A CN 201910002819A CN 109739708 A CN109739708 A CN 109739708A
- Authority
- CN
- China
- Prior art keywords
- pressure
- file
- central control
- equipment
- survey process
- 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.)
- Granted
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The invention discloses a kind of methods, devices and systems for testing pressure.Wherein, this method comprises: receiving the control information that central control equipment is sent, control information is included at least: operational order, identification information, the file to be updated for pressing survey process;At least one the pressure survey process controlled in pending equipment executes operational order, and generates pressure measured data, wherein pending upper side administration has at least one to press survey process, and pressure survey process is used for pressure test;Pressure measured data is sent to central control equipment, so that central control equipment shows pressure testing results.The present invention solves existing cluster pressure survey method when carrying out pressure test to server, technical problem complicated for operation.
Description
Technical field
The present invention relates to computer fields, in particular to a kind of methods, devices and systems for testing pressure.
Background technique
With the continuous expansion of mobile Internet user group, to the server of the popular Internet application such as online game
It can require higher and higher.When in order to guarantee that server is online simultaneously in face of a large number of users can stable operation, putting outside server makes
It need to be verified by pressure test before, a large number of users is mainly simulated by pressure survey tool (a kind of computer processes) and is existed simultaneously
Line operation puts demand so that whether authentication server performance indexes meets outside practical.
However, with the continuous improvement of network server performance requirement and being continuously increased for business function, to pressure survey tool
Requirement it is also higher and higher, wherein it is required that the upper limit of the pressure available maximum network request Concurrency quantity of survey tool is also increasingly
Greatly.On a single device deployment pressure survey tool when due to equipment performance itself limit, it is possible to provide number of concurrent will receive upper limit number
The limitation of amount.Presently mainly pressure survey tool is distributed in multiple equipment, pressure is expanded by trunking mode and surveys number of concurrent.
With being increasing for equipment, survey tool deployment complexity is pressed also to be increasing, for example, will in each equipment
Deployment pressure survey tool relevant environment and test case need one by one when test case needs newly-increased or modification in each equipment
On to pressure survey tool code synchronize.On different devices due to the deployment of pressure survey tool, the starting of survey tool is pressed
It is also required to execute in equipment one by one with closing, it is cumbersome.
In addition, the distribution of pressure survey tool is on different devices, synchronization, the data interaction, pressure of task are executed between each pressure survey tool
The problems such as measured data collection summarizes processing belongs to multi-process operation, also will increase pressure and surveys tool approach development difficulty.It is more in order to simulate
Client concurrent request, existing pressure survey tool use multithreading.However the data contention problem of multithreading can be further
Increase the development difficulty that pressure surveys use-case.With being increasing for cluster device quantity, the above problem can obviously be exposed.
It is pressed in survey method for above-mentioned cluster, under big clustered machine quantity, each equipment Ya Ce instrumentation code Ministry of environment
Administration, starting execute and operation complexity when surveying use-case are pressed to be obviously improved, and each pressure surveys unit in multithreading, multi-process running environment
Under, pressure is surveyed use-case exploitation and is perplexed by data synchronization problems, and the not high problem of execution efficiency not yet proposes effective solution side at present
Case.
Summary of the invention
The embodiment of the invention provides a kind of methods, devices and systems for testing pressure, at least to solve existing cluster
Press survey method when carrying out pressure test to server, technical problem complicated for operation.
According to an aspect of an embodiment of the present invention, a kind of method for testing pressure is provided, comprising: receive center control
The control information that equipment is sent, control information include at least: operational order, identification information, the file to be updated for pressing survey process;Control
At least one the pressure survey process made in pending equipment executes operational order, and generates pressure measured data, wherein each pending to set
Standby to be above deployed at least one pressure survey process, pressure survey process is used for pressure test;Pressure measured data is sent to central control equipment, with
Central control equipment is set to show pressure testing results.
Further, the method for pressure is tested further include: obtain at least one pressure survey process that central control equipment is sent
Identification information;It controls pressure survey process corresponding with identification information and executes operational order.
Further, the method for pressure is tested further include: obtain the file to be updated that central control equipment is sent;Obtain with
First file of the corresponding pressure survey process of identification information;First file is updated based on file to be updated, obtains the second text
Part;Based on the second document creation virtual client, wherein generate pressure measured data when virtual client is run.
Further, the method for pressure is tested further include: send the first file to central control equipment, so that center controls
Equipment sends file to be updated in the case where detecting that the first file and file to be updated have differences.
Further, the method for pressure is tested further include: send the first file to central control equipment, so that center controls
Equipment sends the difference section in file to be updated in the case where detecting that the first file and file to be updated have differences.
Further, the method for pressure is tested further include: during loading file to be updated, creation is carrying out pressure
The class example of the virtual client of survey task so that virtual client executes pressure survey task, and is updated the first file.
Further, the method for pressure is tested further include: control each virtual client and execute pressure survey in the form of assisting journey
Task, and generate pressure measured data, wherein the corresponding association's journey of each virtual client is set in activation queue;Wherein, it is detecting
In the case where obstruction exception, current association's journey is stored into waiting list, and run association's journey in activation queue;Detecting resistance
In the case where filling in abnormal ending, association's journey in waiting list is stored into activation list.
Further, the method for pressure is tested further include: the first label is carried out at least one pressure survey process, obtains target
Press survey process, wherein target pressure survey process is to need to collect that the pressure of measured data is pressed to survey process;It sends and collects to target pressure survey process
Instruction, wherein collect instruction and include at least timestamp;It receives the target that target pressure survey process returns and presses measured data, and to target
Survey process is pressed to carry out the second label, wherein at least one pressure survey process screens pressure measured data according to timestamp, and carries out
Statistics obtains target pressure measured data;Sending target presses measured data to central control equipment.
According to another aspect of an embodiment of the present invention, a kind of system for testing pressure is additionally provided, comprising: center control is set
It is standby, for generating control information, receive and show that the pressure measured data of at least one pending equipment feedback, control information are at least wrapped
It includes: operational order, identification information, the local code file for pressing survey process;At least one pending equipment, wherein each wait hold
Row upper side administration has at least one to press survey process, at least one pressure survey process generates pressure and survey number for executing operational order
According to.
According to another aspect of an embodiment of the present invention, a kind of device for testing pressure is additionally provided, comprising: receiving module,
For receiving the control information of central control equipment transmission, control information is included at least: operational order, the mark letter for pressing survey process
Breath, file to be updated;Generation module, at least one pressure survey process for controlling in pending equipment execute operational order, and
Generate pressure measured data, wherein pending upper side administration has at least one to press survey process, and pressure survey process is used for pressure test;Hair
Module is sent, for sending pressure measured data to central control equipment, so that central control equipment shows pressure testing results.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage
Program, wherein the method that equipment where control storage medium executes test pressure in program operation.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program,
In, the method for test pressure is executed when program is run.
In embodiments of the present invention, the side pressure survey process in pending equipment being managed using central control equipment
Formula controls at least one pressure survey process in pending equipment after the control information for receiving central control equipment transmission
Operational order is executed, and generates pressure measured data, pressure measured data is then sent to central control equipment, so that central control equipment
Show that pressure surveys test result, wherein control information includes at least: operational order, identification information, the text to be updated for pressing survey process
Part, pending upper side administration have at least one to press survey process, and pressure survey process is used for pressure test.
In above process, central control equipment can treat the survey of the pressure on side apparatus process and is managed collectively, Yong Huwu
Need individually in each pending equipment each pressure survey process individually be managed, thus realize simplicity rapidly respectively to
It executes synchronous pressure in equipment to survey the performing environment of process, press the start and stop of survey process and summarizing for pressure measured data, simplifies service
The operating procedure of device pressure test improves the efficiency of server stress test.
It is pressed it can be seen that scheme provided herein can solve existing cluster pressure survey method to server
When power is tested, technical problem complicated for operation.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of system structure diagram for testing pressure according to an embodiment of the present invention;
Fig. 2 is a kind of system structure diagram of optional test pressure according to an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram for testing pressure according to an embodiment of the present invention;And
Fig. 4 is a kind of apparatus structure schematic diagram for testing pressure according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
According to embodiments of the present invention, a kind of system embodiment for testing pressure is provided, wherein Fig. 1 is according to the present invention
The system structure diagram of the test pressure of embodiment, as shown in Figure 1, the system mainly includes central control equipment 10 and at least
One pending equipment 20 (one is illustrated only in Fig. 1).
Optionally, central control equipment 10 receive for generating control information and show that at least one pending equipment is anti-
The pressure measured data of feedback, control information include at least: operational order, identification information, the file to be updated for pressing survey process.At least one
Pressure survey process generates pressure measured data for executing operational order.Each pending upper side administration have at least one pressure survey into
Journey, it is corresponding with a distribution control process in each pending equipment, each distribution control process at least one pressure survey into
Journey is managed.
It should be noted that central control equipment is the fixed equipment of IP address, wherein central control equipment can be but
The equipment for being not limited to Windows system can also be the development equipment of linux system.
Optionally, Fig. 2 shows a kind of system structure diagrams of optional test pressure, as shown in Figure 2, center control
Equipment includes first network server module, distribution control management module, user interactive module, first network processing module, pressure
Survey code synchronisation module and pressure measured data summarizing module.Wherein, first network server module and first network processing module
It combines for handling network connecting request and data communication.After central control equipment starting, first network server module
Starting, and the fixed ip address of central control equipment is monitored, various networks are handled by network processes thread in real time and are grasped
Make.Distribution control management module is used to manage the connection for the distribution control process disposed in all pending equipment, wherein every
The distribution control process of a pending equipment is corresponding with the data management object in distribution control management module, data management
Object has unique identification, can index number corresponding with distribution control process in distribution control management module by unique identification
According to management object.User interactive module can receive the control instruction of user's input, and the relevant information of output center control equipment.
Wherein, the interactive interface that central control equipment is externally shown can change according to the system of place equipment, for example, in Windows
Figure UI interactive interface is disposed in system, disposes command Window on the exploitation machine of linux system.In addition, user interacts mould
Block can also build Web site, wherein the front end of Web site shows that user's input and information output all may be used in the form of Web page
It is operated by front end Web page.Before execute pressure test, user needs the code by newest pressure survey process to be deployed in
The heart controls under the fixation catalogue of equipment local, and pressure, which surveys code synchronisation module, to survey code file synchronized update for local newest pressure
Under the catalogue of pressure survey process on to each pending equipment, to simplify because the change of pressure survey project or pressure are surveyed use-case and frequently repaired
Change, needs the code directory of manual copy pressure survey process to the operation of each pending equipment.Pressure measured data summarizing module is for receiving
Collect the pressure measured data of all pressure survey processes within a preset time in each pending equipment, and summarizes displaying in central control equipment
UI interactive interface on.
It should be noted that being deployed with a distribution control process in each pending equipment, wherein pending to set
It is standby to be but be not limited to the equipment of Windows system and the exploitation machine of linux system, distribute control process to guard from the background
The method of operation of process is run in pending equipment.As shown in Figure 2, distribution control process includes: first network client, the
Two network process modules, data relay module, the second web server module and pressure survey process manager module.Wherein, first
Networking client is used to connect the first network server module of central control equipment, wherein first network client also follows
Distribute the starting of control process and start, and is set according to the network address of the first network server module of configuration and center control
It is standby to carry out real time communication.Second web server module be used for handle distribution control process with pressure survey process network connection and
Transceiver communication packet.Second network process module is used to handle the net of network client list and central control equipment in distribution control process
Network connection and transceiver communication packet.Data relay module is for collecting in pending equipment all pressure survey processes within a preset time
Pressure measured data, and will pressure measured data be forwarded to the pressure measured data summarizing module in center control nodes carry out collect statistics.Pressure
The connection that process manager module is used to manage all pressure survey processes in pending equipment is surveyed, and related data is packaged into pressure and surveys number
According to object, has unique identification in order to index, be stored in pending equipment.
It should be noted that after distribution control node is connect with central control equipment, it can real-time synchronization by network connection
Related pressure measurement information in pending equipment, wherein pressure measurement information includes but is not limited to the pressure of all startings in pending equipment
Virtual client quantity, each pressure survey process that the process summary info of survey process, each pressure survey process currently create currently are held
The title of capable pressure survey task.Distribution control management module in central control equipment believes each the related of distribution control process
Breath is stored in corresponding data management object.User interactive module in central control equipment passes through distribution control management module
The data that each pending equipment uploads are obtained in real time, and are shown and be supplied to user query on interactive interface.
In addition it is also necessary to explanation, deployment is needed by having on each pressing machine in each pending equipment
At least more than one pressure for being practically applicable to carry out pressure test task of deployment surveys process, presses survey process with the shape of backstage finger daemon
Formula operation.Wherein, multiple pressure survey processes can be run simultaneously in the same pending equipment, each pressure survey process, which executes pressure and surveys, appoints
The logic of business is realized in main logic thread, is started multiple pressure survey processes in the same pending equipment, can be made full use of wait hold
The more a cores of the CPU of row equipment, make full use of the resource of pending equipment.
Optionally, as shown in Figure 2, each pressure survey process includes: the second networking client, pressure survey case management module, void
Quasi- client manager module, pressure measured data statistical module.Wherein, the second networking client surveys the second net in node for handling pressure
Network connection and transceiver communication packet in network client and distribution control process between the second web server module.Pressure surveys number
During module is for recording pressure survey process execution pressure survey task according to statistics, the pressure of each virtual client list surveys network behavior
Network performance data.Pressure is surveyed case management module and is used for after pressure survey carries out loading corresponding code file, and preservation is loaded as
The pressure of class declaration object surveys task, and can be indexed by the identification information of task.In addition, pressure survey process is executing pressure survey times
It is the network connection simulated by creating a certain number of virtual clients at actual customer end to network server, net when business
The operations such as network send and receive packets, and press the virtual client management module in survey process can be reserved for the pressure survey process created it is all
The relevant information of virtual client.Wherein, each virtual client, which executes when pressure surveys work, can be arranged a pressure survey task, lead to
Over-voltage measured data statistical module obtains pressure and surveys task class statement object, and creates example, then according to the logic pair of pressure survey task
Network server carries out pressure and surveys operation.
It should be noted that the on/off of pressure survey process can be according to the configuration performance and actual use of pending equipment
Demand is adjusted.Wherein, press the on/off of survey process that can control process by the distribution of pending equipment by calling system
To execute, user carries out relevant operation on the interactive interface of central control equipment for system order, and first in central control equipment
Web server module will operate corresponding instruction and be sent to distribution control process, then be sent the instruction by distribution control process
To corresponding pressure survey process.
In addition, distribution control process can by network connection to pressure survey process send control instruction, with realize to pressure survey into
The configuration of the relevant parameter of journey.Wherein, distribute the agreement and pressure survey process in the second web server module in control process
In agreement in the second networking client it is identical.After distribution control process initiation in each pending equipment, each distribution control
Corresponding second web server module of process processed also starts to start;The pressure started in each pending equipment surveys process initiation
Afterwards, corresponding second networking client of each pressure survey process also starts, and automatically with it is corresponding distribution control process in second
Web server module is communicatively coupled.
Optionally, the program for pressing survey process includes engine section and the Script section, wherein pressure survey process passes through engine section
Then starting operation, and Run Script virtual machine load the script that pressure survey process carries out pressure survey task by script virtual machine again
Code file.In above process, the logic that pressure survey process executes pressure survey task is developed in the form of scripted code, is opened
Hair language can be but be not limited to python language.In addition, each pressure survey task is defined and is opened with the class of preset format
Hair, and there is unique task name mark.
It should be noted that script virtual machine is the manager for managing the Script section of pressure survey process, each pressure
The class object that logic is surveyed for executing pressure for loading and generating in memory can all be parsed by script virtual machine by surveying use-case script file
Statement, script virtual machine, which can manage to press, surveys the creation operation of use-case class object, each virtual client is when executing pressure survey task
A pressure by script virtual machine management will independently be created and survey use-case class object example, and press survey use-case to run according to this
Logic behavior in journey treats testing service device and carries out pressure survey operation.
In addition, when being communicated between central control equipment and distribution control process, distribution control process and pressure survey process
Communication protocol can include but is not limited to the agreements such as TCP, UDP, WebSocket.Wherein, the first net in central control equipment
The agreement of network server module is identical as the agreement of first network client in distribution control process, distributes the in control process
The agreement of two web server modules is identical as the agreement of the second networking client in pressure survey process.In this application, Suo Youtong
Letter agreement is all made of TCP connection mode.
Optionally, as shown in Figure 2, the system for testing pressure further includes data interaction process.Wherein, data interaction process exists
It is run in pending equipment, can support data interaction of any two virtual client during executing pressure survey task,
Situation test task is surveyed to the pressure for building multi-user operation set and plays preferable supporting function, for example, mutual between pressure survey good friend
It mutually operates, the behavior that room battle of both sides' foundation etc. needs user's mutual cooperation to be just able to achieve pressure detecting in online game.
From the foregoing, it will be observed that being connect in such a way that central control equipment is managed the pressure survey process in pending equipment
After the control information for receiving central control equipment transmission, at least one the pressure survey process controlled in pending equipment executes operation
Instruction, and pressure measured data is generated, pressure measured data is then sent to central control equipment, so that central control equipment shows that pressure is surveyed
Test result, wherein control information includes at least: operational order, identification information, the local code file for pressing survey process, wait hold
Row upper side administration has at least one to press survey process, and pressure survey process is used for pressure test.
It is easily noted that, central control equipment can treat the survey of the pressure on side apparatus process and is managed collectively, user
It is individually managed without individually surveying process to each pressure in each pending equipment, to realize simplicity rapidly each
Synchronous pressure surveys the performing environment of process, presses the start and stop of survey process and summarizing for pressure measured data in pending equipment, simplifies clothes
The operating procedure of business device pressure test, improves the efficiency of server stress test.
It is pressed it can be seen that scheme provided herein can solve existing cluster pressure survey method to server
When power is tested, technical problem complicated for operation.
It should be noted that the system of test pressure provided by the invention is during deployment, central control equipment divides
Sending out has stronger versatility between control process and data interaction process, pending upper side administration distribution control process with
And after data interaction process, without frequent change.It presses survey process because of pressure survey project difference and presses the iteration demand of survey task, pressure
The operation code file of survey process may have modification demand, can also pass through the net between central control equipment and distribution control process
Network communication, which quickly updates, to be synchronized in each pending equipment.Pressure survey plan implementation provided by the invention is at low cost, to different pressures
Survey project strong applicability.
According to embodiments of the present invention, a kind of embodiment of the method for testing pressure is additionally provided, it should be noted that this method
It can be executed by the system of above-mentioned test pressure.Wherein, Fig. 3 is the method flow diagram of test pressure according to an embodiment of the present invention,
As shown in figure 3, this method comprises the following steps:
Step S302 receives the control information that central control equipment is sent, and control information includes at least: operational order, pressure
The identification information of survey process, file to be updated.
It should be noted that the central control equipment in step S302 is the center control in the system of above-mentioned test pressure
Equipment, wherein when central control equipment is the equipment of Windows system, UI interactive interface can be realized by the library PyQt,
Wherein, the correlative code of UI interactive interface can be packaged into executable application programs by py2exe and be transported in central control equipment
Row;When central control equipment is the exploitation machine of linux system, can be performed in operation python code starting central control equipment
Process, and using cmd order line as interactive interface, alternatively, disposing http server in station in process, related UI is operated
Web site can be accessed by front end browser, operate and realize in the browser web front-end page.In the portion of central control equipment
After administration completes, the corresponding process of starting central control equipment, meanwhile, the first network server module in central control equipment
Also start, and the network port of the IP address of listening center control equipment and configuration.
In a kind of optional scheme, user is by the UI interactive interface on central control equipment to each pending equipment
Transmission operational order, wherein operational order including but not limited to starts pressure survey process, survey process execution pressure survey task is pressed in control,
Control pressure surveys process creation virtual client, survey process is pressed in pause, close pressure survey process, synchronous pressure surveys the file of process, collects
Press measured data etc..Operational order is sent to pending equipment by central control equipment, pending equipment receive operational order it
Afterwards, it controls corresponding process and executes relevant operation.
Optionally, user needs to operate by the input of the UI interactive interface of central control equipment pending equipment and/or
Press the identification information of survey process, central control equipment according to identification information to pending equipment corresponding with identification information and/or
Pressure is surveyed and carries out transmission operational order.In addition, in the case where code file of the operational order instruction to pressure survey process updates, control
Include file to be updated in information, file to be updated is sent to corresponding process to be measured by central control equipment, and to it is to be measured into
The code file of journey is updated.
Step S304, at least one the pressure survey process controlled in pending equipment executes operational order, and generates pressure and survey number
According to, wherein pending upper side administration has at least one to press survey process, and pressure survey process is used for pressure test.
In a kind of optional scheme, in the case where operational order is that the quantity of virtual client is arranged, survey process is pressed
In virtual client management module judge whether currently running virtual client quantity and preset quantity consistent, if one
It causes, then virtual client management module does not execute any operation;If it is inconsistent, further detecting currently running virtual visitor
Whether family end quantity is less than preset quantity, if it is less than preset quantity, then calculates the difference of the two, and create number corresponding with difference
Then the virtual client of amount obtains task class object from the data management object in central control equipment, and create new real
Example, the pressure that the virtual client newly increased is arranged survey the Logic of Tasks, and control the virtual client newly increased according to pressure survey task
Logic executes pressure survey task.If currently running virtual client quantity is not less than preset quantity, virtual client management
Module calculates the difference of the two, and destroys the virtual client with difference corresponding number.
In another optional scheme, in the case where operational order is that currently running pressure is arranged to survey use-case task,
Virtual client management module is compared according to preset test assignment use-case title with the use-case task names of current setting
Compared with if the two is consistent, without any processing;If the two is inconsistent, new appoint is indexed in data management object
Business class object, and new task class example is created for the virtual client being currently running, it is new being arranged for virtual client
Task class example after, restart to execute pressure survey task according to new class Example logic.
There is also a kind of optional schemes, are the case where current operation pressure of setting surveys use-case suspending/resuming in operational order
Under, label of the virtual client management module according to setting suspending/resuming, setting global variable label, each virtual client
The current value of global variable label is judged during executing pressure survey task, and determines whether that pause is being held according to current value
Capable use-case.For example, being labeled as 0, the use-case that pause is carrying out is indicated;Labeled as 1, indicate to restore to execute paused execution
Use-case.
Step S306 sends pressure measured data to central control equipment, so that central control equipment shows pressure testing results.
It should be noted that above-mentioned pressure testing results include but is not limited to that the CPU usage of network server, memory account for
With rate, IO utilization rate, concurrent request quantity, protocol responses time etc..
In a kind of optional scheme, the operation of pending equipment corresponding Ya Ce process implementation center control equipment transmission
After instruction, pending equipment obtains the relevant information of each pressure survey process operation command, and relevant updates information is led to
It crosses network and is sent to central control equipment, central control equipment updates plucking for corresponding pressure survey process in corresponding data management object
Want information.
In another optional scheme, central control equipment is dividing after the network connection for determining pending equipment
Corresponding data management object is created in hair control management module, and saves the corresponding distribution control process of all pending equipment
Operating status and all pending equipment on pressure measured data.Central control equipment is receiving distribution control process transmission
Pressure measured data after, pressure measured data is stored in data management object, and is shown by user interactive module.User
It can check the process column that process is surveyed including each pressure being currently up in the pending equipment where corresponding distribution control process
Table, and the quantity of the currently performed information for pressing survey task of each pressure survey process of label and the virtual client created.
Based on scheme defined by above-mentioned steps S302 to step S306, it can know, be treated using central control equipment
The mode that the pressure survey process in equipment is managed is executed, after the control information for receiving central control equipment transmission, control
At least one the pressure survey process made in pending equipment executes operational order, and generates pressure measured data, then will pressure measured data hair
It send to central control equipment, so that central control equipment shows that pressure surveys test result, wherein control information includes at least: operation
Instruction, pressure survey process identification information, file to be updated, pending upper side administration has at least one to press survey process, pressure survey into
Journey is used for pressure test.
It is easily noted that, central control equipment can treat the survey of the pressure on side apparatus process and is managed collectively, user
It is individually managed without individually surveying process to each pressure in each pending equipment, to realize simplicity rapidly each
Synchronous pressure surveys the performing environment of process, presses the start and stop of survey process and summarizing for pressure measured data in pending equipment, simplifies clothes
The operating procedure of business device pressure test, improves the efficiency of server stress test.
It is pressed it can be seen that scheme provided herein can solve existing cluster pressure survey method to server
When power is tested, technical problem complicated for operation.
In a kind of optional scheme, after the control information for receiving central control equipment transmission, pending equipment
Obtain central control equipment send at least one pressure survey process identification information, and control it is corresponding with identification information pressure survey into
Cheng Zhihang operational order.
Optionally, user controls the pause of the process A in pending equipment A by central control equipment and executes pressure survey task,
Then the identification information of the identification information of pending equipment A, process A is sent to pending equipment A by central control equipment.It is pending
Equipment A parses control information after receiving control information, and it is pause instruction that parsing, which obtains operational order, and pressure is surveyed
The identification information of process is process A, then pending equipment control carries out A pause and executes pressure survey task.
Optionally, in the case where operational order is more new command, pending equipment obtains what central control equipment was sent
First file of file to be updated and pressure survey process corresponding with identification information, is then based on file to be updated to the first file
It is updated, obtains the second file, and be based on the second document creation virtual client, wherein virtual client generates when running
Press measured data.
In a kind of optional scheme, user will press the code file portion of survey process by the interface UI of central control equipment
Administration is under the fixation catalogue of central control equipment.After central control equipment starting, the pressure of central control equipment surveys code synchronisation
Module can fix catalogue and be set as working directory, and traverse All Files under the corresponding root file of pressure survey process, then
Record relative path and file md5 (Message Digest of each file under the root file of pressure survey process
Algorithm, Message Digest Algorithm 5) code.When the file (text i.e. to be updated under the fixation catalogue of central control equipment
Part) when having modification, user can be pressed by UI Interface Control surveys code synchronisation module under the corresponding root file of pressure survey process
File be updated.
In a kind of optional scheme, after distribution control process is connect with central control equipment, distribute control process
The relative path pressed under the corresponding root file of survey process and file md5 code are serialized, and will be after serializing
Relative path and md5 code are given out a contract for a project by network is sent to central control equipment.Central control equipment will distribute control process institute
Relative path information preservation under the root file of pressure survey process in pending equipment is in data management object, user
The text of root corresponding to the pressure survey process in each pending equipment can be inquired by the UI interactive interface of central control equipment
The relative path information of part.
Optionally, user selects any pending equipment to survey to check to press in the pending equipment by UI interactive interface
The contrast difference of the file under the fixed catalogue of file and central control equipment under the corresponding root file of process.Center control
The pressure of equipment, which surveys code synchronisation module, can obtain relative path and the progress of md5 code of the corresponding root file of all pressure survey processes
Contrast conting is come the contrast difference that both obtains, wherein whether relative path is newly-increased for documents or deleted, md5 code
It is whether identical for comparing the same path file.The comparison result of each file is shown finally, pressure surveys code synchronisation module
For user query on UI interactive interface.
Further, user the file to be updated under the fixation catalogue of central control equipment can be also updated to it is preset to
It executes in equipment.Optionally, in the case that not yet survey process is pressed in deployment in pending equipment, the pressure of central control equipment surveys generation
Code synchronization module parses each file under the fixation catalogue of central control equipment, and each file is surveyed relative to pressure
The relative path and file content of the root of process carry out binary word throttling serializing processing, obtain network and give out a contract for a project, and
Network is given out a contract for a project and is sent in the distribution control process of corresponding pending equipment.Distribution control process is given out a contract for a project receiving network
Later, file is rebuild under the root of corresponding pressure survey process in the corresponding pending equipment of distribution control process.
It should be noted that the pressure of central control equipment surveys code if user has selected multiple files to be updated
Synchronization module only carries out file path and binary word throttling serializing processing to institute's filesselected, and network packet is sent to point
It sends out control process and carries out local reconstruction.Which, which can be used for user, has special pressure to survey in the case that operation needs, to it is specified to
Execute presses the specified file of survey process to synchronize update in equipment.
In addition, user also may be selected automatic synchronization mode, at this point, central control equipment pressure survey code synchronisation module according to
On local file directory and pending equipment under root each file comparative situation, by it is all have differences files carry out network
Give out a contract for a project, and file content is synchronized in corresponding pending equipment, to carry out file reconstruction.Wherein, if user needs to delete
Except the file in pending equipment, then press survey code synchronisation module send network give out a contract for a project an accompanying document path and delete mark
Note.
In addition it is also necessary to explanation, after the code file of pending equipment local is rebuild, pending equipment transmission is worked as
To central control equipment, central control equipment deposits newest file path and md5 code for preceding newest file path and md5 code
Storage is in data management object.If it is the delete operation to file, then after Delete Local File, pending equipment is only sent out
It send deleted document and deletes pass flag to central control equipment.
In a kind of optional scheme, before obtaining the file to be updated that central control equipment is sent, center control is set
It is standby file to be updated under fixed catalogue to be updated.Wherein, central control equipment can to entire file to be updated into
Row updates, and can also only be updated to difference section.
Specifically, pending equipment sends the first file to central control equipment, so that central control equipment is detecting
In the case that first file and file to be updated have differences, file to be updated is sent.Alternatively, pending equipment sends the first text
Part is to central control equipment, so that central control equipment is detecting the case where the first file and file to be updated have differences
Under, send the difference section in file to be updated.
It should be noted that not disposing the code file catalogue of pressure survey process in pending equipment or pressing the generation of survey process
In the case of code catalogue has been modified, user is just updated the file of the code directory of pressure survey process, if pending set
The standby upper code directory for being deployed with pressure survey process, and the file under code directory with the fixation catalogue of central control equipment
Under file it is completely the same, then pending equipment does not execute code update step.
Optionally, user is checked each pending by the UI interactive interface of the user interactive module of central control equipment
Newest code file under the fixation root of each file and central control equipment is pressed under the corresponding catalogue of survey process in equipment
The different information of version (file i.e. to be updated), wherein different information includes but is not limited to pressure survey process pair in pending equipment
Certain file or folder is compared with the file to be updated under the fixation catalogue of central control equipment under the catalogue answered, if newly-increased,
Whether delete, whether modified.
Optionally, user pending is set by the UI interactive interface of the user interactive module of central control equipment to each
Whole code files under standby carry out whole updates, and All Files under some file also may be selected and survey to pressure in pending equipment
File under the corresponding catalogue of process is updated, and automatic synchronizing function also may be selected, at this point, central control equipment is according to acquisition
To each pending equipment on pressure survey process correspond under catalogue file under the local file directory of file and central control equipment
Diff list, all files having differences of automatic synchronization, and cover respective file in pending equipment automatically.
It should be noted that run in pending equipment pressure survey process in the case where, user without restart pressure survey into
The update of the code file to pressure survey process can be realized in journey.Specifically, during loading file to be updated, Devices to test
Creation is carrying out the class example of the virtual client of pressure survey task, so that virtual client executes pressure survey task, and to first
File is updated.
In a kind of optional scheme, user passes through the UI interactive interface of central control equipment, modifies central control equipment
Pressure under fixed catalogue surveys the corresponding code file of process, obtains file to be updated, and select to need the pressure being updated survey into
Journey.Then central control equipment sends out the identification information of file to be updated and corresponding pressure survey process by way of network is given out a contract for a project
It send to corresponding pending equipment.The corresponding distribution control process of pending equipment obtains after receiving network and giving out a contract for a project
The identification information for the pressure survey process being updated, and surveyed in process manager module in pressure and index pressure survey corresponding with identification information
Then network is given out a contract for a project and is sent to pressure survey process by process.Pressure survey process receives after network gives out a contract for a project receiving, and presses survey process
Corresponding script virtual machine is carried out each script under the corresponding catalogue of current pressure survey process and reloads, and generates new use-case
Task class statement object, and update and be saved into pressure survey case management module.It is surveyed if the pressure surveys process in the presence of pressure is carrying out
The virtual client of task then presses the class for surveying that case management module is the current operation task of each virtual client creation again
Example, and restart to execute pressure survey task.
It should be noted that the heat of script code file is supported to update operation in the present embodiment, it can be convenient user and holding
During row pressure survey task, according to pressure survey demand, differentiation the pressure currently performed use-case the Logic of Tasks of survey process is repaired
Change, enriches pressure survey behavior.In addition, in the present embodiment, thering are multiple virtual clients to be performed simultaneously pressure in a pressure survey process
Survey task, the logical operation of each virtual client are operated in the same main logic thread and are multiplexed, and are not used each
The mode that task is individually performed in a logic thread is individually enabled in virtual client, occupies system money to avoid multithreading was started
Source causes whole progress operational efficiency to decline.
In addition it is also necessary to explanation, in the present embodiment, all virtual clients for being created in the same pressure survey process
Logic operation is on the main thread of the same script logic, and main thread is by major cycle framing mode, every preset time (example
Such as, 1 second) certain execution number all is distributed for each virtual client, to ensure that each virtual client can be assigned to surely
Fixed logic executes the time.
Each virtual client is all assigned with an execution association journey after creation, which operates in the same thread
, the implementation procedure between each association's journey is serially to execute, and is shared with a internal storage data, and there is no internal storage data contention access
Problem can independently be switched by program between each association's journey, wherein the trigger condition of association's journey switching includes but is not limited to I/
The logics such as O blocking behavior, Sleep wait behavior, execute the blocking behavior during pressing survey task.
Optionally, I/O blocking behavior trigger condition refers to that during carrying out pressure survey task I/O occurs for virtual client
The operation of obstruction mainly appears on and carries out triggering switching when surveying server progress network operation behavior by pressure, wherein network behaviour
Make behavior include but is not limited to network connection, packet receiving, the bottom-layer networks such as give out a contract for a project I/O read and write behavior.
The logics such as Sleep wait behavior trigger condition, refer to virtual client carry out pressure survey task during, according to
Pressure surveys logical operation interval, and the set time is waited when virtual client actively calls Sleep to operate in logic, works as virtual client
When end enters the waiting time, association's journey triggering switching.
The blocking behavior trigger condition during pressure survey task is executed, refers to virtual client every time in the process of implementation
When encountering blocking behavior, the engine bottom of pressure survey process can trigger association's journey switching, and association's journey in current operation is switched to other
The association Cheng Yunhang of virtual client at the end of capturing blocking behavior by the event passive listening of engine, concedes the void of association's journey
Operation power is reacquired when quasi- client waits the association Cheng Fasheng of other virtual clients to concede, and restores the operation of original association's journey,
During entire pressure is surveyed, it is clog-free that pressure surveys logic main thread.Compared to thread mode, can be improved by the way of assisting journey concurrent
Efficiency, and the operation logic of each virtual client is under a main thread, be related to accessing mutually the logics of data without
The synchronous problem of multi-thread data need to be considered, so that pressure survey logic development is simpler.
In a kind of optional scheme, each virtual client is corresponding with association's journey.Wherein, pending equipment is to assist
The mode of journey executes pressure survey task.Specifically, pending equipment controls each virtual client executes pressure survey in the form of assisting journey
Task, and pressure measured data is generated, in the case where detecting obstruction exception, current association's journey is stored into waiting list, and run
Activate association's journey in queue;In the case where detecting obstruction abnormal ending, association's journey in waiting list is stored to activation and is arranged
In table.Wherein, the corresponding association's journey of each virtual client is set in activation queue.
Optionally, for virtual client after creating successfully, it is each for pressing the virtual client management module in survey process
Virtual client distributes an execution and assists journey, and association's journey is put into activation queue, and virtual client management module is according to elder generation
Into principle is first gone out, head association, control team journey first goes out team, determines the right of execution of each virtual client, and control corresponding virtual client
End executes association's journey.Abnormal in the event of obstruction during assisting Cheng Zhihang pressure to survey logic, then engine bottom triggering association journey is cut
It changes, it is current that journey is assisted to concede right of execution, and enter dormant state, virtual client management module will currently assist Cheng Fangjin waiting list
In, and take out association's journey from team's head of activation queue and go out team, execute association's journey.Association's journey in waiting list, passes through engine bottom
After layer detects blocking behavior, notify virtual client management module, virtual client management module will corresponding association's journey from
It is taken out in waiting list, puts into activation list, right of execution to be obtained is waited to continue to execute later.Concede the association Cheng Chongxin of right of execution
When obtaining right of execution, restore to concede logical context when right of execution, the execution logic before continuing.
It should be noted that in above process, judging that the condition that blocking behavior terminates can be but be not limited to network receipts
Give out a contract for a project end, reach the Sleep waiting time.In addition, user can also pass through the UI interactive interface real time inspection of central control equipment
The pressure measured data that all pending equipment are summarized in day part, wherein when pressure survey number includes the execution of each virtual client
Between, the state that runs succeeded, network packet uninterrupted, protocol processes failure error log etc..
In a kind of optional scheme, after obtaining pressure measured data, Devices to test carries out at least one pressure survey process
First label obtains target pressure survey process, then sends to target pressure survey process and collects instruction, and receives target pressure survey process and return
The target returned presses measured data, and carries out the second label to target pressure survey process, wherein at least one pressure survey process is according to timestamp
Pressure measured data is screened, and is counted to obtain target pressure measured data.Measured data to center is pressed to control finally, sending target
Equipment.Wherein, target pressure survey process is to need to collect the pressure survey process of pressure measured data, collects instruction and includes at least timestamp.
Optionally, all virtual clients for being created in the pressure survey process of each pending equipment execute pressure survey task it
Afterwards, virtual client records and tracks all network behavior data relevant to by survey server is pressed (i.e. pressure measured data), and will
Network behavior data and the corresponding timestamp of acquisition network behavior data are stored in the pressure measured data statistics mould in pressure survey process
In the cache list of block.In above process, pressure measured data includes but is not limited to be connected to the network situation, agreement packet receiving, agreement hair
Packet etc..
Further, the pressure measured data summarizing module of central control equipment periodically sends collection instruction, and encloses current receipts
Timestamp when collection.It then, will after central control equipment is connect with the distribution of each pending equipment control process network
Command broadcast is collected to each distribution control process.Distribution control process is converged after receiving collection instruction by pressure measured data
Total module records relevant collection status, then by collection status be sent to the current distribution control process it is corresponding press survey into
Journey, and the first label is carried out, obtain target pressure measured data.Wherein, the first label shows collecting pressure measured data.Press survey process
After receiving collection instruction, according to timestamp, all timestamps of measured data statistical module current cache will be pressed to be less than and received
The pressure measured data of timestamp in collection instruction is summarized, and network performance statistical parameter is calculated, wherein network performance system
Meter parameter includes at least total network behavior access duration time, total network flow size, total network protocol and handles successfully
Quantity, total network protocol processing failure quantity, the content type of each error log type and corresponding total frequency of occurrence, and
Subnetwork agreement counts each protocol access total quantity.Network performance statistical parameter is serialized, and by the net after serializing
Network performance statistics parameter is sent to central control equipment, and cleans up timestamp in pressure measured data statistical module and refer to less than collection
The pressure measured data of timestamp in order.
Further, distribution control process will press measured data after receiving the pressure measured data that pressure survey process is sent
It is stored in the data statistics caching of data relay module, and marks the pressure to survey node and collected completion (i.e. the second mark of progress
Note), it is all collected to all pressure measured data for pressing survey nodes for carrying out the first label after completing, data relay module is to each
The pressure measured data that pressure survey process is sent is summarized again, calculates network performance statistical parameter, and count and join to network performance
Number is serialized, and the network performance statistical parameter of serializing is finally sent to central control equipment.Central control equipment exists
After receiving the pressure measured data that all distribution control processes are sent, the pressure measured data summarizing module of central control equipment is surveyed according to pressure
Data calculate network protocol access number total in preset time, it is total access successfully quantity, total access fail quantity, divide
Agreement count total access number, it is total access successfully quantity, total access fail quantity, be averaged in collection time period visit per second
It asks quantity, average access success quantity, average access failure quantity etc., and is aggregated into list and shows on UI interactive interface.
It should be noted that in the present embodiment, the distribution control process of each pending upper side administration with center
After controlling equipment connection, uniquely index distribution key assignments, each distribution control process can be assigned in central control equipment
The pressure of local boot surveys process after connecting with distribution control process, will also be assigned in a local distribution control process only
One index process key assignments, it is each to press each virtual client created in survey process that also distribute only in survey process locally pressing
One index virtual client key assignments can pass through combined shape by distribution key assignments, process key assignments and virtual client key assignments
Formula is that each virtual client distributes a globally unique index mark under entire cluster.
Virtual client in the present embodiment in same pressure survey process is when carrying out pressure survey, if needed between virtual client
Pressure measurement information is accessed mutually, then can directly access the internal storage data of other side under the same pressure survey process, can also pass through read-write
The mutual shared data of the modes such as global variable.If the virtual client being distributed in different pressure survey processes needs access pair mutually
The pressure measured data of side, alternatively, the pressure that two virtual clients being distributed in different pending equipment need to access object surveys number
According at this point, the accessible access data between each virtual client can be realized by data interaction process.
It should be noted that data interaction process is the data buffering system being individually deployed on autonomous device, the equipment
System can be the system environments such as windows, linux, mac, which can provide the fixed port IP so that outside passes through
Network connection is written and read access.The core memory system of data interaction process can use the key-value type of current main-stream
High-speed internal memory storage system, for example, redis, memcache.Storage system inside data interaction process can be according to use demand
It is disposed by the way of cluster or single memory node, Outside Access provides unified network access mode.
Optionally, storage system of the redis as data interaction process is used in the present embodiment, redis has storage speed
Fast advantage is spent, the data of redis are saved in a manner of key-value Hash table, and index is convenient, and support data type rich
Richness, storage system support cluster expansion.In the present embodiment, during executing pressure survey task, each running virtual client
Action logic can be surveyed according to pressure by network access interface, upload itself data or inquiry correlation to data interaction process in real time
Data, and using itself globally unique index as the key assignments stored, and the rope as other virtual clients access data
Tendering is known.In data interaction process, also arranges the common storage data of some fixed key assignments, support each virtual client common
Read and write access is equivalent to global variable data.
In addition, data interaction process supports data interaction of any two virtual client during executing use-case, it is right
The pressure for building multi-user operation combination surveys situation test task and plays fine supporting function, for example, operated mutually between pressure survey good friend,
The pressure that both sides establish that room battle etc. needs user's mutual cooperation to be just able to achieve in online game surveys behavior.
According to embodiments of the present invention, a kind of Installation practice for testing pressure is additionally provided, wherein Fig. 4 is according to this hair
The apparatus structure schematic diagram of the test pressure of bright embodiment, as shown in figure 4, the device includes: receiving module 401, generation module
403 and sending module 405.
Wherein, receiving module 401, for receiving the control information of central control equipment transmission, control information is included at least:
Operational order, identification information, the local code file for pressing survey process;Generation module 403, for controlling in pending equipment extremely
A few pressure survey process executes operational order, and generates pressure measured data, wherein pending upper side administration has at least one pressure to survey
Process, pressure survey process are used for pressure test;Sending module 405, for sending pressure measured data to central control equipment, so that center
It controls equipment and shows pressure testing results.
Herein it should be noted that above-mentioned receiving module 401, generation module 403 and sending module 405 are corresponding to above-mentioned
The step S302 to step S306 of embodiment, three modules are identical as example and application scenarios that corresponding step is realized, but
It is not limited to the above embodiments disclosure of that.
In a kind of optional scheme, generation module includes: the first acquisition module and the first control module.Wherein,
One obtains module, the identification information of at least one pressure survey process for obtaining central control equipment transmission;First control module,
Operational order is executed for controlling pressure survey process corresponding with identification information.
In a kind of optional scheme, the first control module includes: that the second acquisition module, third obtain module, first more
New module and the first creation module.Wherein, second module is obtained, for obtaining the text to be updated of central control equipment transmission
Part;Third obtains module, for obtaining the first file of pressure survey process corresponding with identification information;First update module, is used for
First file is updated based on file to be updated, obtains the second file;First creation module, for being created based on the second file
Build virtual client, wherein pressure measured data is generated when virtual client is run.
In a kind of optional scheme, the device of pressure is tested further include: the first sending module.Wherein, first mould is sent
Block, for sending the first file to central control equipment, so that central control equipment is detecting the first file and text to be updated
In the case that part has differences, file to be updated is sent.
In a kind of optional scheme, the device of pressure is tested further include: the second sending module.Wherein, second mould is sent
Block, for sending the first file to central control equipment, so that central control equipment is detecting the first file and text to be updated
In the case that part has differences, the difference section in file to be updated is sent.
In a kind of optional scheme, the first update module includes: the second creation module.Wherein, the second creation module is used
During loading file to be updated, creation is carrying out the class example of the virtual client of pressure survey task, so that virtually
Client executing presses survey task, and is updated to the first file.
In a kind of optional scheme, each virtual client is corresponding with association's journey, wherein the first creation module packet
It includes: the second control module.Wherein, the second control module executes pressure survey for controlling each virtual client in the form of assisting journey
Task, and generate pressure measured data, wherein the corresponding association's journey of each virtual client is set in activation queue;Wherein, it is detecting
In the case where obstruction exception, current association's journey is stored into waiting list, and run association's journey in activation queue;Detecting resistance
In the case where filling in abnormal ending, association's journey in waiting list is stored into activation list.
In a kind of optional scheme, sending module include: processing module, third sending module, the first receiving module with
And the 4th sending module.Wherein, processing module obtains target pressure and surveys for carrying out the first label at least one pressure survey process
Process, wherein target pressure survey process is to need to collect the pressure survey process of pressure measured data;Third sending module is used for target pressure
Survey process, which is sent, collects instruction, wherein collects instruction and includes at least timestamp;First receiving module is surveyed for receiving target pressure
Process return target press measured data, and to target pressure survey process carry out second label, wherein at least one pressure survey process according to
Timestamp screens pressure measured data, and is counted to obtain target pressure measured data;4th sending module, for sending target
Press measured data to central control equipment.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, which includes storage
Program, wherein the method that equipment where control storage medium executes above-mentioned test pressure in program operation.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, which is used to run program,
In, program run when execute above-mentioned test pressure method.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (12)
1. a kind of method for testing pressure characterized by comprising
The control information that central control equipment is sent is received, the control information includes at least: operational order, the mark for pressing survey process
Know information, file to be updated;
At least one the pressure survey process controlled in pending equipment executes the operational order, and generates pressure measured data, wherein institute
Stating pending upper side administration has at least one described pressure survey process, and the pressure survey process is used for pressure test;
The pressure measured data is sent to the central control equipment, so that the central control equipment shows pressure testing results.
2. the method according to claim 1, wherein at least one the pressure survey process controlled in pending equipment is held
The row operational order, comprising:
Obtain the identification information at least one pressure survey process that the central control equipment is sent;
It controls pressure survey process corresponding with the identification information and executes the operational order.
3. according to the method described in claim 2, it is characterized in that, control pressure survey process corresponding with the identification information executes
The operational order, comprising:
Obtain the file to be updated that the central control equipment is sent;
Obtain the first file of pressure survey process corresponding with the identification information;
First file is updated based on the file to be updated, obtains the second file;
Based on the second document creation virtual client, wherein the virtual client generates the pressure measured data when running.
4. according to the method described in claim 3, it is characterized in that, in the text to be updated for obtaining the central control equipment transmission
Before part, the method also includes:
First file is sent to the central control equipment, so that the central control equipment is detecting first text
In the case that part and the file to be updated have differences, the file to be updated is sent.
5. according to the method described in claim 3, it is characterized in that, in the text to be updated for obtaining the central control equipment transmission
Before part, the method also includes:
First file is sent to the central control equipment, so that the central control equipment is detecting first text
In the case that part and the file to be updated have differences, the difference section in the file to be updated is sent.
6. method according to claim 4 or 5, which is characterized in that based on the file to be updated to first file
It is updated, obtains the second file, comprising:
During loading the file to be updated, creation is carrying out the class example of the virtual client of pressure survey task, with
So that the virtual client is executed the pressure survey task, and first file is updated.
7. according to the method described in claim 3, it is characterized in that, each virtual client is corresponding with association's journey, wherein
The pressure measured data is generated when controlling virtual client operation, comprising:
It controls each virtual client and executes pressure survey task in the form of assisting journey, and generate the pressure measured data, wherein institute
The corresponding association's journey of each virtual client is stated to be set in activation queue;
Wherein, in the case where detecting obstruction exception, current association's journey is stored into waiting list, and run the activation queue
In association's journey;
In the case where detecting the obstruction abnormal ending, association's journey in the waiting list is stored to the activation queue
In.
8. the method according to claim 1, wherein send the pressure measured data to the central control equipment,
Include:
First label is carried out at least one described pressure survey process, obtains target pressure survey process, wherein the target presses survey process
Process is surveyed to need to collect the pressure of the pressure measured data;
It is sent to target pressure survey process and collects instruction, wherein the collection instruction includes at least timestamp;
The target pressure measured data that the target pressure survey process returns is received, and the second label is carried out to target pressure survey process,
Wherein, at least one described pressure survey process screens the pressure measured data according to the timestamp, and is counted to obtain
The target presses measured data;
Sending the target presses measured data to the central control equipment.
9. a kind of system for testing pressure characterized by comprising
Central control equipment controls information for generating, and receives and show the pressure measured data of at least one pending equipment feedback,
The control information includes at least: operational order, identification information, the file to be updated for pressing survey process;
At least one described pending equipment, wherein there is at least one described pressure survey process in each pending upper side administration, until
A few pressure survey process generates the pressure measured data for executing the operational order.
10. a kind of device for testing pressure characterized by comprising
Receiving module, for receiving the control information of central control equipment transmission, the control information is included at least: operation refers to
Identification information, the local code file for enabling, pressing survey process;
Generation module, at least one pressure survey process for controlling in pending equipment executes the operational order, and generates pressure
Measured data, wherein there is at least one described pressure survey process in the pending upper side administration, and the pressure survey process is surveyed for pressure
Examination;
Sending module, for sending the pressure measured data to the central control equipment, so that the central control equipment is shown
Pressure testing results.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require any one of 1 to 8 described in test pressure method.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 8 described in test pressure method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002819.4A CN109739708B (en) | 2019-01-02 | 2019-01-02 | Method, device and system for testing pressure |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910002819.4A CN109739708B (en) | 2019-01-02 | 2019-01-02 | Method, device and system for testing pressure |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109739708A true CN109739708A (en) | 2019-05-10 |
CN109739708B CN109739708B (en) | 2023-07-21 |
Family
ID=66363119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910002819.4A Active CN109739708B (en) | 2019-01-02 | 2019-01-02 | Method, device and system for testing pressure |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109739708B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489339A (en) * | 2019-07-26 | 2019-11-22 | 北京字节跳动网络技术有限公司 | Client's side pressure observes and predicts table generating method, system, medium and electronic equipment |
CN111026649A (en) * | 2019-11-22 | 2020-04-17 | 紫光云技术有限公司 | Method and device for testing pressure and reliability of cloud product |
CN112115118A (en) * | 2020-08-20 | 2020-12-22 | 北京健康之家科技有限公司 | Database pressure measurement optimization method and device, storage medium and electronic equipment |
CN114567571A (en) * | 2022-03-14 | 2022-05-31 | Oppo广东移动通信有限公司 | Performance test method and device, electronic equipment and computer readable storage medium |
CN114584500A (en) * | 2022-02-25 | 2022-06-03 | 网易(杭州)网络有限公司 | Asynchronous communication testing method and device and electronic equipment |
CN117194155A (en) * | 2023-09-05 | 2023-12-08 | 北京安锐卓越信息技术股份有限公司 | Automatic performance pressure measurement method, device and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6892236B1 (en) * | 2000-03-16 | 2005-05-10 | Microsoft Corporation | System and method of generating computer system performance reports |
CN105487965A (en) * | 2015-12-28 | 2016-04-13 | 北京畅游天下网络技术有限公司 | Universal server pressure testing method and device |
CN106776312A (en) * | 2016-12-12 | 2017-05-31 | 北京蓝海讯通科技股份有限公司 | Method, device, computing device and pressure testing system that cloud pressure testing data is distributed |
CN107015892A (en) * | 2017-03-30 | 2017-08-04 | 腾讯科技(深圳)有限公司 | A kind of method for testing pressure, device and system |
CN107643983A (en) * | 2017-09-22 | 2018-01-30 | 北京蓝海讯通科技股份有限公司 | A kind of test data processing method and system |
CN108959000A (en) * | 2018-06-20 | 2018-12-07 | 深圳市腾讯网络信息技术有限公司 | A kind of server stress test method, system and terminal |
-
2019
- 2019-01-02 CN CN201910002819.4A patent/CN109739708B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6892236B1 (en) * | 2000-03-16 | 2005-05-10 | Microsoft Corporation | System and method of generating computer system performance reports |
CN105487965A (en) * | 2015-12-28 | 2016-04-13 | 北京畅游天下网络技术有限公司 | Universal server pressure testing method and device |
CN106776312A (en) * | 2016-12-12 | 2017-05-31 | 北京蓝海讯通科技股份有限公司 | Method, device, computing device and pressure testing system that cloud pressure testing data is distributed |
CN107015892A (en) * | 2017-03-30 | 2017-08-04 | 腾讯科技(深圳)有限公司 | A kind of method for testing pressure, device and system |
CN107643983A (en) * | 2017-09-22 | 2018-01-30 | 北京蓝海讯通科技股份有限公司 | A kind of test data processing method and system |
CN108959000A (en) * | 2018-06-20 | 2018-12-07 | 深圳市腾讯网络信息技术有限公司 | A kind of server stress test method, system and terminal |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489339A (en) * | 2019-07-26 | 2019-11-22 | 北京字节跳动网络技术有限公司 | Client's side pressure observes and predicts table generating method, system, medium and electronic equipment |
CN110489339B (en) * | 2019-07-26 | 2023-01-03 | 北京字节跳动网络技术有限公司 | Client pressure measurement report generation method, system, medium and electronic device |
CN111026649A (en) * | 2019-11-22 | 2020-04-17 | 紫光云技术有限公司 | Method and device for testing pressure and reliability of cloud product |
CN112115118A (en) * | 2020-08-20 | 2020-12-22 | 北京健康之家科技有限公司 | Database pressure measurement optimization method and device, storage medium and electronic equipment |
CN112115118B (en) * | 2020-08-20 | 2023-09-22 | 北京水滴科技集团有限公司 | Database pressure measurement optimization method and device, storage medium and electronic equipment |
CN114584500A (en) * | 2022-02-25 | 2022-06-03 | 网易(杭州)网络有限公司 | Asynchronous communication testing method and device and electronic equipment |
CN114584500B (en) * | 2022-02-25 | 2024-03-22 | 网易(杭州)网络有限公司 | Asynchronous communication testing method and device and electronic equipment |
CN114567571A (en) * | 2022-03-14 | 2022-05-31 | Oppo广东移动通信有限公司 | Performance test method and device, electronic equipment and computer readable storage medium |
CN114567571B (en) * | 2022-03-14 | 2023-11-10 | Oppo广东移动通信有限公司 | Performance test method, device, electronic equipment and computer readable storage medium |
CN117194155A (en) * | 2023-09-05 | 2023-12-08 | 北京安锐卓越信息技术股份有限公司 | Automatic performance pressure measurement method, device and medium |
Also Published As
Publication number | Publication date |
---|---|
CN109739708B (en) | 2023-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109739708A (en) | Test the methods, devices and systems of pressure | |
US9189374B2 (en) | Automatic test system for distributed comprehensive service and method thereof | |
CN108768791B (en) | Information acquisition configuration management system and method | |
CN105357296B (en) | Elastic caching system under a kind of Docker cloud platforms | |
CN104202375B (en) | The method and system of synchrodata | |
WO2020253079A1 (en) | Jmeter-based distributed performance test method and apparatus, device, and storage medium | |
CN108958927A (en) | Dispositions method, device, computer equipment and the storage medium of container application | |
CN109831318A (en) | A kind of system, method and server obtaining network topology | |
US9154365B1 (en) | Replaying events collected from a client computer | |
WO2014049804A1 (en) | System operation trace method in distributed system | |
CN107688611B (en) | Saltstack-based Redis key value management system and method | |
CN107368369B (en) | Distributed container management method and system | |
CN109120461B (en) | A kind of service feature end-to-end monitoring method, system and device | |
EP2421198B1 (en) | User behavior based mobile broadband user plane traffic generation system and method for real-like measurement generation | |
CN113010392B (en) | Big data platform testing method, device, equipment, storage medium and system | |
EP2486698A2 (en) | Method and system for reconstructing transactions in a communication network | |
CN110138876A (en) | Task deployment method, apparatus, equipment and platform | |
CN106603319A (en) | Fault processing method, management server, and logic server | |
CN106559241A (en) | Using the collection of daily record, sending method, device, system and log server | |
CN104793981B (en) | A kind of online snapshot management method and device of cluster virtual machine | |
CN105812432B (en) | Cloud document processing method and device | |
WO2001041365A1 (en) | Apparatus for simulating communication equipment | |
Wang et al. | Scalable run-time correlation engine for monitoring in a cloud computing environment | |
CN109821235B (en) | Game video recording method, device and server | |
CN109802842A (en) | The generation method and relevant device of applied topology |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |