ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Stop write log after have a problems for write(3).



Kirill A. Korinskiy wrote:
From: Kirill A. Korinskiy <catap@xxxxxxxx>

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



 




Copyright © Lexa Software, 1996-2009.