Skip to content

Commit 72030a0

Browse files
excelle08meta-codesync[bot]
authored andcommitted
Add RPC_FANOUT_SCALE env override in run.sh
Summary: packages/feedsim/run.sh now honors an RPC_FANOUT_SCALE env var. When set, the value is forwarded to LeafNodeRank as --rpc_fanout_scale=<value>, overriding the binary's compiled-in default of 0.025. Lets sweep scripts A/B different fanout intensities (e.g. 0.025 vs 0.05 to compare RPC overhead) without rebuilding LeafNodeRank. Reviewed By: YifanYuan3 Differential Revision: D105119219
1 parent 5f251ea commit 72030a0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/feedsim/run.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -691,6 +691,13 @@ main() {
691691
# port 21222. Without --rpc_dist_path, LeafNodeRank falls back to
692692
# legacy folly::futures::sleep.
693693
local mock_services_opts="--rpc_dist_path=$rpc_dist_json --mock_services_host=localhost --mock_services_port=21222"
694+
# Optional fanout-scale override (defaults to LeafNodeRank's
695+
# --rpc_fanout_scale=0.025 when the env var is unset). Lets sweep
696+
# scripts A/B test heavier outbound load without rebuilding.
697+
if [ -n "${RPC_FANOUT_SCALE:-}" ]; then
698+
mock_services_opts="$mock_services_opts --rpc_fanout_scale=${RPC_FANOUT_SCALE}"
699+
echo "RPC fanout scale override: $RPC_FANOUT_SCALE"
700+
fi
694701
# Diagnostic / isolation knob. When LEAFNODE_USE_LEGACY_SLEEP=1, force
695702
# LeafNodeRank to take the legacy folly::futures::sleep path even
696703
# though --rpc_dist_path is supplied (rpc_dist.json is still resolved

0 commit comments

Comments
 (0)