You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/05/10 11:47:01 UTC

[GitHub] [incubator-apisix] spacewander opened a new issue #1567: the buffer for access log is too large

spacewander opened a new issue #1567:
URL: https://github.com/apache/incubator-apisix/issues/1567


   Currently we configure the buffer of the access log like this:
   
   ```
       access_log {* http.access_log *} main buffer=32768 flush=3;
   ```
   
   According to Nginx's doc:
   > The buffer size must not exceed the size of an atomic write to a disk file
   
   http://nginx.org/en/docs/http/ngx_http_log_module.html
   
   And for Linux, the default atomic write size is `PIPE_BUF` (4096), see `man 7 pipe`.
   
   Therefore, the default size is too large to be safe.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix] Miss-you commented on issue #1567: the buffer for access log is too large

Posted by GitBox <gi...@apache.org>.
Miss-you commented on issue #1567:
URL: https://github.com/apache/incubator-apisix/issues/1567#issuecomment-626474959


   On the other hand, is `flush=1` better?
   Since the log buffer is lowered, the flush time should also be lowered.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix] Miss-you commented on issue #1567: the buffer for access log is too large

Posted by GitBox <gi...@apache.org>.
Miss-you commented on issue #1567:
URL: https://github.com/apache/incubator-apisix/issues/1567#issuecomment-626476994


   https://github.com/apache/incubator-apisix/pull/1570


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix] Miss-you closed issue #1567: the buffer for access log is too large

Posted by GitBox <gi...@apache.org>.
Miss-you closed issue #1567:
URL: https://github.com/apache/incubator-apisix/issues/1567


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-apisix] Miss-you commented on issue #1567: the buffer for access log is too large

Posted by GitBox <gi...@apache.org>.
Miss-you commented on issue #1567:
URL: https://github.com/apache/incubator-apisix/issues/1567#issuecomment-626473758


   +1
   A log buffer that is too small is not good, 4096 is more appropriate.
   
   ![image](https://user-images.githubusercontent.com/3816205/81525980-f268a100-9388-11ea-8bb0-8fcf8e8d01ac.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org