Skip to content

roachtest: Rate limit connection establishment#36824

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
bdarnell:workload-ratelimit
Apr 13, 2019
Merged

roachtest: Rate limit connection establishment#36824
craig[bot] merged 1 commit intocockroachdb:masterfrom
bdarnell:workload-ratelimit

Conversation

@bdarnell
Copy link
Copy Markdown
Contributor

Acquiring connections with unlimited parallelism triggers syn flood
protection on the server and can sometimes lead to failures. This was
especially common in tests using the tpcc-1000 dataset (which also
creates a large number of connections.

Failures fixed by this change look like

stdout:
Error: read tcp 10.142.0.43:37862->10.142.0.112:26257: read: connection reset by peer
Error:  exit status 1

Fixes #36745

Release note: None

Acquiring connections with unlimited parallelism triggers syn flood
protection on the server and can sometimes lead to failures. This was
especially common in tests using the tpcc-1000 dataset (which also
creates a large number of connections.

Failures fixed by this change look like

    stdout:
    Error: read tcp 10.142.0.43:37862->10.142.0.112:26257: read: connection reset by peer
    Error:  exit status 1

Fixes cockroachdb#36745

Release note: None
@bdarnell bdarnell requested a review from RaduBerinde April 13, 2019 15:13
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@bdarnell
Copy link
Copy Markdown
Contributor Author

I empirically validated this while stressing the scrub test for #35986. It was failing about 20% of the time with this error, and with this change I've run a hundred iterations without seeing it.

@RaduBerinde
Copy link
Copy Markdown
Member

LGTM, thanks for fixing!

Ideally we would have one semaphore per host (URL), but that won't matter with tpcc (where each host has its own MultiConnPool) and I don't think other workloads use a ton of connections.

@tbg
Copy link
Copy Markdown
Member

tbg commented Apr 13, 2019 via email

@bdarnell
Copy link
Copy Markdown
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Apr 13, 2019
36824: roachtest: Rate limit connection establishment r=bdarnell a=bdarnell

Acquiring connections with unlimited parallelism triggers syn flood
protection on the server and can sometimes lead to failures. This was
especially common in tests using the tpcc-1000 dataset (which also
creates a large number of connections.

Failures fixed by this change look like

    stdout:
    Error: read tcp 10.142.0.43:37862->10.142.0.112:26257: read: connection reset by peer
    Error:  exit status 1

Fixes #36745

Release note: None

Co-authored-by: Ben Darnell <ben@bendarnell.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Apr 13, 2019

Build succeeded

@craig craig bot merged commit 34c09bc into cockroachdb:master Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

workload: Rate-limit connection warmup

4 participants