Indeed, the high load is caused by php-fpm. I was wondering if there was any alternative config to keep fpm from spiking (like, any built-in helper to pass the final location without any plugin…).<div><br></div><div>I will look into the compiled module. I'm not very comfortable with compiling it on the cluster of servers which were previously using dotdeb, but it's better than nothing (uh, tips to keep the debian specific structure when compiling?).</div>

<div><br></div><div>Thanks for pointing me out!</div><div><br></div><div>-Adrian<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Cliff Wells</b> <span dir="ltr"><<a href="mailto:cliff@develix.com">cliff@develix.com</a>></span><br>

Date: Wed, Feb 29, 2012 at 9:35 PM<br>Subject: Re: Uploads with nginx 1.0.12<br>To: <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br><br><br><div class="im">On Wed, 2012-02-29 at 20:59 +0100, Adrián Navarro wrote:<br>


> Hello,<br>
><br>
><br>
> I am using file uploads with nginx 1.0.12, php5-fpm and php 5.3.10.<br>
><br>
><br>
> Currently, big file uploads (~1300 MB) do take about 30 seconds to<br>
> process after the file is being uploaded, and the CPU load spikes. Is<br>
> there a way to prevent that?<br>
<br>
</div>I assume that since the spike occurs *after* the upload, the culprit is<br>
PHP, not Nginx?<br>
<div class="im"><br>
> I am using a very simple script (just a var_dump($_FILES), nothing<br>
> more,<br>
<br>
</div>Assuming the spike is caused by PHP, you might take a look at the<br>
nginx_upload module, which will handle the entire upload process for<br>
you, and just hand your PHP script a path to the uploaded file (along<br>
with a few other parameters).<br>
<br>
Here's some references:<br>
<br>
<a href="http://blog.martinfjordvald.com/2010/08/file-uploading-with-php-and-nginx/" target="_blank">http://blog.martinfjordvald.com/2010/08/file-uploading-with-php-and-nginx/</a><br>
<br>
<a href="http://brainspl.at/articles/2008/07/20/nginx-upload-module" target="_blank">http://brainspl.at/articles/2008/07/20/nginx-upload-module</a><br>
<br>
<a href="https://github.com/vkholodkov/nginx-upload-module/tree/2.2" target="_blank">https://github.com/vkholodkov/nginx-upload-module/tree/2.2</a><br>
<br>
<br>
Regards,<br>
Cliff<br>
<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a></div><br><br clear="all"><div><br></div>-- <br>Adrián Navarro / (+34) 608 831 094<br>
</div>