summaryrefslogtreecommitdiff
path: root/ctdb/doc
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-tools: Drop onnode -o optionMartin Schwenke2019-07-051-9/+0
| | | | | | | I don't think anyone uses this and it causes complications. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGEMartin Schwenke2019-05-072-22/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CTDB's system memory monitoring in 05.system.script monitors both main memory and swap. The swap monitoring was originally based on the (possibly incorrect, see below) idea that swap space stacks on top of main memory, so that when a system starts filling swap space then this is supposed to be a good sign that the system is running out of memory. Additionally, performance on a Linux system tends to be destroyed by the I/O associated with a lot of swapping to spinning disks. However, some platforms default to creating only 4GB of swap space even when there is 128GB of main memory. With such a small swap to main memory ratio, memory pressure can force swap to be nearly full even when a significant amount of main memory is still available and the system is performing well. This suggests that checking swap utilisation might be less than useful in many circumstances. So, remove the separate swap space checking and change the memory check to cover the total of main memory and swap space. Test function set_mem_usage() still takes an argument for each of main memory and swap space utilisation. For simplicity, the same number is now passed twice to make the intended results comprehensible. This could be changed later. A couple of tests are cleaned up to no longer use hard-coded /proc/meminfo and ps output. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-doc: Add non-breaking space to lock_buckets documentationMartin Schwenke2018-12-181-6/+8
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Divide by 2 when calculating hop count bucketMartin Schwenke2018-12-181-4/+8
| | | | | | | | | | This provides finer resolution while still maintaining a reasonable maximum. In this case the top bucket contains any hop counts >= 16384, compared to the current situation where the top bucket contains hop counts >= 268435456. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Improve documentation for -i optionMartin Schwenke2018-11-061-3/+7
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-doc: Remove PIDFILE option from ctdbd_wrapper man pageRalph Wuerthner2018-09-121-6/+0
| | | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13610 Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Ralph Böhme <slow@samba.org> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Sep 12 21:50:57 CEST 2018 on sn-devel-144
* ctdb-doc: Switch tunable DisableIPFailover to a config optionMartin Schwenke2018-08-242-0/+2
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-config: Switch tunable DisableIPFailover to a config optionMartin Schwenke2018-08-243-18/+29
| | | | | | | | | Use the "failover:disabled" option instead. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-doc: Switch tunable TDBMutexEnabled to a config optionMartin Schwenke2018-08-242-1/+2
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-config: Switch tunable TDBMutexEnabled to a config optionMartin Schwenke2018-08-243-12/+17
| | | | | | | | | Use the "database:tdb mutexes" option instead. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-doc: Add support for migrating tunables to ctdb.conf optionsMartin Schwenke2018-08-241-1/+44
| | | | | | | | | This will become common, so will be useful to have support for. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-doc: Change option "no realtime" option to "realtime scheduling"Martin Schwenke2018-08-242-1/+3
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-config: Change option "no realtime" option to "realtime scheduling"Martin Schwenke2018-08-241-3/+3
| | | | | | | | | | | Negative options can be confusing, so switch to a positive option. This was supposed to be done months ago but was forgotten. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-doc: Handle boolean options in config migration more carefullyMartin Schwenke2018-08-241-25/+31
| | | | | | | | | | | Values for ctdb.conf options are now returned by get_ctdb_conf_option(). The main goal is to allow old boolean options to be replaced by new logically negated options. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-doc: Make config migration script notice removed CTDB_BASE optionMartin Schwenke2018-08-242-0/+3
| | | | | | | | | | This should never have been a user-level option, but some people used it. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13589 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-doc: Provide an example script for migrating old configurationMartin Schwenke2018-07-302-0/+733
| | | | | | | | | | | | Include an example ctdbd.conf-style file for testing. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13550 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Mon Jul 30 14:30:06 CEST 2018 on sn-devel-144
* ctdb-docs: Update documentation for "ctdb event" commandMartin Schwenke2018-07-281-47/+48
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13551 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 Jul 28 20:03:52 CEST 2018 on sn-devel-144
* ctdb-docs: Replace obsolete reference to CTDB_DEBUG_HUNG_SCRIPT optionMartin Schwenke2018-07-281-2/+3
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13546 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Sat Jul 28 07:26:24 CEST 2018 on sn-devel-144
* ctdb-scripts: Drop event script CTDB_MANAGED_<service> variablesMartin Schwenke2018-07-111-116/+0
| | | | | | | Enable required event scripts to manage services. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Mark NoIPHostOnAllDisabled tunable as obsoleteMartin Schwenke2018-07-112-18/+3
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Fix the documentation for VNN mapMartin Schwenke2018-07-021-4/+3
| | | | | | | | | | It is incorrectly says that nodes not in the VNN map can not be DMASTER. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13499 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Change directory for notifications to events/notificationMartin Schwenke2018-06-051-3/+4
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Update reference to lmaster/recmaster capability optionsMartin Schwenke2018-06-041-4/+6
| | | | | | | | 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): Mon Jun 4 12:37:39 CEST 2018 on sn-devel-144
* ctdb: Drop configuration file ctdbd.confMartin Schwenke2018-05-179-709/+0
| | | | | | | | | | | | | Drop function loadconfig(), replacing uses with "load_system_config ctdb". Drop translation of old-style configuration to new configuration file. Drop export of debugging variables. Drop documentation and configuration examples. 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): Thu May 17 07:03:04 CEST 2018 on sn-devel-144
* ctdb-docs: Add example configuration filesMartin Schwenke2018-05-174-2/+117
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Add ctdb.conf(5) cross references and documentation tweaksMartin Schwenke2018-05-176-23/+39
| | | | | | | Minor updates to other manual pages for compatibility. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Add ctdb.conf(5)Martin Schwenke2018-05-171-0/+593
| | | | | | | This documents the new Samba-style configuration file. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Drop most ctdbd command-line optionsMartin Schwenke2018-05-172-359/+10
| | | | | | | | All except -i/--interactive. This remaining popt option is now neatly wrapped to fit in 80 columns. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Drop CTDB_MAX_PERSISTENT_CHECK_ERRORS optionMartin Schwenke2018-05-171-10/+0
| | | | | | | | | | This must harken back to the days of yore when corrupt persistent databases were an issue. We haven't seen this used. If CTDB fails to start due to a corrupt persistent database then this database can be removed by hand. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Drop CTDB_SUPPRESS_COREFILE and CTDB_MAX_OPEN_FILES optionsMartin Schwenke2018-05-121-24/+0
| | | | | | | | | | 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-docs: Document system options and resource controlsMartin Schwenke2018-05-124-73/+264
| | | | | | | | The existing configuration file is disappearing so these configuration options need a new home that is not handled by ctdbd_wrapper. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Document script.optionsMartin Schwenke2018-05-123-1044/+1211
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Don't check for CTDB_PARTIALLY_ONLINE_INTERFACES clashMartin Schwenke2018-05-121-32/+45
| | | | | | | | | Just document that NAT gateway and LVS are not compatible with this option. Update the documentation to make it clear that this is a 10.interface option. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* Fix spelling s/Everytime/Every time/Mathieu Parent2018-05-121-1/+1
| | | | | | Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* ctdb-scripts: Drop support for CTDB_DBDIR=tmpfsMartin Schwenke2018-05-011-11/+0
| | | | | | | | | CTDB has no business mounting filesystems. Instead, documentation for the new configuration system will include a recommendation that a tmpfs be mounted on the volatile database directory. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Change default volatile database directoryMartin Schwenke2018-05-012-2/+2
| | | | | | | | | | | | Volatile databases now have their own subdirectory. This makes things easier if we later recommend mounting a tmpfs on the volatile database directory, rather than supporting the current CTDB_DBDIR=tmpfs magic. No need to create database directories for local daemon tests. ctdbd will do that. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Move remaining test options to READMEMartin Schwenke2018-05-011-72/+0
| | | | | | | | Test options do not belong in the user documentation. Move them to the README file in the tests/ subdirectory. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Drop ctdbd --torture and --valgrinding optionsMartin Schwenke2018-05-011-35/+0
| | | | | | | | These haven't been used by anyone in a long time. --valgrinding is less use with CTDB_VALGRINDING now gone. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Drop CTDB_VALGRIND testing optionMartin Schwenke2018-05-011-24/+0
| | | | | | | | This is too inflexible for general use. There is no use finding a new home for this in the new configuration scheme. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Drop ctdbd --sloppy-start and --nopublicipcheck optionsMartin Schwenke2018-05-011-23/+0
| | | | | | | CTDB_LOCAL_DAEMON_MODE=yes is used instead. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Drop ctdbd --notification-script command-line optionMartin Schwenke2018-05-011-20/+0
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Drop CTDB_NOTIFY_SCRIPT configuration optionMartin Schwenke2018-05-012-21/+3
| | | | | | | | | | Notification scripts are installed into $CTDB_BASE/notify.d/ and are always run by notify.sh. Leave notify.sh where it is for now but no longer consider it a configuration file. This is an interim measure and will be changed again soon. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-daemon: Provide a default location for the notification scriptMartin Schwenke2018-05-013-13/+17
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Move some configuration options out of the debug sectionMartin Schwenke2018-05-011-87/+110
| | | | | | | These aren't test options so improve their visibility. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Move some ctdbd options out of the debug sectionMartin Schwenke2018-05-011-52/+52
| | | | | | | | | | | ctdbd -i might be useful with systemd or similar, so should be documented. --nosetsched and --script-log-level options are valid user-level options. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Drop CTDB_RC_LOCAL testing hookMartin Schwenke2018-04-271-16/+0
| | | | | | | | | | This is not used. 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): Fri Apr 27 09:37:49 CEST 2018 on sn-devel-144
* ctdb-docs: Drop documentation for CTDB_SHUTDOWN_TIMEOUT optionMartin Schwenke2018-04-271-16/+0
| | | | | | | This was recently removed but the documentation was forgotten. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Drop stale reference to unused configuration fileMartin Schwenke2018-04-271-1/+0
| | | | | | | Recently removed but documentation change was forgotten. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-docs: Drop references to CTDB_BASE from the documentationMartin Schwenke2018-04-272-29/+3
| | | | | | | | CTDB_BASE should only ever be modified by test code. It should not be mentioned in the user documentation. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-scripts: Tunables are now loaded from ctdb.tunablesMartin Schwenke2018-03-282-26/+27
| | | | | | | | | | | | Using CTDB_SET_TunableVariables in the main configuration file is no longer supported. The only subtlety is an unexpected order change in one of the unit test results. This is because the old implementation implicitly sorted the tunable variables via the set command. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>