Skip to content

Commit

Permalink
Merge #108655
Browse files Browse the repository at this point in the history
108655: roachtest: use SI for ranges in cdc/workload r=erikgrinaker a=erikgrinaker

I.e. format `ranges=100k` instead of `ranges=100000`, like we already do for `cdc/scan`.

Epic: none
Release note: None

Co-authored-by: Erik Grinaker <[email protected]>
  • Loading branch information
craig[bot] and erikgrinaker committed Aug 12, 2023
2 parents 7da4ef5 + 4acd905 commit a37cff6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/cmd/roachtest/tests/cdc_bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ func registerCDCBench(r registry.Registry) {
// Control run that only runs the workload, with no changefeed.
r.Add(registry.TestSpec{
Name: fmt.Sprintf(
"cdc/workload/kv%d/nodes=%d/cpu=%d/ranges=%d/control",
readPercent, nodes, cpus, ranges),
"cdc/workload/kv%d/nodes=%d/cpu=%d/ranges=%s/control",
readPercent, nodes, cpus, formatSI(ranges)),
Owner: registry.OwnerCDC,
Benchmark: true,
Cluster: r.MakeClusterSpec(nodes+2, spec.CPU(cpus)),
Expand All @@ -141,8 +141,8 @@ func registerCDCBench(r registry.Registry) {
server, protocol := server, protocol // pin loop variables
r.Add(registry.TestSpec{
Name: fmt.Sprintf(
"cdc/workload/kv%d/nodes=%d/cpu=%d/ranges=%d/server=%s/protocol=%s/format=%s/sink=null",
readPercent, nodes, cpus, ranges, server, protocol, format),
"cdc/workload/kv%d/nodes=%d/cpu=%d/ranges=%s/server=%s/protocol=%s/format=%s/sink=null",
readPercent, nodes, cpus, formatSI(ranges), server, protocol, format),
Owner: registry.OwnerCDC,
Benchmark: true,
Cluster: r.MakeClusterSpec(nodes+2, spec.CPU(cpus)),
Expand Down

0 comments on commit a37cff6

Please sign in to comment.