K
K
kkoshakk2016-08-08 10:34:18
Nginx
kkoshakk, 2016-08-08 10:34:18

What would you recommend for buffer size for buffered logging?

Highly loaded server, 32 GB memory
og_format compression '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
access_log /var/log/nginx-access.log compression gzip buffer=????

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Bezymyannikov, 2016-08-09
@kkoshakk

It depends on the speed of filling the log. If at maximum load you have 100 kilobytes of logs per second, then set 100-300.
Do not rape the hard drive.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question