Welcome! Log In Create A New Profile

Advanced

Adding asynchronous logging

Shawn J. Goff
April 27, 2015 03:20PM
I have been doing some load tests against Nginx and have found
significant client-side latency outliers at the 99.9th percentile.
During the load test, I'm looking at iostat and it's showing me mostly
zero utilization. When I log to a tmpfs instead, the outliers go away.
When I use buffer=32M, the outliers come much less frequently. This
leads me to believe that the synchronous write in the
ngx_http_log_module is contributing to the latency as the worker threads
can't accept until they're done writing.

I'm considering adding asynchronous logging to the module and wanted
input. So far, I planning on using aio and would like to know if this is
a bad idea or not. I saw recently that the aio module was deprecated,
but I'm not sure why.

Thanks,
Shawn J. Goff

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Adding asynchronous logging

Shawn J. Goff 691 April 27, 2015 03:20PM

Re: Adding asynchronous logging

Maxim Dounin 1063 April 27, 2015 03:42PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 217
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready