-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
kv: remove kv.snapshot_recovery.max_rate setting #102596
kv: remove kv.snapshot_recovery.max_rate setting #102596
Conversation
898e754
to
1950b2e
Compare
1950b2e
to
ebbcd1f
Compare
ebbcd1f
to
f39f9db
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙇🏽
} | ||
return nil | ||
}, | ||
).WithPublic() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we "Retire" that metric before just ripping it out?
cockroach/pkg/settings/common.go
Lines 96 to 101 in b39f02a
// SetRetired marks the setting as obsolete. It also hides | |
// it from the output of SHOW CLUSTER SETTINGS. | |
func (c *common) SetRetired() { | |
c.description = "do not use - " + c.description | |
c.retired = true | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's an end to end example
Lines 63 to 72 in fb09177
// deprecatedResolution30StoreDuration is retained for backward compatibility during a version upgrade. | |
var deprecatedResolution30StoreDuration = func() *settings.DurationSetting { | |
s := settings.RegisterDurationSetting( | |
settings.TenantWritable, | |
"timeseries.storage.30m_resolution_ttl", "replaced by timeseries.storage.resolution_30m.ttl", | |
resolution30mDefaultPruneThreshold, | |
) | |
s.SetRetired() | |
return s | |
}() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I changed to retired. and cleaned it up. It ended up being much better to use in the init function as it doesn't assign it a variable name (it is provably retired, not just a naming convention).
f39f9db
to
81c31a8
Compare
Fixes: cockroachdb#63728 There were two settings that controlled snapshot transfer rates, however this has caused numerous problems when they are set differently as the code makes timeout assumptions based on this rate. Epic: none Release note: This change removes a user configurable setting `kv.snapshot_recovery.max_rate`. Guidance to customers has been to always set this equal to `kv.snapshot_rebalance.max_rate` and this change will start using that setting for all snapshots. If the customer previously set `kv.snapshot_recovery.max_rate` it will be cleared after this is released and future attempts to set it will fail with: "ERROR: unknown cluster setting 'kv.snapshot_recovery.max_rate'
81c31a8
to
2980cd6
Compare
bors r=tbg |
Build succeeded: |
Fixes: #63728
There were two settings that controlled snapshot transfer rates, however, this has caused numerous problems when they are set differently as the code makes timeout assumptions based on this rate.
Epic: none
Release note: This change removes a user configurable setting
kv.snapshot_recovery.max_rate
. Guidance to customers has been toalways set this equal to
kv.snapshot_rebalance.max_rate
and thischange will start using that setting for all snapshots. If the customer
previously set
kv.snapshot_recovery.max_rate
it will be cleared afterthis is released and future attempts to set it will fail with:
"ERROR: unknown cluster setting 'kv.snapshot_recovery.max_rate'