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
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 <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
12fce8a
to
2a33354
Compare
I could make no have any allocation at all:
|
Signed-off-by: Alan Protasio <alanprot@gmail.com>
7850004
to
bbd207f
Compare
Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
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 <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
63e556f
to
22a1a36
Compare
* wip Signed-off-by: Alan Protasio <alanprot@gmail.com> * branchmark Signed-off-by: Alan Protasio <alanprot@gmail.com> * fix some linting / test Signed-off-by: Alan Protasio <alanprot@gmail.com> * No allocation Signed-off-by: Alan Protasio <alanprot@gmail.com> * min pool size Signed-off-by: Alan Protasio <alanprot@gmail.com> * min pool size Signed-off-by: Alan Protasio <alanprot@gmail.com> * fuzzy test Signed-off-by: Alan Protasio <alanprot@gmail.com> * changelog Signed-off-by: Alan Protasio <alanprot@gmail.com> * more benchmark Signed-off-by: Alan Protasio <alanprot@gmail.com> * fix bug on the reuse Signed-off-by: Alan Protasio <alanprot@gmail.com> --------- Signed-off-by: Alan Protasio <alanprot@gmail.com> Signed-off-by: Alex Le <leqiyue@amazon.com>
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]