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

codeintel: allow configuring max concurrency in uploads #1023

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

Strum355
Copy link
Contributor

@Strum355 Strum355 commented Aug 22, 2023

Same details as https://github.com/sourcegraph/sourcegraph/commit/de4d5471e3f61440cfe7837f56f25b6e778c5473

Test plan

Value is correctly parsed and set by printing the value with a full e2e run, concurrency tested by conc library itself

@Strum355 Strum355 requested a review from efritz August 22, 2023 11:56
@Strum355 Strum355 self-assigned this Aug 22, 2023
@Strum355 Strum355 force-pushed the nsc/codeintel-upload-concurrency branch from c31f212 to 6b72a07 Compare August 25, 2023 12:06
Strum355 added a commit to sourcegraph/sourcegraph-public-snapshot that referenced this pull request Aug 28, 2023
Our HTTP endpoints have a [hard-coded timelimit of 75s](https://sourcegraph.com/search?q=context:global+repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24+75+*+lang:Go&patternType=standard&sm=1&groupBy=path). On slower connections with multipart uploads, it is possible for the bandwidth congestion of the competing upload parts to result in the upload failing due to any part taking longer than 75s to upload. 
This PR adds a new toggleable to configure the number of parts to be uploaded concurrently, so reduce the congestion/competing between parts.

## Test plan

Tested in combination with src-cli over at sourcegraph/src-cli#1023
@Strum355 Strum355 marked this pull request as ready for review August 28, 2023 21:28
@Strum355 Strum355 merged commit c0d85ec into main Aug 28, 2023
10 checks passed
@Strum355 Strum355 deleted the nsc/codeintel-upload-concurrency branch August 28, 2023 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants