Want to count a certain interface such as flash sales based on nginx logsMaximum number of concurrencies
The nginx log format is configured like this
log_format: $remote_addr [$time_local] "$request" $status $upstream_response_time $body_bytes_sent
Nginx official documentation defines time_local
like this
$time_local
local time in the Common Log Format
Now I am not sure whether this is the time when the request comes in or the time when this log is recorded after the request is processed. Only the former can count the maximum number of concurrency based on this time
摘自:http://serverfault.com/questi...