diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2018-09-05 07:31:22 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2018-11-23 08:25:19 +0100 |
commit | 40941e98f8508daf59b83e05461ebeab4bebaacd (patch) | |
tree | 189c6c0a10b5a58bde9286261a95aa1bb6b0488b /source3/param | |
parent | 6c850b77c4ae6c4aa6d914f7ccedc2bcce939217 (diff) | |
download | samba-40941e98f8508daf59b83e05461ebeab4bebaacd.tar.gz |
source4 smbd prefork: Add backoff to process restart
Add new smbd.conf variables 'prefork backoff increment' and
'prefork maximum backoff' to control the rate at which failed pre-forked
processes are restarted.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 495683083cb..994f9b0ce43 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -958,6 +958,8 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals) Globals.rpc_low_port = SERVER_TCP_LOW_PORT; Globals.rpc_high_port = SERVER_TCP_HIGH_PORT; Globals.prefork_children = 4; + Globals.prefork_backoff_increment = 10; + Globals.prefork_maximum_backoff = 120; /* Now put back the settings that were set with lp_set_cmdline() */ apply_lp_set_cmdline(); |