Foreword
Pressure measurement is too difficult? LAN server network can not determine the pressure index? Unable to produce a very large amount of concurrency? Yun performance is too expensive?
Maybe we can put together a variety of simple tools to stress test!
ready
https://cloud.tencent.com/product/scf
https://cloud.tencent.com/product/lm
Pressure measuring cloud background
Conventional pressure measurement tools, all requests from local, go local area network that could cause actual results requested not true, it is an attempt to introduce cloud performance pressure measuring tool (expensive).
Pressure measuring tool
Tencent wetest + SCF + jmeter
Pressure measurement principle
Jmeter call by using local SCF trigger API gateway, to achieve pressure from the cloud, the performance parameters of the collection is used wetest.
Pressure measurement strategy
The 1 / 2,4 / 5,9 / 10 wetest then gradually increasing pressure ratio SCF / SCF mixed pressure to achieve the same time using a small amount wetest high concurrent performance testing is completed.
Pressure measuring step
- Create a batch SCF function through the interface, the main function for the service request interface
Add Jmeter concurrent requests, path request as a trigger, and edit concurrency
Note: If a greater amount of concurrency, concurrent requests a recommendation jmeter total control SCF, then the call through the master control other SCF SCF
- Edit wetest test url (SCF function interface consistent with the content), and configure monitoring options
While performing wetest script, script execution jMeter
Pressure test report
wetest will after the pressure test, automatic reports
Preliminary Conclusions
- Use SCF put pressure, a large consumption of resources (SCF currently free 2019/04/09)
Use SCF + wetest pressure mixing effect is almost the same and only using wetest