Pressure measurement

Before pressure testing, there are several options that need to be looked at through ab-help

Options are:
-n requests Number of requests to be executed
-c concurrency Concurrent number
-s timeout response time

implement

ab -n 1000 -c 100 -s 1 http://127.0.0.1:1080/event?config_name=mysql_config
# A total of 100 requests were executed concurrently with a timeout of 1 s

Result analysis

After executing the above test commands, the following results are obtained, focusing on the following indicators:

Failed requests: Failed requests

Requests per second: also known as QPS, query rate per second, which is an average.

Time per request: The time it takes to complete a request

Transfer rate: Network transmission speed. For large file request testing, this value can easily become the bottleneck of the system. To determine whether the value is a bottleneck, we need to know the network situation between the client and the server under test, including network bandwidth and network card speed.