-
Hello, Ive used this image in the past, and decided to re-visit it for a new task. I am attempting to create an interface where images are uploaded via a I have tested the implementation with a local flask server via As soon as I try to use this image, or the I believe the issue stems from buffering file contents somewhere between nginx and uwsgi, as I see I have not attempted to test concurrent requests yet, as it is struggling to handle a single one already. I have tried various custom configurations for various parameters from http://nginx.org/en/docs/http/ngx_http_uwsgi_module.html, adding with The flask endpoint is designed as follows:
And I am testing by sending a request to the endpoint as follows:
My Dockerfile is as follows:
I wonder if it is related to how I am handling the image data? The images are typically around 100-150KB in size. Any guidance to configuring this (or any other) image properly to be able to handle concurrent requests of this nature would be great. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Id just like to add that I cant seem to disable the buffers with my custom configuration settings:
I am not sure if they are being over-written somewhere? Logs from the container startup:
|
Beta Was this translation helpful? Give feedback.
-
I wouldn't know the best way to handle it. And unfortunately I'm not using Flask nor this Docker image for a long while, so I wouldn't have a chance to try and optimize configs for your use case. I'm biased, but I would try to use FastAPI instead 😅 I think handling Uvicorn alone might be much simpler than this setup with several components. 🤓 |
Beta Was this translation helpful? Give feedback.
I wouldn't know the best way to handle it. And unfortunately I'm not using Flask nor this Docker image for a long while, so I wouldn't have a chance to try and optimize configs for your use case.
I'm biased, but I would try to use FastAPI instead 😅 I think handling Uvicorn alone might be much simpler than this setup with several components. 🤓