Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: As a user, I want to access log's buffer size can be configed in config file #10219

Closed
qihaiyan opened this issue Sep 18, 2023 · 2 comments · Fixed by #10225
Closed

feat: As a user, I want to access log's buffer size can be configed in config file #10219

qihaiyan opened this issue Sep 18, 2023 · 2 comments · Fixed by #10225

Comments

@qihaiyan
Copy link
Contributor

qihaiyan commented Sep 18, 2023

Description

As a user, I want to access log's buffer size can be configed in config file.
The buffer size is now hard coded in ngx_tpl.lua

Access log buffering can significantly reduce disk I/O and improve server performance. 
Enabling access log buffering is relatively simple in NGINX. To do this,
use the following directive in your NGINX configuration:

access_log /var/log/nginx/access.log main buffer=32k;
This directive tells NGINX to store the access log entries in a buffer of size 32k before writing them to the log file. 
Increasing the buffer size can minimize the number of write operations to the disk, resulting in improved performance.
@shreemaan-abhishek
Copy link
Contributor

@qihaiyan would you like to submit a PR?

@qihaiyan
Copy link
Contributor Author

@qihaiyan would you like to submit a PR?

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants