vozlt / nginx-module-vts

Nginx virtual host traffic status module
BSD 2-Clause "Simplified" License
3.17k stars 456 forks source link

websocket have an effect on average response time #253

Open suningzh opened 1 year ago

suningzh commented 1 year ago

Let us suppose that Nginx processes 10000 http requests in 1s,every request's reponse time maybe 5ms, just at this time a websocket client close the connection,nginx log this websocket handshake request,this request's reponse time maybe 30mins or more

when we use vts module, because of this websocket request, the average response time is not very perfect should we calculate the websocket request response time ?

u5surf commented 1 year ago

@suningzh Thanks reporting and sorry for late. You said that the response time which is calculated by this module might record 2000 second for 10k request per sec. If it is true, I consider that it seems not to be that response time what we want. Can you share your nginx.conf and nginx or vts version which reproduce this behavior. I'd like to know what is happened and what the response time does indicate.