Welcome! Log In Create A New Profile

Advanced

Re: Serving files from a slow NFS storage

May 13, 2015 08:08AM
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:
https://github.com/kaltura/nginx-vod-module/blob/master/ngx_async_open_file_cache.c
(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: https://github.com/kaltura/nginx-vod-module/blob/master/test/test_open_file_cache.py

Thanks,

Eran
Subject Author Posted

Serving files from a slow NFS storage

erankor2 December 29, 2014 03:52PM

Re: Serving files from a slow NFS storage

itpp2012 December 29, 2014 04:17PM

Re: Serving files from a slow NFS storage

Scott Larson December 29, 2014 04:36PM

Re: Serving files from a slow NFS storage

GreenGecko December 29, 2014 06:56PM

Re: Serving files from a slow NFS storage

erankor2 December 30, 2014 02:34AM

Re: Serving files from a slow NFS storage

GreenGecko December 30, 2014 03:02PM

Re: Serving files from a slow NFS storage

erankor2 May 13, 2015 08:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready