[PATCH] Stop write log after have a problems for write(3).
    Anton Yuzhaninov 
    citrin at citrin.ru
       
    Fri Apr 17 19:48:16 MSD 2009
    
    
  
Kirill A. Korinskiy wrote:
> From: Kirill A. Korinskiy <catap at catap.ru>
> 
> Now we have a some issue — the I/O is a sync operation and we blocking
> every time to try write to full partition. This patch stop write a log
> after first problem.
В error_log обычно пишется очень мало и на производительность это влиять не должно.
А для access_log эта проблема уже решается:
http/modules/ngx_http_log_module.c:
       if (ngx_time() == log[l].disk_full_time) {
             /*
              * on FreeBSD writing to a full filesystem with enabled softupdates
              * may block process for much longer time than writing to non-full
              * filesystem, so we skip writing to a log for one second
              */
             continue;
         }
-- 
  Anton Yuzhaninov
    
    
More information about the nginx-ru
mailing list