Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
1e29b0b
added start RPS functionality, ensured compatibility with modes + ram…
cjonas9 Apr 1, 2026
30fc402
fix unlikely race on endpointStats.isActive
cjonas9 Apr 1, 2026
c6fb224
replace linear pacer with stepped pacer
cjonas9 Apr 1, 2026
11b4657
parameterized step interval as optional CLI arg
cjonas9 Apr 1, 2026
4b4a4a6
reduced state in aggregator
cjonas9 Apr 1, 2026
42ac85b
patch config validation bug when stepInterval = 0
cjonas9 Apr 1, 2026
0c7b23e
add pacer tests
cjonas9 Apr 2, 2026
5ccb083
simplified if statement to max()
cjonas9 Apr 2, 2026
cc3ec2d
reorganize run log + results output to be in one folder per run
cjonas9 Apr 2, 2026
21c06ce
added summary windows to final results json
cjonas9 Apr 2, 2026
e9a0278
removed logs being written to disk
cjonas9 Apr 2, 2026
feadd23
tidied go mod
cjonas9 Apr 2, 2026
94170c8
Merge branch 'dev' of github.com:stellar/stellar-rpc-blaster into ste…
cjonas9 Apr 3, 2026
f956923
Merge branch 'stepped-pacer' of github.com:stellar/stellar-rpc-blaste…
cjonas9 Apr 3, 2026
c593fdf
fixed default behavior when startRPS is omitted vs. explicitly 0
cjonas9 Apr 6, 2026
4cec909
added CLI argument for error percent to tolerate
cjonas9 Apr 8, 2026
d5ddbb5
made timeline fit on one json line
cjonas9 Apr 8, 2026
bcf445a
fix SteppedPacer.Pace() bug when startRPS=0
cjonas9 Apr 8, 2026
76fbfc1
fixed minor bug with error percent not cancelling
cjonas9 Apr 9, 2026
fad8658
Merge branch 'dev' into improve-error-reporting
cjonas9 Apr 10, 2026
baf8826
made output/ a part of the git repo
cjonas9 Apr 10, 2026
4924672
style fixes in aggregator.go
cjonas9 Apr 13, 2026
9e680c7
fix validation bug that occurs when no ramp up
cjonas9 Apr 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
output/*
!output/.gitkeep
stellar-rpc-blaster
8 changes: 6 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func makeCommands() *cobra.Command {
cmd.Flags().Lookup("test-output-path"),
cmd.Flags().Lookup("input-data-path"),
cmd.Flags().Lookup("serial"),
cmd.Flags().Lookup("error-percent"),
)
settings.Mode = config.Run
settings.Ctx = cmd.Context()
Expand Down Expand Up @@ -86,12 +87,13 @@ func makeCommands() *cobra.Command {
commonFlags.String("rpc-url", "", "Target RPC server URL")

runCmd.Flags().String("config-path", "", "Path to config TOML file")
runCmd.Flags().String("test-output-path", "./output/load-test-results.json", "Path to export metrics output file")
runCmd.Flags().String("test-output-path", "./output", "Base directory for run output (logs and results)")
runCmd.Flags().String("input-data-path", "", "Path to seed data file output by generate, required for data-dependent endpoints")
runCmd.Flags().Duration("duration", time.Duration(0), "Duration to run the test (e.g., 5m)")
runCmd.Flags().Duration("ramp-up", time.Duration(0), "Ramp-up time before reaching target RPS (e.g., 30s)")
runCmd.Flags().Duration("step-interval", time.Second*5, "Interval between steps during the test (e.g., 5s)")
runCmd.Flags().Bool("serial", false, "Run endpoints one at a time sequentially instead of concurrently")
runCmd.Flags().Int("error-percent", 50, "Threshold for error percentage to kill the test (e.g. 50 means kill at 50%)")

generateCmd.Flags().String("output", "./output/seed.json", "Path to seed data file output by generate")
generateCmd.Flags().String("ledger-window", "", "Ledger range as START[,END] for data generation")
Expand All @@ -116,6 +118,7 @@ func bindRunCliParameters(
testOutputPath *pflag.Flag,
inputDataPath *pflag.Flag,
serial *pflag.Flag,
errorPercent *pflag.Flag,
) config.RuntimeSettings {
bindFlag := func(flag *pflag.Flag) {
viper.BindPFlag(flag.Name, flag)
Expand All @@ -129,7 +132,7 @@ func bindRunCliParameters(
bindFlag(testOutputPath)
bindFlag(inputDataPath)
bindFlag(serial)

bindFlag(errorPercent)
settings := config.RuntimeSettings{}
settings.ConfigPath = viper.GetString(cfgPath.Name)
settings.RpcUrl = viper.GetString(rpcUrl.Name)
Expand All @@ -139,6 +142,7 @@ func bindRunCliParameters(
settings.TestOutputPath = viper.GetString(testOutputPath.Name)
settings.InputDataPath = viper.GetString(inputDataPath.Name)
settings.Serial = viper.GetBool(serial.Name)
settings.ErrorPercent = viper.GetInt(errorPercent.Name)

return settings
}
Expand Down
62 changes: 31 additions & 31 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,78 +14,79 @@ require (
require (
cel.dev/expr v0.25.1 // indirect
cloud.google.com/go v0.123.0 // indirect
cloud.google.com/go/auth v0.18.2 // indirect
cloud.google.com/go/auth v0.20.0 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.8 // indirect
cloud.google.com/go/compute/metadata v0.9.0 // indirect
cloud.google.com/go/iam v1.5.3 // indirect
cloud.google.com/go/monitoring v1.24.3 // indirect
cloud.google.com/go/storage v1.61.3 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.31.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.55.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.55.0 // indirect
cloud.google.com/go/iam v1.8.0 // indirect
cloud.google.com/go/monitoring v1.26.0 // indirect
cloud.google.com/go/storage v1.62.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/detectors/gcp v1.32.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/metric v0.56.0 // indirect
github.com/GoogleCloudPlatform/opentelemetry-operations-go/internal/resourcemapping v0.56.0 // indirect
github.com/aws/aws-sdk-go v1.55.8 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cncf/xds/go v0.0.0-20260202195803-dba9d589def2 // indirect
github.com/creachadair/mds v0.26.1 // indirect
github.com/creachadair/mds v0.26.2 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/djherbis/fscache v0.10.1 // indirect
github.com/envoyproxy/go-control-plane/envoy v1.37.0 // indirect
github.com/envoyproxy/protoc-gen-validate v1.3.3 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-errors/errors v1.5.1 // indirect
github.com/go-jose/go-jose/v4 v4.1.3 // indirect
github.com/go-jose/go-jose/v4 v4.1.4 // indirect
github.com/go-logr/logr v1.4.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-viper/mapstructure/v2 v2.5.0 // indirect
github.com/google/s2a-go v0.1.9 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.14 // indirect
github.com/googleapis/gax-go/v2 v2.19.0 // indirect
github.com/googleapis/gax-go/v2 v2.21.0 // indirect
github.com/hashicorp/golang-lru v1.0.2 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/influxdata/tdigest v0.0.1 // indirect
github.com/jmespath/go-jmespath v0.4.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/klauspost/compress v1.18.5 // indirect
github.com/mailru/easyjson v0.9.2 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/pelletier/go-toml/v2 v2.3.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/rs/dnscache v0.0.0-20230804202142-fc85eb664529 // indirect
github.com/sagikazarmark/locafero v0.12.0 // indirect
github.com/segmentio/go-loggly v0.5.1-0.20171222203950-eb91657e62b2 // indirect
github.com/sirupsen/logrus v1.9.4 // indirect
github.com/spf13/afero v1.15.0 // indirect
github.com/spf13/cast v1.10.0 // indirect
github.com/spiffe/go-spiffe/v2 v2.6.0 // indirect
github.com/stellar/go-xdr v0.0.0-20260312225820-cc2b0611aabf // indirect
github.com/stretchr/objx v0.5.3 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.42.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.67.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.67.0 // indirect
go.opentelemetry.io/otel v1.42.0 // indirect
go.opentelemetry.io/otel/metric v1.42.0 // indirect
go.opentelemetry.io/otel/sdk v1.42.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.42.0 // indirect
go.opentelemetry.io/otel/trace v1.42.0 // indirect
go.opentelemetry.io/contrib/detectors/gcp v1.43.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.68.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.68.0 // indirect
go.opentelemetry.io/otel v1.43.0 // indirect
go.opentelemetry.io/otel/metric v1.43.0 // indirect
go.opentelemetry.io/otel/sdk v1.43.0 // indirect
go.opentelemetry.io/otel/sdk/metric v1.43.0 // indirect
go.opentelemetry.io/otel/trace v1.43.0 // indirect
go.yaml.in/yaml/v3 v3.0.4 // indirect
golang.org/x/crypto v0.49.0 // indirect
golang.org/x/exp v0.0.0-20260312153236-7ab1446f8b90 // indirect
golang.org/x/net v0.52.0 // indirect
golang.org/x/crypto v0.50.0 // indirect
golang.org/x/exp v0.0.0-20260410095643-746e56fc9e2f // indirect
golang.org/x/net v0.53.0 // indirect
golang.org/x/oauth2 v0.36.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.42.0 // indirect
golang.org/x/text v0.35.0 // indirect
golang.org/x/sys v0.43.0 // indirect
golang.org/x/text v0.36.0 // indirect
golang.org/x/time v0.15.0 // indirect
google.golang.org/api v0.272.0 // indirect
google.golang.org/genproto v0.0.0-20260319201613-d00831a3d3e7 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260319201613-d00831a3d3e7 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260319201613-d00831a3d3e7 // indirect
google.golang.org/grpc v1.79.3 // indirect
google.golang.org/api v0.275.0 // indirect
google.golang.org/genproto v0.0.0-20260406210006-6f92a3bedf2d // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260406210006-6f92a3bedf2d // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260406210006-6f92a3bedf2d // indirect
google.golang.org/grpc v1.80.0 // indirect
google.golang.org/protobuf v1.36.11 // indirect
gopkg.in/djherbis/atime.v1 v1.0.0 // indirect
gopkg.in/djherbis/stream.v1 v1.3.1 // indirect
Expand All @@ -95,7 +96,6 @@ require (

require (
github.com/HdrHistogram/hdrhistogram-go v1.2.0
github.com/sirupsen/logrus v1.9.4
github.com/stellar/go-stellar-sdk v0.3.0
github.com/stellar/go-stellar-sdk v0.5.0
github.com/tsenart/vegeta/v12 v12.13.0
)
Loading