1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/ctdb/doc/examples
Martin Schwenke b80967f5dc ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE
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>
2019-05-07 05:45:34 +00:00
..
11.natgw.options ctdb-docs: Add example configuration files 2018-05-17 04:04:32 +02:00
20.nfs_ganesha.check ctdb-scripts: Move 60.nfs Ganesha callout to doc/examples/ 2015-07-21 07:54:09 +02:00
91.lvs.options ctdb-docs: Add example configuration files 2018-05-17 04:04:32 +02:00
config_migrate.sh ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE 2019-05-07 05:45:34 +00:00
config_migrate.test_input ctdb-doc: Switch tunable DisableIPFailover to a config option 2018-08-24 10:59:21 +02:00
ctdb.conf ctdb-docs: Add example configuration files 2018-05-17 04:04:32 +02:00
nfs-ganesha-callout Revert "ctdb-doc: Fix monitoring bug in example NFS Ganesha call-out" 2018-03-09 07:08:26 +01:00
README ctdb: Drop configuration file ctdbd.conf 2018-05-17 07:03:04 +02:00

This directory includes...

Sample CTDB configuration files:

  o ctdb.conf        - Main configuration file
  o 11.natgw.options - Options for the 11.natgw event script
  o 91.lvs.options   - Options for the 91.lvs event script

Sample 60.nfs configuration for NFS ganesha - callout script and
.check file

  o nfs-ganesha-callout
  o 20.nfs_ganesha.check

See the comment at the top of nfs-ganesha-callout for instructions.