CN106230651A - The pressure testing system of a kind of internet system and method - Google Patents
The pressure testing system of a kind of internet system and method Download PDFInfo
- Publication number
- CN106230651A CN106230651A CN201610545682.3A CN201610545682A CN106230651A CN 106230651 A CN106230651 A CN 106230651A CN 201610545682 A CN201610545682 A CN 201610545682A CN 106230651 A CN106230651 A CN 106230651A
- Authority
- CN
- China
- Prior art keywords
- network request
- main frame
- tested
- mirror
- pressure
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0817—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0888—Throughput
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses the pressure testing system of a kind of internet system, comprising: application system to be tested;The mirror-image system of application system to be tested;Flow collection module, it gathers first main frame network request under the duty of application system to be tested;Flow memory module, the network request that its storage flow collection module gathers;Flow sending module, it reads the network request in flow memory module, and sends this network request to described mirror-image system;Monitoring module, the running status of its monitoring mirror-image system.Correspondingly, the invention also discloses the method for testing pressure of a kind of internet system.System and method disclosed by the invention its be used for testing internet system, during the pressure of the Internet application system of the most large-scale, distributed, multilink, the test result drawn can reflect the real load capacity of system under test (SUT).System and method disclosed by the invention can be used for the Internet insurance business scene.
Description
Technical field
The present invention relates to a kind of pressure testing system and the method for system, the pressure particularly relating to a kind of internet system is surveyed
Test system and method.
Background technology
Different from traditional application system, Internet application system needs the request of carrying and flow to be all magnanimity.Additionally,
Internet application system also can often carry out marketing activity, the short time can be brought a large amount of to Internet application system during activity
Access request.Therefore, before Internet application system carries out marketing activity, it usually needs Internet application system is pressed
Power is tested, to confirm whether the load capacity of Internet application system can bear the flow pressure that marketing activity brings.
Traditional method for testing pressure generally uses the instruments such as jmeter, LoadRunner, the operation principle of this type of instrument
It is by a large amount of request simulated of transmission to Internet application system, then is made by the response condition observing Internet application system
Go out the assessment to Internet application system load capacity.
For simple Internet application system, traditional method for testing pressure disclosure satisfy that basic stress test is wanted
Ask.The request of the simulation used yet with traditional method for testing pressure fict user behavior, large-scale for one
, distributed, the Internet application system of multilink, the request of the simulation that traditional method for testing pressure uses is with real
There is bigger difference between user behavior, therefore use traditional method for testing pressure to draw such Internet application system
Test result can not reflect the real load capacity of system under test (SUT).
Summary of the invention
An object of the present invention is to provide the pressure testing system of a kind of internet system, uses this pressure testing system
Test internet system, during the pressure of the Internet application system of the most large-scale, distributed, multilink, the survey drawn
Test result can reflect the real load capacity of system under test (SUT).
According to above-mentioned purpose, the present invention proposes the pressure testing system of a kind of internet system, comprising:
Application system to be tested, it is deployed on the first main frame;
The mirror-image system of application system to be tested, it is deployed on the second main frame;
Flow collection module, it is arranged on the first main frame, to gather first main frame work in application system to be tested
Make the network request under state;
Flow memory module, it is connected with flow collection module data, and the network gathered to store flow collection module please
Ask;
Flow sending module, itself and flow memory module and the second main frame data cube computation, described flow sending module respectively
Read the network request in flow memory module, and this network request is sent to described mirror-image system;
Monitoring module, the running status of its monitoring mirror-image system.
Heretofore described pressure refers to flowing of access.
The design of the present invention is mainly: in order to test result can reflect the real load capacity of system under test (SUT), needs to use
The network request that can embody real user behavior is tested.It may be further contemplated, use the work of application system to be tested
Network request under state, natural energy embodies real user behavior.Additionally, in order to just not affect application system to be tested
Often work, inventor considers that the mirror-image system additionally disposing an application system to be tested is specifically designed to test.Due to be measured
The mirror-image system of the application system of examination is the mirror image of application system to be tested, on the mirror-image system of application system to be tested
Test result can represent the test result of application system to be tested.
The pressure testing system of internet system of the present invention, it is used for testing internet system, the most large-scale
, the pressure of the Internet application system of distributed, multilink time, gather the first main frame to be measured by flow collection module
Network request under the duty of the application system of examination, the network gathered by flow memory module storage flow collection module
Request, is read the network request of storage, and sends this network request to described mirror-image system, finally by flow sending module
By monitoring module monitoring mirror-image system running status under receiving described network request state, thus realize to be tested
The stress test of the mirror-image system of application system, the test result drawn can reflect the real negative of application system to be tested
Loading capability.Wherein, the running status of the mirror-image system that test result is monitored based on monitoring module describes, and can include runnability
Index.
In the pressure testing system of internet system of the present invention, described system and module can be software system and
Module, it realizes its function by operating on corresponding hardware device.Application system to be tested can be to be deployed in first
A web application on main frame.The copy of the application system that the mirror-image system of application system to be tested is the most to be tested.But
Also being allowed it should be noted that this copy reaches essentially identical in some cases, such as copy is except the most right
Outside outer offer service, remaining is identical.Flow collection module can use the tcpdump program under similar unix environment to realize,
Current similar instrument includes tcpcopy, gor.Flow memory module can realize in the way of data base or system file, its
The storage medium having for storing described network request is needed on the hardware run.The structure of flow sending module is in various volumes
The storehouse that journey language calls the turn correspondence is available.
The pressure testing system of internet system of the present invention can be used for the Internet insurance business scene.
Further, in pressure testing system of the present invention, described flow collection module is configured to first main
All-network request on machine is monitored.
In such scheme, instrument gor can be used to construct flow collection module, to realize monitor function.
Further, in pressure testing system of the present invention, the network request of storage in described flow memory module
It is configured to data base.
Further, in pressure testing system of the present invention, the network request of storage in described flow memory module
It is configured to system file.
Further, in pressure testing system of the present invention, described flow sending module read each
Network request all sends for several times to described mirror-image system.
Number in such scheme, when pressure can be made to increase to single by sending each network request of reading for several times
Times, wherein the multiple of several times is identical with number of times for several times.Additionally, transmission speed can also on-demand adjust, to meet different surveys
Examination demand.
It is a further object of the present invention to provide the method for testing pressure of a kind of internet system, use this method for testing pressure
Test internet system, during the pressure of the Internet application system of the most large-scale, distributed, multilink, the survey drawn
Test result can reflect the real load capacity of system under test (SUT).
Based on foregoing invention purpose, present invention also offers the method for testing pressure of a kind of internet system, it includes step
Rapid:
Application system to be tested is deployed on the first main frame;
The mirror-image system of application system to be tested is deployed on the second main frame;
Gather and store first main frame network request under the duty of application system to be tested;
Read the network request of storage, and this network request is sent to described mirror-image system;
Monitoring mirror-image system running status under receiving described network request state.
The method for testing pressure of internet system of the present invention, it is used for testing internet system, the most large-scale
, the pressure of the Internet application system of distributed, multilink time, realized application system to be tested by above-mentioned steps
The stress test of mirror-image system, the test result drawn can reflect the real load capacity of application system to be tested.
Wherein, the running status of test result mirror-image system based on monitoring describes, and can include running performance index.
Further, method for testing pressure of the present invention also includes asking to carry out to the all-network on the first main frame
Monitor.
Further, in method for testing pressure of the present invention, the network request of storage is configured to data base.
Further, in method for testing pressure of the present invention, the network request of storage is configured to system file.
Further, in method for testing pressure of the present invention, each network request being read is sent number
Secondary to described mirror-image system.
Number in such scheme, when pressure can be made to increase to single by sending each network request of reading for several times
Times, wherein the multiple of several times is identical with number of times for several times.Additionally, transmission speed can also on-demand adjust, to meet different surveys
Examination demand.
The pressure testing system of internet system of the present invention, it compared with prior art has the advantage that
(1) network request that stress test is used is the real network request from user, and the network of non-analog
Asking, it embodies real user behavior, and the test result therefore obtained is the most accurate.
(2) the normal use of application system to be tested is not affected.
(3) can be not only used for one-of-a-kind system, it is also possible to for distributed system.
(4) test pressure is adjusted very convenient.
(5) preparation is simple, disposes the most reusable.
The method for testing pressure of internet system of the present invention, it has above-mentioned advantage equally.
Accompanying drawing explanation
Fig. 1 is the structural representation under a kind of embodiment of the pressure testing system of internet system of the present invention
Figure.
Fig. 2 is that the pressure testing system of internet system of the present invention workflow under a kind of embodiment is shown
It is intended to.
Fig. 3 is the flow process signal under a kind of embodiment of the method for testing pressure of internet system of the present invention
Figure.
Detailed description of the invention
Carry out the pressure to internet system of the present invention below in conjunction with Figure of description and specific embodiment to survey
Test system and method describe in detail further, but this detailed description is not construed as limiting the invention.
The pressure testing system of the internet system in implementation below and module can be software system and module, its
Its function is realized on corresponding hardware device by operating in.Implementation below can be used for the Internet insurance business scene.
Fig. 1 shows the pressure testing system of internet system of the present invention structure under a kind of embodiment.
As it is shown in figure 1, the pressure testing system of this internet system includes: application system 1 to be tested, it is deployed in the first main frame
On host-1;The mirror-image system 2 of application system 1 to be tested, it is deployed on the second main frame host-2;Flow collection module 3,
It is arranged on the first main frame host-1, to gather the first main frame host-1 under the duty of application system 1 to be tested
Network request A;Flow memory module 4, itself and flow collection module 3 data cube computation, to store what flow collection module 3 gathered
Network request A;Flow sending module 5, itself and flow memory module 4 and the second main frame host-2 data cube computation respectively, flow is sent out
Send module 5 to read the network request A in flow memory module 4, and this network request A is sent to mirror-image system 2;Monitoring module
6, it is deployed on the second main frame host-2, the running status of monitoring mirror-image system 2.
Under some embodiments, flow collection module 3 is configured to ask the all-network on the first main frame host-1
A is asked to monitor.
Under some embodiments, in flow memory module 4, the network request A of storage is configured to data base.
Under some embodiments, in flow memory module 4, the network request A of storage is configured to system file.
Under some embodiments, each network request A that flow sending module 5 is read sends for several times to mirror
As system 2.Additionally, transmission speed can also on-demand adjust, to meet different testing requirements.
Additionally, application system 1 to be tested can be a web application.The mirror-image system 2 of application system 1 to be tested
The copy of application system 1 the most to be tested, the application system 1 (can be the code of a web application) that this is to be tested is complete
It is deployed on the second main frame host-2 wholely, the deployment of mirror-image system 2 can be completed.Flow collection module 3 can use similar
Tcpdump program under unix environment realizes, and current similar instrument includes tcpcopy, gor, and wherein, using gor to realize can
To monitor and to replicate the network request A on the first main frame host-1.Flow memory module 4 can be with data base or system file
Mode realizes, and its hardware run needs the storage medium having for storing described network request A.Flow sending module 5
Structure have in various programming languages correspondence storehouse available, specifically, it is possible to use Java language
Httpclient storehouse.
Fig. 2 shows the pressure testing system of internet system of the present invention workflow under a kind of embodiment
Journey.In this system, gor is used to construct flow collection module 3;Flow memory module 4 realizes in the way of data base;Use Java
The httpclient storehouse structure flow sending module 5 of language.As in figure 2 it is shown, the work of the pressure testing system of this internet system
Step is included as flow process:
Step 110: monitor, replicate and keep in the first main frame host-1 in application to be tested by flow collection module 3
Network request A under the duty of system 1.Now this network request A is unaffected, still by application system 1 to be tested
Service is provided.
Step 120: store the network request A that flow collection module 3 gathers by flow memory module 4.
Step 130: read the network request A of storage by flow sending module 5, and this network request A is sent to mirror
As system 2.Wherein, each network request A that flow sending module 5 is read sends 10 times to mirror-image system 2.
Step 140: monitor the mirror-image system 2 running status under receiving network request A condition by monitoring module 6, obtain
Taking its running performance index, these performance indications are application system 1 to be tested when by 10 times of current accessed flows
Performance indications.
Fig. 3 shows the method for testing pressure of internet system of the present invention flow process under a kind of embodiment.
As it is shown on figure 3, the method for testing pressure of this internet system includes step: application system to be tested is deployed in the first main frame
On;The mirror-image system of application system to be tested is deployed on the second main frame;Gathering and store the first main frame should to be tested
With the network request under the duty of system;Read the network request of storage, and this network request is sent to described mirror image
System;Monitoring mirror-image system running status under receiving described network request state.
Under some embodiments, also include asking to monitor to the all-network on the first main frame.
Under some embodiments, the network request of storage is configured to data base.
Under some embodiments, the network request of storage is configured to system file.
Under some embodiments, each network request being read is sent for several times to described mirror-image system.
It should be noted that the listed above specific embodiment being only the present invention, it is clear that the invention is not restricted to above reality
Execute example, have the similar change of many therewith.If those skilled in the art directly derives from present disclosure or
The all deformation associated, all should belong to protection scope of the present invention.
Claims (10)
1. the pressure testing system of an internet system, it is characterised in that including:
Application system to be tested, it is deployed on the first main frame;
The mirror-image system of application system to be tested, it is deployed on the second main frame;
Flow collection module, it is arranged on the first main frame, to gather first main frame work shape in application system to be tested
Network request under state;
Flow memory module, it is connected with flow collection module data, to store the network request that flow collection module gathers;
Flow sending module, itself and flow memory module and the second main frame data cube computation respectively, described flow sending module reads
Network request in flow memory module, and this network request is sent to described mirror-image system;
Monitoring module, the running status of its monitoring mirror-image system.
2. pressure testing system as claimed in claim 1, it is characterised in that described flow collection module is configured to first
All-network request on main frame is monitored.
3. pressure testing system as claimed in claim 1, it is characterised in that in described flow memory module, the network of storage please
Ask and be configured to data base.
4. pressure testing system as claimed in claim 1, it is characterised in that in described flow memory module, the network of storage please
Ask and be configured to system file.
5. pressure testing system as claimed in claim 1, it is characterised in that it is each that described flow sending module is read
Individual network request all sends for several times to described mirror-image system.
6. the method for testing pressure of an internet system, it is characterised in that include step:
Application system to be tested is deployed on the first main frame;
The mirror-image system of application system to be tested is deployed on the second main frame;
Gather and store first main frame network request under the duty of application system to be tested;
Read the network request of storage, and this network request is sent to described mirror-image system;
Monitoring mirror-image system running status under receiving described network request state.
7. method for testing pressure as claimed in claim 6, it is characterised in that also including please to the all-network on the first main frame
Ask and monitor.
8. method for testing pressure as claimed in claim 6, it is characterised in that the network request of storage is configured to data base.
9. method for testing pressure as claimed in claim 6, it is characterised in that the network request of storage is configured to system literary composition
Part.
10. method for testing pressure as claimed in claim 6, it is characterised in that each network request being read is sent out
Send for several times to described mirror-image system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610545682.3A CN106230651A (en) | 2016-07-12 | 2016-07-12 | The pressure testing system of a kind of internet system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610545682.3A CN106230651A (en) | 2016-07-12 | 2016-07-12 | The pressure testing system of a kind of internet system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106230651A true CN106230651A (en) | 2016-12-14 |
Family
ID=57520443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610545682.3A Pending CN106230651A (en) | 2016-07-12 | 2016-07-12 | The pressure testing system of a kind of internet system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106230651A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254904A (en) * | 2018-08-31 | 2019-01-22 | 阿里巴巴集团控股有限公司 | A kind of database pressure surveys method, apparatus and electronic equipment |
CN109828912A (en) * | 2018-12-26 | 2019-05-31 | 同盾控股有限公司 | A kind of software method for testing pressure and device |
CN109903175A (en) * | 2019-03-26 | 2019-06-18 | 众安在线财产保险股份有限公司 | A kind of Insurance core system monitor supervision platform |
CN110620702A (en) * | 2019-09-19 | 2019-12-27 | 聚好看科技股份有限公司 | Pressure detection method, device and system for server |
CN110865913A (en) * | 2019-11-05 | 2020-03-06 | 深圳前海微众银行股份有限公司 | Pressure testing method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063354A (en) * | 2009-11-18 | 2011-05-18 | 英业达股份有限公司 | Pressure test method of server |
CN103916283A (en) * | 2012-12-31 | 2014-07-09 | 北京新媒传信科技有限公司 | Server pressure test system and method |
-
2016
- 2016-07-12 CN CN201610545682.3A patent/CN106230651A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102063354A (en) * | 2009-11-18 | 2011-05-18 | 英业达股份有限公司 | Pressure test method of server |
CN103916283A (en) * | 2012-12-31 | 2014-07-09 | 北京新媒传信科技有限公司 | Server pressure test system and method |
Non-Patent Citations (2)
Title |
---|
优雅先生: "《业务系统压测实践建议》", 《HTTPS://MY.OSCHINA.NET/FEICHEXIA/BLOG/477523》 * |
送人玫瑰手留余香: "《使用tcpcopy导入线上流量进行功能和压力测试》", 《HTTPS://BLOG.CSDN.NET/H348592532/ARTICLE/DETAILS/50547207》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109254904A (en) * | 2018-08-31 | 2019-01-22 | 阿里巴巴集团控股有限公司 | A kind of database pressure surveys method, apparatus and electronic equipment |
CN109828912A (en) * | 2018-12-26 | 2019-05-31 | 同盾控股有限公司 | A kind of software method for testing pressure and device |
CN109903175A (en) * | 2019-03-26 | 2019-06-18 | 众安在线财产保险股份有限公司 | A kind of Insurance core system monitor supervision platform |
CN110620702A (en) * | 2019-09-19 | 2019-12-27 | 聚好看科技股份有限公司 | Pressure detection method, device and system for server |
CN110865913A (en) * | 2019-11-05 | 2020-03-06 | 深圳前海微众银行股份有限公司 | Pressure testing method and device |
CN110865913B (en) * | 2019-11-05 | 2024-05-03 | 深圳前海微众银行股份有限公司 | Pressure testing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106230651A (en) | The pressure testing system of a kind of internet system and method | |
CN111124850A (en) | MQTT server performance testing method, system, computer equipment and storage medium | |
CN108959059B (en) | Test method and test platform | |
CN106776337A (en) | Performance analysis method and device and electronic equipment | |
CN106021045B (en) | The test method of server hard disc IO performance under a kind of Linux system | |
CN109726128A (en) | A kind of method for generating test case, device and server | |
CN105450476B (en) | A kind of regression test system and test method | |
CN107133174A (en) | Test case code automatically generating device and method | |
CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
CN106201878A (en) | The execution method and apparatus of test program | |
CN106254172A (en) | Heterogeneous applications collecting method and device | |
CN106506269B (en) | It executes the method for test assignment, system, calculate equipment and test macro | |
CN106815142A (en) | A kind of method for testing software and system | |
CN109600280A (en) | Pressure testing system, method, apparatus and computer readable storage medium | |
CN109522181A (en) | A kind of performance test methods of distributed memory system, device and equipment | |
US8949793B1 (en) | Test bed design from customer system configurations using machine learning techniques | |
CN110532191A (en) | A kind of method for testing pressure, system and cluster | |
CN106681867A (en) | Testing method and device | |
CN102014163B (en) | Cloud storage test method and system based on transaction driving | |
CN105975603A (en) | Database performance test method and device | |
WO2015084140A1 (en) | A system and method for emulating multiple independent wireless client devices in the cloud | |
CN109407655A (en) | A kind of method and device for debugging chip | |
CN107741909A (en) | A kind of automated testing method and system for distributed block storage | |
CN104735063B (en) | A kind of safe evaluating method for cloud infrastructure | |
RU2532714C2 (en) | Method of acquiring data when evaluating network resources and apparatus therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161214 |