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

settings: more guidance #111586

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Conversation

knz
Copy link
Contributor

@knz knz commented Oct 2, 2023

Epic: CRDB-6671

As requested by @dt here.

Release note: None

@blathers-crl
Copy link

blathers-crl bot commented Oct 2, 2023

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.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

// 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
Copy link
Member

Choose a reason for hiding this comment

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

s/ocde/code

Copy link
Contributor Author

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.
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Release note: None
@knz knz force-pushed the 20231002-setting-advice2 branch from 9ae3b6d to 268153b Compare October 2, 2023 16:20
@knz
Copy link
Contributor Author

knz commented Oct 2, 2023

bors r=dt

@craig
Copy link
Contributor

craig bot commented Oct 2, 2023

Build succeeded:

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