Skip to content

Rescale threshold calculation#5169

Open
nickbar01234 wants to merge 1 commit intodropwizard:release/4.2.xfrom
nickbar01234:nickbar01234/rescale-threshold-calculation
Open

Rescale threshold calculation#5169
nickbar01234 wants to merge 1 commit intodropwizard:release/4.2.xfrom
nickbar01234:nickbar01234/rescale-threshold-calculation

Conversation

@nickbar01234
Copy link

@nickbar01234 nickbar01234 commented Feb 28, 2026

As noted in #793, no new samples are recorded after ~13 hours as new priority returns infinity. This behavior is solved in #793. However, it's probably an unwanted behavior that we expose alpha, but do not automatically calculate a rescale threshold.

I've added a rescale threshold calculation if the upperbound is less than the DEFAULT_RESCALE_THRESHOLD of 1 hour; otherwise, the old threshold is used to avoid any surprising behavioral change. If you're open to this change, I'll make the corresponding modifications in LockFreeExponentiallyDecayingReservoir.

cc @arteam as you looked over the original issue

@nickbar01234 nickbar01234 requested review from a team as code owners February 28, 2026 04:25
@nickbar01234 nickbar01234 changed the title Infer rescale threshold Rescale threshold calculation Feb 28, 2026
@github-actions github-actions bot added this to the 4.2.39 milestone Feb 28, 2026
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.

1 participant