]> git.kaiwu.me - nginx.git/commit
Cache: added watermark to reduce IO load when keys_zone is full.
authorDmitry Volyntsev <xeioex@nginx.com>
Fri, 18 Mar 2016 12:08:21 +0000 (15:08 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Fri, 18 Mar 2016 12:08:21 +0000 (15:08 +0300)
commitb18ba1e9f66cae6cc78b2e393e8ba9eb7223dc53
tree031dabe548b6e01a1044d67e5d5802bcf43430b5
parent861e75dc208d8568dca6025af54b5b24c17d873f
Cache: added watermark to reduce IO load when keys_zone is full.

When a keys_zone is full then each next request to the cache is
penalized.  That is, the cache has to evict older files to get a
slot from the keys_zone synchronously.  The patch introduces new
behavior in this scenario.  Manager will try to maintain available
free slots in the keys_zone by cleaning old files in the background.
src/http/ngx_http_cache.h
src/http/ngx_http_file_cache.c