1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb
Ralph Boehme 6e419dda71 ctdb: increase TasksMax limit, the systemd default is just 512
In 2015 systemd introduced a TasksMax which limits the number of processes in a
unit:

https://lists.freedesktop.org/archives/systemd-devel/2015-November/035006.html

The default of 512 may be too low in certain situations leading to vfork()
failing with errno=EAGAIN when trying to spawn lock-helper processes.

With the default for LockProcessesPerDB being 200 the increased TasksMax limit
should cover the problematic scenario.

Additional background: the failing vfork()s have been seen on production
clusters and were tracked down to being logged in the context of ctdb calling
tdb_repack().

Links:

9ded9cd14c
https://www.suse.com/support/kb/doc/?id=000015901
https://success.docker.com/article/how-to-reserve-resource-temporarily-unavailable-errors-due-to-tasksmax-setting
https://www.percona.com/blog/2019/01/02/tasksmax-another-setting-that-can-cause-mysql-error-messages/

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>

Autobuild-User(master): Martin Schwenke <martins@samba.org>
Autobuild-Date(master): Wed May 13 13:30:12 UTC 2020 on sn-devel-184
2020-05-13 13:30:12 +00:00
..
client ctdb/client/client.h: typo fixes 2019-10-31 00:43:38 +00:00
cluster ctdb-cluster: CID 1435726: NULL pointer dereference 2019-06-05 10:25:50 +00:00
common ctdb-common: Remove signed/unsigned comparisons 2020-02-18 02:56:38 +00:00
config ctdb: increase TasksMax limit, the systemd default is just 512 2020-05-13 13:30:12 +00:00
database ctdb-database: Fix signed/unsigned comparison by casting 2019-07-05 05:03:24 +00:00
doc ctdb-scripts: Update nfs-ganesha-callout 2020-04-23 08:07:51 +00:00
event ctdb-common: Add section to group commands in cmdline 2019-11-14 10:38:34 +00:00
failover ctdb-failover: Add failover configuration options 2018-08-24 10:59:21 +02:00
ib ctdb-daemon: Rename ctdb_context private_data to transport_data 2019-11-14 02:20:46 +00:00
include ctdb-daemon: Remove more unused old client database functions 2020-03-23 23:45:38 +00:00
packaging/RPM ctdb-packaging: Test package requires tcpdump 2019-03-15 05:17:14 +00:00
protocol ctdb-protocol: Add marshalling for control ECHO_DATA 2020-04-28 09:08:39 +00:00
server ctdb: Implement CTDB_CONTROL_ECHO_DATA 2020-04-28 09:08:39 +00:00
tcp ctdb-tcp: Do not stop outbound connection in ctdb_tcp_node_connect() 2020-03-12 05:29:20 +00:00
tests ctdb-protocol: Add marshalling for control ECHO_DATA 2020-04-28 09:08:39 +00:00
tools ctdb-tools: Allow shorter runtime limit to be specified 2020-02-10 04:07:39 +00:00
utils ctdb/utils/smnotify/smnotify.c: typo fixes 2019-10-31 00:43:39 +00:00
.bzrignore
.gitignore ctdb-build: use a fixed ctdb_version.h using SAMBA_VERSION_STRING 2019-03-15 05:17:14 +00:00
configure build: Move python detection back into waf (instead of in configure and Makefile) 2018-12-14 14:40:19 +01:00
configure.rpm ctdb-packaging: Update library versions to upstream versions 2018-12-18 07:12:09 +01:00
COPYING
Makefile build: Move python detection back into waf (instead of in configure and Makefile) 2018-12-14 14:40:19 +01:00
README doc: README - add information about CTDB, license and website 2012-10-22 17:39:49 +11:00
wscript ctdb-build: Add messages_dgm build to ctdb 2020-05-06 01:47:16 +00:00

This is the release version of CTDB, a clustered implementation of TDB
database used by Samba and other projects to store temporary data.

This software is freely distributable under the GNU public license,
a copy of which you should have received with this software (in a file
called COPYING).

For documentation on CTDB, please visit CTDB website http://ctdb.samba.org.