zhendongcmss edited a comment on issue #5146:
URL: https://github.com/apache/apisix/issues/5146#issuecomment-927609958
I Investigation:
1. The value is negative only when **type="apisix",** so
`gen_arr("apisix", vars.status, method_id, route_id, service_id, consumer_name,
balancer_ip)) ` has bug. from the code `apisix_latency = apisix_latency -
upstream_latency`, I don't sure `apisix_latency` is large then
`upstream_latency`
2. I found that some nodes' time is inaccurate and doesn't configrate NTP.
so I think that `local latency = (ngx.now() - ngx.req.start_time()) * 1000`
ngx.now() get the system local time ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]