> I too had similar issues and tried every possible tweak to get this to
> work
> - sometimes it worth other times it did not.
>
> The conclusion: Serving files from uwsgi into nginx is too fragile for
> production use especially for 10GB+ files.
>
> Using the x-accel-redirect with nginx was the only solution that worked -
> it also saves lots of CPU time.
>

It is true that x-accel-redirect is the best approach, but there are cases
where you are forced to serve static files from the backend.

I find a  bit strange you had problems with static file serving, once you
enable offloading the system became very robust (by default uWSGI has very
low timeouts and this is generally the problem that causes "fragility",
while offloading has basically no timeout, except for the lower level
ones).

When serving static files, lot of low-level details come into place (check
the virtualbox problem with sendfile()), or shared filesystem and so on.

The only certain thing, is not serve the static file through your app code
! :)


-- 
Roberto De Ioris
http://unbit.com
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to