Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(benchmarking) Forknet TPS test setup #13047

Merged
merged 14 commits into from
Mar 11, 2025
Prev Previous commit
Next Next commit
better
Trisfald committed Mar 4, 2025
commit 46d3f70895a38d257e6b1a56d30e468f66663a7a
2 changes: 1 addition & 1 deletion benchmarks/sharded-bm/README.md
Original file line number Diff line number Diff line change
@@ -133,5 +133,5 @@ Grafana mostly, [Blockchain utilization dashboard](https://grafana.nearone.org/g
### Known issues

- updating `param.json` is tedious
- the `start-node` command hangs (it works, but it must be manually interrupted)
- the `start-node` command hangs sometimes (it works, but it must be manually interrupted)
- generating nodes config and keys beforehand with another `init` is suboptimal
7 changes: 3 additions & 4 deletions benchmarks/sharded-bm/bench.sh
Original file line number Diff line number Diff line change
@@ -251,11 +251,10 @@ tweak_config_forknet() {
tweak_config_forknet_node() {
jq --arg val "0.0.0.0:24567" \
'.network.addr |= $val' ${CONFIG} > tmp.$$.json && mv tmp.$$.json ${CONFIG} || rm tmp.$$.json
node_type=$1
if [ "${node_type}" = "rpc" ]; then
jq --arg val "0.0.0.0:3030" \
jq --arg val "0.0.0.0:3030" \
'.rpc.addr |= $val' ${CONFIG} > tmp.$$.json && mv tmp.$$.json ${CONFIG} || rm tmp.$$.json
else
node_type=$1
if [ "${node_type}" = "cp" ]; then
jq --arg val "${FORKNET_BOOT_NODES}" \
'.network.boot_nodes |= $val' ${CONFIG} > tmp.$$.json && mv tmp.$$.json ${CONFIG} || rm tmp.$$.json
fi