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

Revert "metric: don't omit empty histogram buckets" #89532

Merged

Conversation

dhartunian
Copy link
Collaborator

@dhartunian dhartunian commented Oct 6, 2022

This reverts commit 6f28649.

This change led to a ~4x increase in the size of the _status/vars export which caused memory issues in many deployments with Prometheus and OpenTelemetry collector instances. The benefits of full histogram outputs are not strong enough to pay the cost of significantly higher memory usage on these services that run alongside a cluster. On a minor version bump, they could cause instability in customer infra.

Especially since we've overhauled the histograms on master and 22.2, we're reverting this in the 22.1 branch. This "bug" was in place for years so the revert should not have unexpected negative effects.

Release note (ops change): previously a change was made to how histogram buckets were output in the /_status/vars endpoint that is scraped by Prometheus. This caused a large increase in the number of buckets that causes significantly higher memory consumption in scrapers such as Prometheus and the OpenTelemetry collector. This change is being reverted to reduce the memory pressure on those tools. The next major version of CRDB contains a full overhaul of our histogram outputs that removes this problem entirely.

Reverts: #88331

@dhartunian dhartunian requested review from joshimhoff, jreut and a team October 6, 2022 21:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@joshimhoff joshimhoff requested a review from tbg October 6, 2022 21:34
This reverts commit 6f28649.

Release note (<category, see below>): <what> <show> <why>
@dhartunian dhartunian force-pushed the revert-histogram-changes branch from 262734a to 783b9ef Compare October 6, 2022 22:26
@tbg
Copy link
Member

tbg commented Oct 7, 2022

Yikes! Really sorry about that. This bug just keeps on giving!

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