1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

source4 smbd prefork: Increase default worklers to 4

Increase the default number of worker processes started by the pre-fork
process model from 1 to 4.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Gary Lockyer 2018-09-05 13:59:34 +12:00 committed by Andrew Bartlett
parent de1f49752c
commit 700b4ce981
3 changed files with 6 additions and 7 deletions

View File

@ -6,9 +6,9 @@
<para>This option controls the number of worker processes that are
started for each service when prefork process model is enabled.
The prefork children are only started for those services that
support prefork (currently only ldap). For processes that don't
support preforking all requests are handled by a single process
for that service.
support prefork (currently ldap, kdc and netlogon).
For processes that don't support preforking all requests are
handled by a single process for that service.
</para>
<para>This should be set to a small multiple of the number of CPU's
@ -20,5 +20,5 @@
worker processes.</para>
</description>
<value type="default">1</value>
<value type="default">4</value>
</samba:parameter>

View File

@ -2772,7 +2772,6 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
lpcfg_do_global_parameter(lp_ctx, "tls certfile", "tls/cert.pem");
lpcfg_do_global_parameter(lp_ctx, "tls cafile", "tls/ca.pem");
lpcfg_do_global_parameter(lp_ctx, "tls priority", "NORMAL:-VERS-SSL3.0");
lpcfg_do_global_parameter(lp_ctx, "prefork children:smb", "4");
lpcfg_do_global_parameter(lp_ctx, "rndc command", "/usr/sbin/rndc");
lpcfg_do_global_parameter(lp_ctx, "nsupdate command", "/usr/bin/nsupdate -g");
@ -2997,7 +2996,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
"rpc server dynamic port range",
"49152-65535");
lpcfg_do_global_parameter(lp_ctx, "prefork children", "1");
lpcfg_do_global_parameter(lp_ctx, "prefork children", "4");
lpcfg_do_global_parameter(lp_ctx, "check parent directory delete on close", "no");

View File

@ -957,7 +957,7 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals)
"49152-65535");
Globals.rpc_low_port = SERVER_TCP_LOW_PORT;
Globals.rpc_high_port = SERVER_TCP_HIGH_PORT;
Globals.prefork_children = 1;
Globals.prefork_children = 4;
/* Now put back the settings that were set with lp_set_cmdline() */
apply_lp_set_cmdline();