diff options
author | Max Romanov <max.romanov@nginx.com> | 2018-01-29 16:17:36 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2018-01-29 16:17:36 +0300 |
commit | 9cd4fdbdb78e035254e8094b5cff2155857ab764 (patch) | |
tree | 6de4ee721996740cbeda8647e11b8b2aa18e704f /src/nxt_conf.c | |
parent | a36babddef203d79dc37736661e1a042df4064f8 (diff) | |
download | unit-9cd4fdbdb78e035254e8094b5cff2155857ab764.tar.gz unit-9cd4fdbdb78e035254e8094b5cff2155857ab764.tar.bz2 |
Introducing extended app process management.
- Pre-fork 'processes.spare' application processes;
- fork more processes to keep 'processes.spare' idle processes;
- fork on-demand up to 'processes.max' count;
- scale down idle application processes above 'processes.spare' after
'processes.idle_timeout';
- number of concurrently started application processes also limited by
'processes.spare' (or 1, if spare is 0).
Diffstat (limited to '')
-rw-r--r-- | src/nxt_conf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nxt_conf.c b/src/nxt_conf.c index 872a62af..684135cf 100644 --- a/src/nxt_conf.c +++ b/src/nxt_conf.c @@ -163,6 +163,13 @@ nxt_conf_get_string(nxt_conf_value_t *value, nxt_str_t *str) } +int64_t +nxt_conf_get_integer(nxt_conf_value_t *value) +{ + return value->u.integer; +} + + nxt_uint_t nxt_conf_object_members_count(nxt_conf_value_t *value) { |