Code Monkey home page Code Monkey logo

Comments (5)

sevein avatar sevein commented on August 24, 2024

Far from ideal though since sendfile() is what really makes it performant as the read and write happens within the kernel. Can you share the errors that you experienced? Hopefully we can solve them?

from ansible-archivematica-src.

hakamine avatar hakamine commented on August 24, 2024

The error is here:
https://projects.artefactual.com/issues/9874#note-5

from ansible-archivematica-src.

sevein avatar sevein commented on August 24, 2024

Can you reproduce if you download directly from gunicorn? i.e. bypass nginx proxy - I'm asking because the error seems to happen where sendfile is trying to write to a socket, which should be the one between gunicorn and Nginx, and it seems that Nginx is closing the socket too early.

from ansible-archivematica-src.

sevein avatar sevein commented on August 24, 2024

New environment variables AM_GUNICORN_SENDFILE (in qa/1.x) and SS_GUNICORN_SENDFILE (in qa/0.x) should do this, e.g.:

AM_GUNICORN_SENDFILE=false
SS_GUNICORN_SENDFILE=true

This is the code that parses the value of the environment string, in case you're wondering how that happens: https://github.com/benoitc/gunicorn/blob/1edf8fcff5cf19e1580a927b10acdedbda2152a0/gunicorn/config.py#L196-L205.

from ansible-archivematica-src.

sevein avatar sevein commented on August 24, 2024

See also files dashboard.gunicorn-config.py and storage-service.gunicorn-config.py. These are the Gunicorn configuration files that we bundle where AM_GUNICORN_SENDFILE and SS_GUNICORN_SENDFILE are looked up.

from ansible-archivematica-src.

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.