-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Handle Deserialization off of Transport Threads if Action is Forking #66828
Closed
original-brownbear
wants to merge
4
commits into
elastic:main
from
original-brownbear:handle-deserialization-on-threadpool
Closed
Handle Deserialization off of Transport Threads if Action is Forking #66828
original-brownbear
wants to merge
4
commits into
elastic:main
from
original-brownbear:handle-deserialization-on-threadpool
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We can push deserialization off to the handling threadpool instead of doing it on the transport threads when forking anyway. In case of very large messages like bulk request that can take on the order of a second to fully deserialize this prevents clusters from becoming unstable because transport threads become randomly blocked on this kind of deserialization work. Also, on balance this change could reduce load from GC because we trade longer lived buffers that are cheap to recycle for shorter lived concrete deserialized transport messages. On the flipside of things, for smaller messages the overhead from keeping buffers for longer (buffer page size > message size) increases memory use in some cases potentially.
original-brownbear
added
>non-issue
:Distributed Coordination/Network
Http and internode communication implementations
v8.0.0
v7.12.0
labels
Dec 28, 2020
elasticmachine
added
the
Team:Distributed (Obsolete)
Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
label
Dec 28, 2020
Pinging @elastic/es-distributed (Team:Distributed) |
closing this one, part of this has been introduced in #91367 |
original-brownbear
removed
>non-issue
:Distributed Coordination/Network
Http and internode communication implementations
Team:Distributed (Obsolete)
Meta label for distributed team (obsolete). Replaced by Distributed Indexing/Coordination.
v8.7.0
labels
Dec 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We can push deserialization off to the handling thread-pool instead of doing it on the transport threads
when forking anyway. In case of very large messages like bulk request that can take on the order of a second
to fully deserialize this prevents clusters from becoming unstable because transport threads become randomly
blocked on this kind of deserialization work.
Also, on balance this change could reduce load from GC because we trade longer lived buffers that are cheap to recycle
for shorter lived concrete deserialized transport messages. On the flip-side of things, for smaller messages the overhead
from keeping buffers for longer (buffer page size > message size) increases memory use in some cases potentially.