ctdb-scripts: Drop CTDB_SUPPRESS_COREFILE and CTDB_MAX_OPEN_FILES options
authorMartin Schwenke <martin@meltin.net>
Tue, 24 Apr 2018 04:13:35 +0000 (14:13 +1000)
committerAmitay Isaacs <amitay@samba.org>
Sat, 12 May 2018 07:13:28 +0000 (09:13 +0200)
These should be done using features provided by the operating system.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Sat May 12 09:13:28 CEST 2018 on sn-devel-144

ctdb/config/ctdbd.conf
ctdb/config/ctdbd_wrapper
ctdb/doc/ctdbd.conf.5.xml

index 3fe5c8285d2a44a0f7a625123081aea4f450cfb6..57cb3495c1b64dfe5ec702323bfa6640960e348d 100644 (file)
@@ -13,9 +13,6 @@
 # CTDB_MANAGES_WINBIND=yes
 # CTDB_MANAGES_NFS=yes
 
-# Raise the file descriptor limit for CTDB?
-# CTDB_MAX_OPEN_FILES=10000
-
 # Default is to use the log file below instead of syslog.
 # CTDB_LOGGING=file:/var/log/log.ctdb
 
index 320e02cf0782094ab52a9dc1a6a522767cfe44e4..e8f0a23a2575a4027a4189a3a3cce6b9c283ae3b 100755 (executable)
@@ -88,20 +88,6 @@ start()
 
     export_debug_variables
 
-    # Explicitly trying to disable core files, no other way
-    # shellcheck disable=SC2039
-    if [ "$CTDB_SUPPRESS_COREFILE" = "yes" ]; then
-       ulimit -c 0
-    else
-       ulimit -c unlimited
-    fi
-
-    # Unsupported option easily avoided by not using configuration variable
-    # shellcheck disable=SC2039
-    if [ -n "$CTDB_MAX_OPEN_FILES" ]; then
-       ulimit -n "$CTDB_MAX_OPEN_FILES"
-    fi
-
     eval "$ctdbd" "$ctdb_options" || return 1
 
     # Wait until ctdbd has started and is ready to respond to clients.
index b7010ef8c8c0be4a644163005230bc2995f1fb16..e02e86c7568e80476e3b93d55ef076f1d5f58e70 100644 (file)
        </listitem>
       </varlistentry>
 
-      <varlistentry>
-       <term>CTDB_MAX_OPEN_FILES=<parameter>NUM</parameter></term>
-       <listitem>
-         <para>
-           NUM is the maximum number of open files.
-         </para>
-         <para>
-           There is no default.
-         </para>
-       </listitem>
-      </varlistentry>
-
       <varlistentry>
        <term>CTDB_NOSETSCHED=yes|no</term>
        <listitem>
        </listitem>
       </varlistentry>
 
-      <varlistentry>
-       <term>CTDB_SUPPRESS_COREFILE=yes|no</term>
-       <listitem>
-         <para>
-           Whether CTDB core files should be suppressed.
-         </para>
-         <para>
-           Default is no.
-         </para>
-       </listitem>
-      </varlistentry>
-
       <varlistentry>
        <term>CTDB_TRANSPORT=tcp|infiniband</term>
        <listitem>