Skip to content

Serialize Outbound Message on Flush (#57084)#57682

Merged
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:57084-7.x
Jun 4, 2020
Merged

Serialize Outbound Message on Flush (#57084)#57682
original-brownbear merged 1 commit intoelastic:7.xfrom
original-brownbear:57084-7.x

Conversation

@original-brownbear
Copy link
Copy Markdown
Contributor

Follow up to #56961:

We can be a little more efficient than just serializing at the IO loop by serializing
only when we flush to a channel. This has the advantage that we don't serialize a long
queue of messages for a channel that isn't writable for a longer period of time (unstable network,
actually writing large volumes of data, etc.).
Also, this further reduces the time for which we hold on to the write buffer for a message,
making allocations because of an empty page cache recycler pool less likely.

backport of #57084

Follow up to #56961:

We can be a little more efficient than just serializing at the IO loop by serializing
only when we flush to a channel. This has the advantage that we don't serialize a long
queue of messages for a channel that isn't writable for a longer period of time (unstable network,
actually writing large volumes of data, etc.).
Also, this further reduces the time for which we hold on to the write buffer for a message,
making allocations because of an empty page cache recycler pool less likely.
@original-brownbear original-brownbear added :Distributed/Network Http and internode communication implementations backport labels Jun 4, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (:Distributed/Network)

@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Jun 4, 2020
@original-brownbear original-brownbear merged commit 24779c8 into elastic:7.x Jun 4, 2020
@original-brownbear original-brownbear deleted the 57084-7.x branch June 4, 2020 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Network Http and internode communication implementations Team:Distributed Meta label for distributed team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants