nginx-1.1.0

Maxim Dounin mdounin at mdounin.ru
Mon Aug 1 15:55:03 UTC 2011


Hello!

On Mon, Aug 01, 2011 at 11:35:44AM -0400, Ensiferous wrote:

> Congratulations on the release Igor!
> 
> Could you please provide a brief description of the "loader_files",
> "loader_sleep", and "loader_threshold" directives so that they can be
> documented in the wiki?

These paramters are used to control cache loader IO (notably keep 
it low enough to allow other work to be done).

loader_files=<number>

    specifies number of files scanned by cache loader per 
    iteration

loader_sleep=<time>

    time to sleep after each iteration

loader_threshold=<time>

    if iteration takes more than specified time, number of files 
    scanned per iteration is decreased by factor of 2 (once 
    number of files reaches 1, sleep time is increased by factor 
    of 2)

Default values are:

    loader_files=100
    loader_sleep=50ms
    loader_threshold=200ms

Maxim Dounin



More information about the nginx mailing list