Pressure measurement Notes


Statement here just for RDthe simple, to find out the self-service performance-related pressure measurement notes! ! ! Regular pressure measurement please QAconsult 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. l The a d = live jump of Enter Journey number C P The nuclear number load = \ frac {number of active processes} {CPU core number}
  • 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

  1. First pressure sensing environment is determined to be valid;
  2. When measuring pressure, little by little pressure
    1. 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 10000play, Wan increments
    2. 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
  3. 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

img

  1. Pressure measured normal to the required pressure CPU资源使用率>=80%, recording the number of requests related to, concurrent, QPS, data such as sound level
  2. 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

  1. download
  2. Start: The route into the installation package, run the executable file, wait a moment will have UIinterface pops up
cd path_to_apache-jmeter-5.1.1/loo
sh bin/jmeter
  1. According to the tutorial set parameters.

And the number of concurrent requests is provided.
img

If the domain name in addition there are other ip and port, wrote paththere
img

Every time the pressure is cleared completely remember it
img

Published 120 original articles · won praise 35 · views 170 000 +

Guess you like

Origin blog.csdn.net/u012328476/article/details/103038841