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

kvserver: enable replicate enqueue on span cfg updates by default #108799

Conversation

kvoli
Copy link
Collaborator

@kvoli kvoli commented Aug 15, 2023

2/3 commits from #108725

kv.enqueue_in_replicate_queue_on_span_config_update.enabled` controls
whether replicas are enqueued into the replicate queue, upon a span
config update. The setting was disabled due to overhead. Re-enable the
setting, as we anticipate significantly reducing the overhead in

Informs: #108795
Release note (ops change): Enable
kv.enqueue_in_replicate_queue_on_span_config_update.enabled
by default. This setting speeds up how quickly replication changes
begin, after changing a related configuration e.g. database primary
region or replication factor.

kvoli added 3 commits August 14, 2023 21:38
The `TestProtectedTimestamp` test previously used a test cluster with 3
nodes, after 0147fcc, the test only uses a single node. Update the
helper function for finding a replica, to expect just 1 server.

Epic: none
Release note: None
Replicas were enqueued into the replicate queue, upon the store
receiving a span config update which could affect the replica. The
replicate queue shouldQueue is relatively more expensive than other
queues.
Introduce the cluster setting
kv.enqueue_in_replicate_queue_on_span_config_update.enabled, which when
set to true, enables queuing up replicas on span config updates; when
set to false, disables queuing replicas on span config updates.
By default, this settings is set to false.

Resolves: cockroachdb#108724

Release note (ops change): Introduce the
kv.enqueue_in_replicate_queue_on_span_config_update.enabled cluster
setting. When set to true, stores in the cluster will enqueue replicas
for replication changes, upon receiving config updates which could
affect the replica. This setting is off by default. Enabling this
setting speeds up how quickly config triggered replication changes
begin, but adds additional CPU overhead. The overhead scales with the
number of leaseholders.
`kv.enqueue_in_replicate_queue_on_span_config_update.enabled` controls
whether replicas are enqueued into the replicate queue, upon a span
config update. The setting was disabled due to overhead. Re-enable the
setting, as we anticipate significantly reducing the overhead in

Informs: cockroachdb#108795
Release note (ops change): Enable
`kv.enqueue_in_replicate_queue_on_span_config_update.enabled`
by default. This setting speeds up how quickly replication changes
begin, after changing a related configuration e.g. database primary
region or replication factor.
@kvoli kvoli changed the title kvserver: expect 1 server in test protected ts kvserver: enable replicate enqueue on span cfg updates by default Aug 15, 2023
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@kvoli
Copy link
Collaborator Author

kvoli commented Aug 29, 2023

Closing in favor of #108809.

@kvoli kvoli closed this Aug 29, 2023
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.

2 participants