Giter Site home page Giter Site logo

Comments (7)

vozlt avatar vozlt commented on May 18, 2024

Thanks for good suggestion.
There are many similar requests like #43.
I have a plan to add the feature later but I'm a little tied up now.

from nginx-module-vts.

nedmax avatar nedmax commented on May 18, 2024

Ok @vozlt, no problem. Thanks.
We could close this one and keep with #43. Choose what works best for you.

from nginx-module-vts.

pavelnemirovsky avatar pavelnemirovsky commented on May 18, 2024

IMHO there is a good approach implemented here https://github.com/yandex-sysmon/nginx-lua-stats

from nginx-module-vts.

vozlt avatar vozlt commented on May 18, 2024

I added that feature just now.
Please test...
Latest commit: 60aad47

from nginx-module-vts.

linbo avatar linbo commented on May 18, 2024

@vozlt I check the code, looks it will average processing time for last 64 requests, right?

from nginx-module-vts.

vozlt avatar vozlt commented on May 18, 2024

By default, It use the 63(NGX_HTTP_VHOST_TRAFFIC_STATUS_DEFAULT_QUEUE_LEN - 1) of recent values to compute but It can be smaller than 63 by the period parameter in vhost_traffic_status_average_method.
It is a static buffer size.
So If you want to change it, you must change the below file.

$ vi src/ngx_http_vhost_traffic_status_node.h

  9 
 10 #define NGX_HTTP_VHOST_TRAFFIC_STATUS_DEFAULT_QUEUE_LEN  ...
 11 

Please see the directive vhost_traffic_status_average_method if you want to change the average formula.

from nginx-module-vts.

linbo avatar linbo commented on May 18, 2024

@vozlt Thanks for the help.

from nginx-module-vts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.