Hi my nginx truncate files than 1 G
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,228356,228356#msg-228356
Hi my nginx truncate files than 1 G
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,228356,228356#msg-228356
-------- Original-Nachricht --------
Datum: Sat, 7 Jul 2012 08:49:02 -0400 (EDT)
Von: “Adrian Janeczek” [email protected]
An: [email protected]
Betreff: Nginx truncate files than 1G
Hi my nginx truncate files than 1 G
Wow! So much information at once? I am not sure if we here can
handle that much information!
Would it be possible for you to provide at least some minimal
information like what version of nginx you are using, what arch, what
exactly you are trying to do, nginx configuration, etc…
Hello!
On Sat, Jul 07, 2012 at 08:49:02AM -0400, Adrian Janeczek wrote:
Hi my nginx truncate files than 1 G
Most likely it’s due to your backend closing connection due to
timeout, as nginx stop receiving response for a while when it hits
proxy_max_temp_file_size, which is 1G by default.
Possible solutions are:
Use lower proxy_max_temp_file_size to avoid timeouts on
backends. You may even want to disable disk buffering completely,
by using “proxy_max_temp_file_size 0;”.
Use bigger proxy_max_temp_file_size to make sure responses are
always buffered by nginx.
Use bigger timeouts on your backend.
See here for more details:
http://nginx.org/r/proxy_max_temp_file_size
Maxim D.
On 08.07.2012 12:24, Maxim D. wrote:
by using “proxy_max_temp_file_size 0;”.
Use bigger proxy_max_temp_file_size to make sure responses are
always buffered by nginx.Use bigger timeouts on your backend.
See here for more details:
send static content directly by nginx, without backend server at all
(proxy to backend only requests to dynamic content: *.php, etc)
or use X-Accel-Redirect at backend to avoid full transfer of file
(http://kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/)
–
Best regards,
Gena
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs