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

consul: shrink yamux recv buffer on idle streams #1452

Merged
merged 1 commit into from
Dec 1, 2015
Merged

Conversation

armon
Copy link
Member

@armon armon commented Nov 28, 2015

Shrink idle yamux streams in the connection pool to reduce memory overhead. Otherwise, each stream may allocate up to 512KB of buffers, and we may have up to 64 idle streams per remote peer.

/cc: @slackpad

Depends on hashicorp/yamux#21

@slackpad
Copy link
Contributor

LGTM - want to try to get this into 0.6?

@armon
Copy link
Member Author

armon commented Nov 29, 2015

@slackpad we may as well. It's a small change but should drop the memory foot print noticeably.

@slackpad
Copy link
Contributor

Agree - we should be able to do some quick sanity checks on it and it's well-scoped.

slackpad added a commit that referenced this pull request Dec 1, 2015
consul: shrink yamux recv buffer on idle streams
@slackpad slackpad merged commit f109e72 into master Dec 1, 2015
@slackpad slackpad deleted the f-shrink branch December 1, 2015 16:27
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.

2 participants