Skip to content

Commit a50e566

Browse files
committed
rc: make dump/restore more resilient
Problem: the rc1 flux-restore(1) command can fail if a dumped value exceeds the maximum content cache blob size. Call flux-restore(1) in rc1 with the --size-limit=104857600 (100mb) so that KVS keys exceeding that limit are not restored. A message is logged to stderr. Fixes #5245
1 parent 40931dd commit a50e566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/rc1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if test $RANK -eq 0; then
4747
flux module load ${backingmod} truncate
4848
fi
4949
echo "restoring content from ${dumpfile}"
50-
flux restore --quiet --checkpoint ${dumpfile}
50+
flux restore --quiet --checkpoint --size-limit=104857600 ${dumpfile}
5151
if test -n "${dumplink}"; then
5252
rm -f ${dumplink}
5353
fi

0 commit comments

Comments
 (0)