Serving files from a slow NFS storage

erankor2 nginx-forum at
Wed May 13 12:08:03 UTC 2015

An update on this - I ended up implementing support for asynchronous file
open, based on the thread pool feature that was added in nginx 1.7.11.
I copied nginx's ngx_open_file_cache.c (from 1.9.0) and made it
asynchronous, source code is here:
(you can diff it with ngx_open_file_cache.c to see the changes)

If there are any nginx core developers on this thread - I would really love
to see this feature make its way to the nginx core, so that I won't have
this code duplication with the builtin ngx_open_file_cache. The feature was
very thoroughly tested for any race conditions etc., test script is here:



Posted at Nginx Forum:,255847,258854#msg-258854

More information about the nginx mailing list