Giter Site home page Giter Site logo

Invalid offload() log messages about uwsgi HOT 6 CLOSED

unbit avatar unbit commented on September 27, 2024
Invalid offload() log messages

from uwsgi.

Comments (6)

unbit avatar unbit commented on September 27, 2024

fixed (or better, 'improved') in 1.9

from uwsgi.

prymitive avatar prymitive commented on September 27, 2024

[pid: 16500|app: 0|req: -1/1] 172.16.110.48 () {28 vars in 355 bytes} [Fri Feb 8 21:45:48 2013] GET /bigfile => generated 536870912 bytes in 0 msecs via offload() (HTTP/1.1 200) 2 headers in 92 bytes (0 switches on core 0)

I'm getting proper HTTP status code, but message is logged immediately and shows 0 msecs, shouldn't this be logged by offload thread itself once it finishes sending file?
Not a big issue but request duration is lost in logs this way.

from uwsgi.

prymitive avatar prymitive commented on September 27, 2024

To have proper time reporting for offloaded request, we would have to:
a) move logging to sendfile functions in core/offload.c
b) add callback support to offload function and add log callbacks if requests are offloaded
c) some other/better way

it's very very unimportant for me

from uwsgi.

prymitive avatar prymitive commented on September 27, 2024

I've created new milestone "Future Ideas" to track such feature requests

from uwsgi.

unbit avatar unbit commented on September 27, 2024

This is an interesting problem, as offloading is becaming present in more and more areas. For proxy offloaders (http, uwsgi) the backend node will log normally, so the information is not lost. Response offloaders (cache, and the new 'offload' transformation) refers only to data transfer time (as well as sendfile()), so we need to evaluate if such information is relevant (considering kernel buffering all over the place) to a level needing a new logging category.

from uwsgi.

prymitive avatar prymitive commented on September 27, 2024

I don't care for upload time for static files so let's close it

from uwsgi.

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.