Skip to content

WIP: Release transport messages incrementally while reading them #127435

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

original-brownbear
Copy link
Member

Code is still WIP but not too much work left actually.

That said ... even in this form the solution essentially up to halves the heap used for
handling large bulk shard requests on non-coordinating data nodes (this is
just one example, there's a couple spots where this saves a lot of memory).
Also, this could be extended to be a little smarter around compression easily, allowing
for potential order of magnitude savings around indexing if we lazy deserialize
individual docs or play similar tricks.

Still a few small steps left to clean this up but even in this
form this solution essentially up to halves the heap used for
handling large bulk shard requests on non-coordinating data nodes (this is
just one example, there's a couple spots where this saves a lot of memory).
Also, this could be extended to be a little smarter around compression easily, allowing
for potential order of magnitude savings around indexing if we lazy deserialize
individual docs or play similar tricks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Distributed Coordination/Network Http and internode communication implementations >non-issue v9.1.0 WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants