@@ -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
3636are 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
3944OPTIONS
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
5980RESOURCES
6081=========
@@ -65,4 +86,5 @@ Flux: http://flux-framework.org
6586SEE 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 `
0 commit comments