ngx_bumpylife sets the randomized limit of requests to be processed for each worker process.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
config
ngx_http_bumpylife_module.c

README.md

ngx_bumpylife

ngx_bumpylife sets the randomized limit of requests to be processed for each worker process. It is inspired by ap-mod_bumpy_life.

Status

Early development phase

Directives

bumpylife

Syntax bumpylife on | off
Default off
Context http

Enables or disables ngx_bumpylife.

bumpylife_min

Syntax bumpylife number
Default 0
Context http

Sets the minimun value for the limit of requests to be processed.

bumpylife_max

Syntax bumpylife number
Default 0
Context http

Sets the max value for the limit of requests to be processed.

Behavior

If ngx_bumpylife is enabled, each worker process increments own counter and sets ngx_http_bumpylife_target_pid in shared memory own pid when the number of requests to be processed overs the limit. Moreover, checks the variable ngx_http_bumpylife_target_pid in shared memory and sends SIGQUIT the process which pid is ngx_http_bumpylife_target_pid. The limit of requests to be processed is randomized in the bumpylife_min to bumpylife_max range.

And ngx_bumpylife does not work in the cases below.

  • bumpylife_min or bumpylife_max is zero.
  • bumpylife_min is higher than bumpylife_max.

Quick Start

http {
    bumpylife on;
    bumpylife_min 500;
    bumpylife_max 800;
    ...
}

License

See LICENSE.