Skip to content

Commit

Permalink
broker: use default fanout of 0 for config boot
Browse files Browse the repository at this point in the history
Problem: the systemd unit file has to specify a large value for
the tbon.fanout attribute to make the default system instance
use a flat TBON topology.

Make the default TBON fanout 0 (flat) when Flux is booted from
config files.

Drop the tbon.fanout=256 setting in the systemd unit file.
  • Loading branch information
garlick committed Aug 8, 2022
1 parent a04e21b commit 4b18b51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion etc/flux.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ ExecStart=/bin/bash -c '\
@X_BINDIR@/flux broker \
--config-path=@X_SYSCONFDIR@/flux/system/conf.d \
-Scron.directory=@X_SYSCONFDIR@/flux/system/cron.d \
-Stbon.fanout=256 \
-Srundir=@X_RUNSTATEDIR@/flux \
-Sstatedir=${STATE_DIRECTORY:-/var/lib/flux} \
-Slocal-uri=local://@X_RUNSTATEDIR@/flux/local \
Expand Down
2 changes: 1 addition & 1 deletion src/broker/boot_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "topology.h"
#include "boot_config.h"

#define DEFAULT_FANOUT 2
#define DEFAULT_FANOUT 0


/* Copy 'fmt' into 'buf', substituting the following tokens:
Expand Down

0 comments on commit 4b18b51

Please sign in to comment.