-
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
settings: more guidance #111586
settings: more guidance #111586
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
pkg/settings/setting.go
Outdated
// One use cases is to enable optimizations in the KV client side of | ||
// virtual cluster RPCs. For example, if the storage layer uses a | ||
// setting to decide the size of a response, making the setting | ||
// visible enables the client in virtual cluster ocde to |
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.
s/ocde/code
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.
Fixed.
// system-visible settings, can be overridden using ALTER VIRTUAL | ||
// CLUSTER SET CLUSTER SETTING. This can be used during e.g. | ||
// troubleshooting, to allow changing the observed value for a | ||
// virtual cluster without a code change. |
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.
maybe add one more sentence here:
A setting that is expected to be overridden in regular operation to to control application-level behavior is still an application setting, and should use the application class; system-visible is for use by settings that control the system layer but need to be visible, rather than for settings that control the application layer but are not intended to be modified by it; the latter should use an application-class setting, as it controls application behavior, and then rely on an override to prevent modification from within the virtual cluster.
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.
Done.
Release note: None
9ae3b6d
to
268153b
Compare
bors r=dt |
Build succeeded: |
Epic: CRDB-6671
As requested by @dt here.
Release note: None