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

feat: introduce end_median for dual. #663

Merged
merged 5 commits into from Mar 19, 2024
Merged

Conversation

jrconlin
Copy link
Member

@jrconlin jrconlin commented Mar 18, 2024

end_median is an optional database config argument for dual. Like
median it will filter UAIDs for migration by the last octet. (Note,
this will still allow UAIDs that match against the median)

This is an attempt to reduce hot tablet entries during migration phases.
It is recommended that end_median be slowly ramped up instead of
median.

Closes SYNC-4198

`end_median` is an optional database config argument for `dual`. Like
`median` it will filter UAIDs for migration by the last octet. (Note,
this will still allow UAIDs that match against the `median`)

This is an attempt to reduce hot tablet entries during migration phases.
It is recommended that `end_median` be slowly ramped up instead of
`median`.

Closes SYNC-4198
@jrconlin jrconlin requested review from pjenvey and taddes March 18, 2024 17:43
@@ -96,6 +103,25 @@ impl DualClientImpl {
} else {
None
};
// determine which uaids to move based on the last byte of their UAID.
// This should reduce the hot table problem.
let end_median = if let Some(end_median) = db_settings.end_median {
Copy link
Member

Choose a reason for hiding this comment

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

Let's also emit end_median in the startup metric as another tag alongside median

@jrconlin jrconlin requested a review from pjenvey March 19, 2024 20:22
@pjenvey pjenvey merged commit 38d6a6d into master Mar 19, 2024
1 check passed
@pjenvey pjenvey deleted the feat/SYNC-4198_end_median branch March 19, 2024 21:43
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.

None yet

2 participants