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
|