Make the batch processor limit data points rather than metrics.#3141
Conversation
|
@dashpole @bogdandrutu can you take a look? |
c522c15 to
9fd1d2e
Compare
|
This was approved during the 3/24 sig meeting: #2754 (comment) |
|
I think this needs a release note in the CHANGELOG.md under breaking changes |
9fd1d2e to
25e0a4e
Compare
Done. |
|
@dashpole please help us to ensure we don't expose unnecessary public APIs if possible, any public API will cost us in the future. |
88ffead to
3f4a67b
Compare
|
Is there any measurable performance impact due to this change? |
3f4a67b to
955952a
Compare
|
@tigrannajaryan I've added new version of benchmark, It looks like there is about On NOTE: This comment was edited, once I updated the Benchmark to exclude data initialisation. With the data initialisation included there was no significant differences. |
5e9978e to
7e59f72
Compare
cc09fa0 to
4b53d58
Compare
|
@jrcamp @Aneurysm9 It would be helpful to have your reviews as well, if you have time. |
7f680d9 to
f5e080a
Compare
|
@bogdandrutu @Aneurysm9 please take a look |
|
Please resolve the merge conflicts. |
|
Merge conflicts resolved. |
tigrannajaryan
left a comment
There was a problem hiding this comment.
LGTM, thanks @kisieland
All requested changes addressed
|
@bogdandrutu PTAL, I believe all your comments are addressed and we can merge. |
|
@kisieland please squash the commits and add a descriptive commit message. Please also include the results of before/after benchmarking in the commit message. |
3910a29 to
74aaaf6
Compare
|
@tigrannajaryan Done |
74aaaf6 to
61c9ec2
Compare
|
@bogdandrutu PTAL |
…f metrics. This change introduces a BenchmarkBatchMetricProcessor that stress tests batching logic. Results before: `BenchmarkBatchMetricProcessor-12 20000 80614 ns/op` Results after the change: `BenchmarkBatchMetricProcessor-12 20000 96184 ns/op`
61c9ec2 to
1fd363d
Compare
|
@kisieland please fix the changelog conflict one more time (sorry). |
|
@tigrannajaryan I don't see any conflicts, I resolved them two times today. |
bogdandrutu
left a comment
There was a problem hiding this comment.
Small optimization to avoid creating a new metric then copy it to destination, but directly copy metadata and points to the destination metric.
|
@bogdandrutu Please merge if everything is ok (merging is blocked for me) |
|
@kisieland Thank you for the contribution and for the patience. |
Description:
Changes batch processor logic to limit data points rather than metrics.
Link to tracking Issue: #2754
Testing:
Ran
go test ./...I've added some edge case test and alerted existing tests.