Skip to content
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

Slim down the ClickHouse database #6352

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Conversation

bnaecker
Copy link
Collaborator

  • Add TTLs to all field tables, by using a materialized column with the time each record is inserted. ClickHouse will retain the latest timestamp, so when we stop inserting, the TTL clock will start counting down on those timeseries records.
  • Update Dropshot dependency.
  • Add operation ID to HTTP service timeseries, remove other fields. Expunge the old timeseries too.
  • Remove unnecessary stingifying of URIs in latency tracking.

@bnaecker bnaecker force-pushed the slim-down-http-latency-histograms branch from 550ebec to 2d4b7d8 Compare August 15, 2024 21:56
- Add TTLs to all field tables, by using a materialized column with the
  time each record is inserted. ClickHouse will retain the latest
  timestamp, so when we stop inserting, the TTL clock will start
  counting down on those timeseries records.
- Update Dropshot dependency.
- Add operation ID to HTTP service timeseries, remove other fields.
  Expunge the old timeseries too.
- Remove unnecessary stingifying of URIs in latency tracking.
- Fixes #6328 and #6331
@bnaecker bnaecker force-pushed the slim-down-http-latency-histograms branch from 2d4b7d8 to 1ab13b4 Compare August 15, 2024 22:04
@bnaecker bnaecker requested review from andrewjstone and ahl August 16, 2024 00:25
Copy link
Contributor

@andrewjstone andrewjstone left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -14,7 +14,7 @@ description = "Duration for the server to handle a request"
units = "seconds"
datum_type = "histogram_f64"
versions = [
{ added_in = 1, fields = [ "route", "method", "status_code" ] }
{ added_in = 1, fields = [ "operation_id", "status_code" ] }
Copy link
Contributor

Choose a reason for hiding this comment

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

Does the added_in version need to be bumped?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm still partway through supporting actual updates to these schema. Until then, we're getting away with this because we drop the data from the old schema. When I do finish that work, then we'd need to add a new versions entry, describing the new fields.

@bnaecker bnaecker enabled auto-merge (squash) August 19, 2024 15:11
@bnaecker bnaecker merged commit b29947e into main Aug 19, 2024
23 checks passed
@bnaecker bnaecker deleted the slim-down-http-latency-histograms branch August 19, 2024 16:25
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.

2 participants