Il giorno 25/nov/2010, alle ore 15.15, franck bret ha scritto:

> Hi there,
> 
> I've just setup, uwsgi behind cherokee for my django project on live server, 
> so i'm doing some kind of crash test ;-)
> Through django admin interface I tried to upload a 150 mb zip file, it goes 
> to 5% and then i can see in the log : 
> 
> *** HARAKIRI ON WORKER 1 (pid: 24580) ***
> HARAKIRI: --- uWSGI worker 1 (pid: 24580) WAS managing request 
> /fr/admin/photologue/galleryupload/add/ since Thu Nov 25 14:48:26 2010 ---
> DAMN ! process 24580 died :( trying respawn ...
> Respawned uWSGI worker (new pid: 24698)
> *** HARAKIRI ON WORKER 1 (pid: 24698) ***
> HARAKIRI: --- uWSGI worker 1 (pid: 24698) WAS managing request 
> /fr/admin/photologue/galleryupload/add/ since Thu Nov 25 15:04:05 2010 ---
> DAMN ! process 24698 died :( trying respawn ...
> Respawned uWSGI worker (new pid: 24882)
> 
> The uwsgi command running is :
> /usr/bin/uwsgi -s 127.0.0.1:32944 -t 10 -M -p 1 -C  -x 
> /home/administrator/sandbox/projects/crashtest/uwsgi_production.xml -H 
> /home/administrator/.virtualenvs/django.test.0.0.4
> 
> What do I need to adjust in order to be able to upload such kind of filesize ?
> 
> 

Cherokee streams upload directly to uWSGI workers, so if you use harakiri you 
have to exclude the uploading time from its 
check.

You can add the 

--post-buffering 4096

option to avoid control on uploads or simply disable harakiri.

--
Roberto De Ioris
http://unbit.it

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

Reply via email to