Article Directory
Statement here just for
RD
the simple, to find out the self-service performance-related pressure measurement notes! ! ! Regular pressure measurement please QA
consult the students.
Common Terms
- QPS: requests per second, but also throughput.
- Memory Usage
- CPU usage: for compute-intensive projects
- Average response time: RT
- Error rate
- LOAD value: a measure of how busy the CPU.
- Concurrent
- Number of cycles: Effect of pressure measurement time. General performance pressure measured 10 to 20 minutes. Stability of pressure measured at least 1 to 2 hours
Process and notes
- First pressure sensing environment is determined to be valid;
- When measuring pressure, little by little pressure
- Requests for standard real amount requested units of the order. For example, the actual request is ten million, then the pressure to measure the number of requests to
10000
play, Wan increments - Concurrent from X to Y increments beginning. Usually the first concurrent press 1 to see if the reference response time , and general load failure zone response time is 4 times the standard response time
- Requests for standard real amount requested units of the order. For example, the actual request is ten million, then the pressure to measure the number of requests to
- Observe the data system
QPS
(RT
,CPU使用率
,内存使用率
, ,错误率
etc.)- If you increase the number of concurrent, CPU resource utilization is very low and almost no change , indicating that it has to re-load area in the figure below, where required under investigation bottlenecks, such as connection configuration, the number of threads
- Pressure measured normal to the required pressure
CPU资源使用率>=80%
, recording the number of requests related to, concurrent, QPS, data such as sound level - Pressure measurement process, once the system problems, regardless of the time observed indicators have had no problems, we must immediately stop pressure measurement, continuous follow-up observation, identification and measurement independent of pressure after the re-; and if the measured pressure related, need clear problems, solve the problem again
Common tools
ab command
ab command batch scripts pressure measurement
Jmeter
- download
- Start: The route into the installation package, run the executable file, wait a moment will have
UI
interface pops up
cd path_to_apache-jmeter-5.1.1/loo
sh bin/jmeter
- According to the tutorial set parameters.
And the number of concurrent requests is provided.
If the domain name in addition there are other ip and port, wrote path
there
Every time the pressure is cleared completely remember it