-
Notifications
You must be signed in to change notification settings - Fork 818
Reuse write request from distributor to Ingesters #5193
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
Reuse write request from distributor to Ingesters #5193
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a Benchmark test for this?
Yup! will do |
Here is the branchmark: We are basically avoiding allocating the byte[] when serializing.
|
Signed-off-by: Alan Protasio <[email protected]>
Signed-off-by: Alan Protasio <[email protected]>
Signed-off-by: Alan Protasio <[email protected]>
12fce8a
to
2a33354
Compare
I could make no have any allocation at all:
|
Signed-off-by: Alan Protasio <[email protected]>
7850004
to
bbd207f
Compare
Signed-off-by: Alan Protasio <[email protected]>
Signed-off-by: Alan Protasio <[email protected]>
Signed-off-by: Alan Protasio <[email protected]>
Signed-off-by: Alan Protasio <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am up for the change. Very nice improvements!
Signed-off-by: Alan Protasio <[email protected]>
Signed-off-by: Alan Protasio <[email protected]>
63e556f
to
22a1a36
Compare
* wip Signed-off-by: Alan Protasio <[email protected]> * branchmark Signed-off-by: Alan Protasio <[email protected]> * fix some linting / test Signed-off-by: Alan Protasio <[email protected]> * No allocation Signed-off-by: Alan Protasio <[email protected]> * min pool size Signed-off-by: Alan Protasio <[email protected]> * min pool size Signed-off-by: Alan Protasio <[email protected]> * fuzzy test Signed-off-by: Alan Protasio <[email protected]> * changelog Signed-off-by: Alan Protasio <[email protected]> * more benchmark Signed-off-by: Alan Protasio <[email protected]> * fix bug on the reuse Signed-off-by: Alan Protasio <[email protected]> --------- Signed-off-by: Alan Protasio <[email protected]> Signed-off-by: Alex Le <[email protected]>
What this PR does:
Just some tentative to reuse the write requests and the byte slices when marshaling the write requests from distributors to ingesters.
Bench Results:
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]