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

Connection pooling + tune batch size to eliminate stragglers #38

Merged
merged 3 commits into from
Jan 9, 2022

Conversation

parasj
Copy link
Contributor

@parasj parasj commented Jan 9, 2022

Fixes #36

Connections now transfer 2-3x faster (from ~600Mbps to ~1.4Gbps for us-west-1 to us-east-1). By tuning batch sizes used when writing back to disk, the stragglers seem to no longer be a problem.

@parasj parasj added the gateway label Jan 9, 2022
@parasj parasj requested a review from samkumar January 9, 2022 00:34
@parasj parasj self-assigned this Jan 9, 2022
Copy link
Contributor

@samkumar samkumar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on my reading of the code, it looks like the connection isn't persistent --- the destination port is left listening, but a separate connection is still used for each batch of chunks.

I'm approving since it improves bandwidth, but I still think that keeping the TCP connection itself alive for a long time is good, to avoid ramping up congestion control each time.

skylark/gateway/gateway_sender.py Show resolved Hide resolved
@parasj parasj merged commit 4dc1481 into main Jan 9, 2022
@parasj parasj deleted the dev/paras/fix_last_straggler branch January 9, 2022 01:33
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.

File transfer
2 participants