Skip to content

telemetry: make telemetry endpoint read-only#37136

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
dt:reporting-read-only
May 7, 2019
Merged

telemetry: make telemetry endpoint read-only#37136
craig[bot] merged 1 commit intocockroachdb:masterfrom
dt:reporting-read-only

Conversation

@dt
Copy link
Copy Markdown
Contributor

@dt dt commented Apr 25, 2019

Previously it was reusing the code used in periodic reporting exactly, which had the side-effect of clearing the report.
This changes the endpoint to pass a paramter to the report generation to prevent that.

It also makes explicit what the various callers of GetFeatureCounts want -- raw vs quantized, read-only vs resetting.

Release note: none.

@dt dt requested review from a team and knz April 25, 2019 18:41
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My sincerest apologies for the delayed review. :lgtm:

This may also benefit from a backport.

Reviewed 7 of 7 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@dt
Copy link
Copy Markdown
Contributor Author

dt commented May 6, 2019

eh, absent a user or customer complaint indicating otherwise, I don't think this minor side effect on a debug-only endpoint justifies a backport.

bors r+

@dt
Copy link
Copy Markdown
Contributor Author

dt commented May 6, 2019

bors r-

@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 6, 2019

Canceled

Previously it was reusing the code used in periodic reporting exactly, which had the side-effect of clearing the report.
This changes the endpoint to pass a paramter to the report generation to prevent that.

It also makes explicit what the various callers of GetFeatureCounts want -- raw vs quantized, read-only vs resetting.

Release note: none.
@dt dt force-pushed the reporting-read-only branch from 79f39b4 to b6bd132 Compare May 7, 2019 00:35
@dt dt requested a review from a team May 7, 2019 00:35
@dt
Copy link
Copy Markdown
Contributor Author

dt commented May 7, 2019

bors r+

craig bot pushed a commit that referenced this pull request May 7, 2019
36250: importccl: use direct datum workload generator by default r=dt a=dt

This removes the COCKROACH_IMPORT_WORKLOAD_FASTER flag now that it has been tested for awhile,
and, critically, now that it is actually faster than writing/reading CSVs.

The difference is most pronouced when using distsql sorted IMPORT as it reads twice --
for sampling and then ingest -- but is also measurable in single-pass 'direct' ingest.

All checked passed when running 'fixtures import tpcc --warehouses=1000', and ingest time
using distsql import went from 55m via CSV to 41m using the worklaod reader directly.

Release note: none.

37136: telemetry: make telemetry endpoint read-only r=dt a=dt

Previously it was reusing the code used in periodic reporting exactly, which had the side-effect of clearing the report.
This changes the endpoint to pass a paramter to the report generation to prevent that.

It also makes explicit what the various callers of GetFeatureCounts want -- raw vs quantized, read-only vs resetting.

Release note: none.

Co-authored-by: David Taylor <tinystatemachine@gmail.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented May 7, 2019

Build succeeded

@craig craig bot merged commit b6bd132 into cockroachdb:master May 7, 2019
@dt dt deleted the reporting-read-only branch May 10, 2019 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants