K
K
kkoshakk2016-08-07 02:49:41
ubuntu
kkoshakk, 2016-08-07 02:49:41

How does buffered logging affect?

Here is the configuration:
log_format compression '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
access_log /spool/logs/nginx-access.log compression gzip buffer=32k;
Should I use buffered logging with compression, or will it greatly affect performance? What is the best buffer size?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rou1997, 2016-08-07
@kkoshakk

It is worth it if there is not enough space, the buffer size is better for performance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question