Skip to content

Commit dde2d6b

Browse files
cagedmantisgopherbot
authored andcommitted
sweet/benchmarks/cockroachdb: reduce benchmark concurrency
The benchmark was failing with an `EADDRNOTAVAIL` error, indicating that the client was exhausting the available network ports. This occurred because a high number of client connections were being rapidly created and torn down. Reducing the concurrency limits the rate of new connections, preventing port exhaustion and allowing the benchmark to run reliably. Fixes golang/go#73474 Change-Id: Ib2c0791cc108a54b916c19d28b9ebc21e5ea57fe Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/681595 Auto-Submit: Carlos Amedee <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> TryBot-Bypass: Carlos Amedee <[email protected]>
1 parent 2bb7112 commit dde2d6b

File tree

1 file changed

+1
-1
lines changed
  • sweet/benchmarks/cockroachdb

1 file changed

+1
-1
lines changed

sweet/benchmarks/cockroachdb/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ func kvBenchmark(readPercent int, nodeCount int) benchmark {
366366
fmt.Sprintf("--read-percent=%d", readPercent),
367367
"--min-block-bytes=1024",
368368
"--max-block-bytes=1024",
369-
"--concurrency=10000",
369+
"--concurrency=5000", // Changed from 10000, see go.dev/issue/73474.
370370
"--max-rate=30000",
371371
// Pre-splitting and scattering the ranges should help stabilize results.
372372
"--scatter",

0 commit comments

Comments
 (0)