<div dir="ltr"><div><div>Anton,<br><br></div><div>I already had the same issue logging to NFS, but I'm curious about why nginx hang in some nfs failures. Log phase is the last, if there is no post action, so why nginx stop responding in some NFS failures? Do you think that I can ease the situation tunning nfs client config, such as timeout and retrans ?<br>
<br></div><div>tks<br></div><div><br></div><br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 11, 2014 at 3:33 PM, David Birdsong <span dir="ltr"><<a href="mailto:david.birdsong@gmail.com" target="_blank">david.birdsong@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="">On Tue, Feb 11, 2014 at 1:30 AM, Anton Yuzhaninov <span dir="ltr"><<a href="mailto:citrin@citrin.ru" target="_blank">citrin@citrin.ru</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>On 02/07/14 20:28, Jader H. Silva wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
It seems that when some processes are running in the nfs server, the share won't<br>
allow writing for some time and I noticed all nginx workers in status D and not<br>
processing requests.<br>
</blockquote>
<br></div>
I general it is a bad idea to write logs over NFS instead local HDD.<br>
<br>
If you need central log store across many servers:<br>
- write logs locally<br>
- rotate as often as need (SIGUSR1)<br>
- copy logs to cental log server (rsync is handy for this, but other methods are possible)</blockquote><div><br></div></div><div>yeah, try out: <a href="http://hekad.readthedocs.org/" target="_blank">http://hekad.readthedocs.org/</a></div>
<div>

<br></div><div>it's like syslog but can write to pretty much any backend store.</div><div class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Are all access.log writes blocking?<br>
</blockquote>
<br></div>
yes, blocking<div><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
If my nfs server shutdown in an unexpected<br>
way, will nginx stop proxying requests to the backend or responses to the client?<br>
</blockquote>
<br></div>
yes, will stop<br>
<br>
______________________________<u></u>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/<u></u>mailman/listinfo/nginx</a><br>
</blockquote></div></div><br></div></div>
<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><br></blockquote></div><br></div>