Skip to content

Commit 79d0ad7

Browse files
authored
Merge pull request #4323 from garlick/shutdown_doc
flux-shutdown(1): document new options
2 parents 44eb30e + 9aee7f2 commit 79d0ad7

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

doc/man1/flux-shutdown.rst

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ the shutdown command on stderr, until the broker completes executing its
3535
``rc3`` script. By default, log messages with severity level <= LOG_INFO
3636
are printed.
3737

38+
A Flux system instance requires offline KVS garbage collection to remove
39+
deleted KVS content and purged job directories, which accrue over time and
40+
increase storage overhead and restart time. It is recommended that the
41+
*--gc* option be used on a routine basis to optimize Flux.
42+
3843

3944
OPTIONS
4045
=======
@@ -55,6 +60,22 @@ OPTIONS
5560
Increase output verbosity. Level 1 shows all log messages. Higher
5661
verbosity levels are reserved for future use.
5762

63+
**--dump=PATH**
64+
Dump a checkpoint of KVS content to *PATH* using :man1:`flux-dump` after the
65+
KVS has been unloaded. The dump may be restored into a new Flux instance
66+
using :man1:`flux-restore`. Dump creation adds time to the shutdown
67+
sequence, proportional to the amount of data in the KVS. ``--dump=auto``
68+
is a special case equivalent to ``--gc``.
69+
70+
**--gc**
71+
Prepare for offline KVS garbage collection by dumping a checkpoint of KVS
72+
content to ``dump/<date>.tgz`` in *statedir*, if defined, otherwise in
73+
the broker's current working directory. Create a symbolic link named
74+
``dump/RESTORE`` pointing to the dump file. When this link is discovered
75+
on instance startup, the content database is truncated and recreated from
76+
the dump, and the link is removed. :linux:man8:`systemd-tmpfiles`
77+
automatically cleans up dump files in ``/var/lib/flux/dump`` after 30 days.
78+
5879

5980
RESOURCES
6081
=========
@@ -65,4 +86,5 @@ Flux: http://flux-framework.org
6586
SEE ALSO
6687
========
6788

68-
:man1:`flux-start`, :man1:`flux-uptime`, :man1:`flux-uri`
89+
:man1:`flux-start`, :man1:`flux-uptime`, :man1:`flux-uri`, :man1:`flux-dump`,
90+
:linux:man8:`systemd-tmpfiles`

doc/test/spell.en.pws

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,3 +623,6 @@ xz
623623
validator
624624
statedir
625625
num
626+
gc
627+
tgz
628+
tmpfiles

0 commit comments

Comments
 (0)