summaryrefslogtreecommitdiff
path: root/docs-xml
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2017-09-07 14:30:15 +1200
committerAndrew Bartlett <abartlet@samba.org>2017-10-19 05:33:10 +0200
commit123042c2e3358dc6671ce0969aee7b0f0695590e (patch)
treefab6514ef0468fbb3de4fc0d6a6c89059bcc7354 /docs-xml
parent778e9a810ef48262efe250bebce3e88546acc694 (diff)
downloadsamba-123042c2e3358dc6671ce0969aee7b0f0695590e.tar.gz
source4/smbd: add a prefork process model.
Add a pre fork process model to bound the number processes forked by samba. Currently workers are only pre-forked for the ldap server, all the other services have pre-fork support disabled. When pre-fork support is disabled a new process is started for each service, and requests are processed by that process. This commit partially reverts commit b5be45c453bd51373bade26c29828b500ba586ec. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'docs-xml')
-rw-r--r--docs-xml/smbdotconf/base/preforkchildren.xml24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs-xml/smbdotconf/base/preforkchildren.xml b/docs-xml/smbdotconf/base/preforkchildren.xml
new file mode 100644
index 00000000000..720e43909cb
--- /dev/null
+++ b/docs-xml/smbdotconf/base/preforkchildren.xml
@@ -0,0 +1,24 @@
+<samba:parameter name="prefork children"
+ context="G"
+ type="integer"
+ xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
+<description>
+ <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.
+ </para>
+
+ <para>This should be set to a small multiple of the number of CPU's
+ available on the server</para>
+
+ <para>Additionally the number of prefork children can be specified for
+ an individual service by using "prefork children: service name"
+ i.e. "prefork children:ldap = 8" to set the number of ldap
+ worker processes.</para>
+</description>
+
+<value type="default">1</value>
+</samba:parameter>