Skip to content

Commit

Permalink
Unify number of distributors config
Browse files Browse the repository at this point in the history
  • Loading branch information
jcortejoso committed Sep 13, 2024
1 parent 7ceeb55 commit 9475b40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion charts/op-tx-overload/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
apiVersion: v2
name: op-tx-overload
description: Generate load on Optimism Bedrock using transactions with random calldata.
type: application
version: 0.2.1
version: 0.2.2
appVersion: "test"
sources:
- https://github.com/celo-org/tx-overload
Expand Down
5 changes: 3 additions & 2 deletions charts/op-tx-overload/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ spec:
args:
- |
RID=$(echo $HOSTNAME | sed 's/{{ .Release.Name }}-//')
STARTING_INDEX=$((RID * {{ .Values.config.numDistributors }}))
NUM_DISTRIBUTORS={{ .Values.config.numDistributors }}
STARTING_INDEX=$((RID * NUM_DISTRIBUTORS))
/tx-overload.bin \
--eth-rpc={{ .Values.config.ethRpc }} \
--tx-mode={{ .Values.config.txMode }} \
--num-distributors={{ .Values.config.numDistributors }} \
--num-distributors=$NUM_DISTRIBUTORS \
--starting-index=$STARTING_INDEX \
--data-rate={{ .Values.config.dataRate }} \
--log.format={{ .Values.config.logFormat }} \
Expand Down

0 comments on commit 9475b40

Please sign in to comment.