Skip to content

kvserver: make some cluster settings system only#98353

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
kvoli:230309.kvserver-system-only
Mar 21, 2023
Merged

kvserver: make some cluster settings system only#98353
craig[bot] merged 1 commit intocockroachdb:masterfrom
kvoli:230309.kvserver-system-only

Conversation

@kvoli
Copy link
Copy Markdown
Contributor

@kvoli kvoli commented Mar 9, 2023

Update cluster settings in the kv/kvserver pkg to be SystemOnly.
Previously, there were many cluster settings which which were
TenantWritable or TenantReadOnly. These settings, even if altered
by a tenant have no effect.

There are settings which are not updated, due due to tests relying on
modifying the setting value using a non-system tenant. We ignore these
in this commit and defer to #98723 for handling these.

These settings are updated to be SystemOnly:

kv.bulk_io_write.max_rate
kv.bulk_sst.max_allowed_overage
kv.bulk_sst.target_size
kv.closed_timestamp.follower_reads_enabled
kv.log_range_and_node_events.enabled
kv.range_split.by_load_enabled
kv.range_split.load_cpu_threshold
kv.range_split.load_qps_threshold
kv.replica_stats.addsst_request_size_factor
kv.replication_reports.interval
server.shutdown.lease_transfer_wait

Resolves: #98347

Release note (ops change): Some KV server cluster settings are now system
only. These settings could previously be written or read by
tenants, however writing to these settings had no effect.

@blathers-crl
Copy link
Copy Markdown

blathers-crl bot commented Mar 9, 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
Copy Markdown
Member

This change is Reviewable

@kvoli kvoli force-pushed the 230309.kvserver-system-only branch 4 times, most recently from 22b5ed1 to 423314f Compare March 13, 2023 21:50
@kvoli kvoli changed the title kvserver: make all cluster settings system only kvserver: make most cluster settings system only Mar 13, 2023
@kvoli kvoli force-pushed the 230309.kvserver-system-only branch 2 times, most recently from 3b41e9a to 7ee7b06 Compare March 13, 2023 22:42
@kvoli kvoli self-assigned this Mar 13, 2023
@kvoli kvoli force-pushed the 230309.kvserver-system-only branch 6 times, most recently from 6a02d2c to cc17d78 Compare March 15, 2023 22:41
@kvoli kvoli changed the title kvserver: make most cluster settings system only kvserver: make some cluster settings system only Mar 15, 2023
@kvoli kvoli force-pushed the 230309.kvserver-system-only branch 4 times, most recently from d1662f7 to 16c3c17 Compare March 20, 2023 12:48
@kvoli kvoli marked this pull request as ready for review March 20, 2023 13:11
@kvoli kvoli requested a review from a team as a code owner March 20, 2023 13:11
@kvoli kvoli requested review from a team and andrewbaptist March 20, 2023 13:11
Copy link
Copy Markdown

@andrewbaptist andrewbaptist left a comment

Choose a reason for hiding this comment

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

:lgtm:

Glad this removes a lot of "confusing" tenant settings.

Update cluster settings in the `kv/kvserver` pkg to be `SystemOnly`.
Previously, there were many cluster settings which which were
`TenantWritable`  or `TenantReadOnly`. These settings, even if altered
by a tenant have no effect.

There are settings which are not updated, due due to tests relying on
modifying the setting value using a non-system tenant. We ignore these
in this commit and defer to cockroachdb#98723 for handling these.

These settings are updated to be `SystemOnly`:

```
kv.bulk_io_write.max_rate
kv.bulk_sst.max_allowed_overage
kv.bulk_sst.target_size
kv.closed_timestamp.follower_reads_enabled
kv.log_range_and_node_events.enabled
kv.range_split.by_load_enabled
kv.range_split.load_cpu_threshold
kv.range_split.load_qps_threshold
kv.replica_stats.addsst_request_size_factor
kv.replication_reports.interval
server.shutdown.lease_transfer_wait
```

Resolves: cockroachdb#98347

Release note (ops change): Some KV server cluster settings are now system
only. These settings could previously be written or read by
tenants, however writing to these settings had no effect.
@kvoli kvoli force-pushed the 230309.kvserver-system-only branch from 16c3c17 to 7503b1a Compare March 20, 2023 14:55
@kvoli
Copy link
Copy Markdown
Contributor Author

kvoli commented Mar 20, 2023

bors r=andrewbaptist

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 20, 2023

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 20, 2023

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 20, 2023

Build failed (retrying...):

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Mar 21, 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.

kvserver: update distribution cluster settings to be system only

3 participants