-
Notifications
You must be signed in to change notification settings - Fork 820
Reuse iterators #1574
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 iterators #1574
Conversation
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
This is the benchmark results of existing benchmark. Mostly better for the
And this is for a 650MB tarball chunk for a query as described in this comment prometheus/prometheus#5707 (comment)
|
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Updated numbers for BigChunk after last few changes
|
Also, the allocation improvements from the tarball is not merely the query but also reading the tarball (but is that also a part of the query? I haven't checked yet) |
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
I have updated the PR to use Prometheus 2.12.0. Hence now we no longer vendor tsdb and instead use the tsdb inside prometheus. And, as I had done before, this prometheus vendoring is from this branch https://github.com/prometheus/prometheus/tree/remove-alertmanager, which is just a commit to remove altermanager on top of 2.12.0. |
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
Is this replaced by #1594? Or you will merge one and rebase the other one? |
(I assume you mean #1597) I plan to get the other vendoring PR merged and rebase this one to only include the reuse of iterators. So this can be considered still WIP. |
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
After #1597 was merged I have rebased this PR and is ready for review. |
@@ -34,26 +34,21 @@ github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV | |||
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= | |||
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= | |||
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= | |||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf h1:qet1QNfXsQxTZqLG4oE62mJzwPIB8+Tee4RNCL9ulrY= |
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.
why all these changes in go.sum
?
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.
Apparently there were 2 versions of the same module in go.sum
. I just did go mod tidy
and all those old versions were removed. I wonder why it was not removed in the vendoring PR.
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
This includes prometheus-junkyard/tsdb#642. I have added similar re-use of iterators here. There is a possibility of allocs improvements in ingester push and I am trying to realize that.
I will post the benchmark results soon.
Update: allocs improvement in push path is not happening. Not attempting anymore in this PR.