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

server,settingswatcher: adopt settingswatcher in system tenant #70566

Closed
ajwerner opened this issue Sep 22, 2021 · 1 comment
Closed

server,settingswatcher: adopt settingswatcher in system tenant #70566

ajwerner opened this issue Sep 22, 2021 · 1 comment
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-server-and-security DB Server & Security

Comments

@ajwerner
Copy link
Contributor

ajwerner commented Sep 22, 2021

Is your feature request related to a problem? Please describe.

For secondary tenants, we use a rangefeed-backed mechanism to initialize and watch cluster settings. On the system tenant we use the older gossiped system config. This is unfortunate because we want to stop gossiping the system config (#70560).

Describe the solution you'd like
We should adopt the same code for the system tenant that we use for the secondary tenants.

Additional context

There's the beginnings of a WIP for this in #69269.

Epic CRDB-10489

@ajwerner ajwerner added the C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) label Sep 22, 2021
@blathers-crl blathers-crl bot added the T-server-and-security DB Server & Security label Sep 22, 2021
ajwerner added a commit to ajwerner/cockroach that referenced this issue Oct 25, 2021
This is intended as a short-term workaround to improve performance in
situations of repeated schema changes, like ORM tests.

We have a plan to disable the system config trigger altogether in 22.1 with

This PR provides a cluster setting which allows schema change transactions
to bypass triggerring an update to the system config span. These updates
currently drive only the propagation of zone configs to KV and cluster
settings. The cluster setting behavior is retained until we address cockroachdb#70566.

Release note: None
ajwerner added a commit to ajwerner/cockroach that referenced this issue Dec 22, 2021
This is intended as a short-term workaround to improve performance in
situations of repeated schema changes, like ORM tests.

We have a plan to disable the system config trigger altogether in 22.1 with

This PR provides a cluster setting which allows schema change transactions
to bypass triggerring an update to the system config span. These updates
currently drive only the propagation of zone configs to KV and cluster
settings. The cluster setting behavior is retained until we address cockroachdb#70566.

Release note: None
craig bot pushed a commit that referenced this issue Dec 23, 2021
71910: sql: add a cluster setting to avoid system config triggers r=ajwerner a=ajwerner

This is intended as a short-term workaround to improve performance in
situations of repeated schema changes, like ORM tests.

We have a plan to disable the system config trigger altogether in 22.1 with
#70560. 

This PR provides a cluster setting which allows schema change transactions
to bypass triggerring an update to the system config span. These updates
currently drive only the propagation of zone configs to KV and cluster
settings. The cluster setting behavior is retained until we address #70566.

We have a history of these sorts of unsafe settings in
`kv.raft_log.disable_synchronization_unsafe`.

Release note: None

Co-authored-by: Andrew Werner <[email protected]>
craig bot pushed a commit that referenced this issue Jan 3, 2022
71910: sql: add a cluster setting to avoid system config triggers r=ajwerner a=ajwerner

This is intended as a short-term workaround to improve performance in
situations of repeated schema changes, like ORM tests.

We have a plan to disable the system config trigger altogether in 22.1 with
#70560. 

This PR provides a cluster setting which allows schema change transactions
to bypass triggerring an update to the system config span. These updates
currently drive only the propagation of zone configs to KV and cluster
settings. The cluster setting behavior is retained until we address #70566.

We have a history of these sorts of unsafe settings in
`kv.raft_log.disable_synchronization_unsafe`.

Release note: None

74188: sql: fix InternalExecutor bug r=ajwerner a=ajwerner

Any time we use WithSyntheticDescriptors, it has to be on an unshared internal
executor. The move in #71246 to not have an internal executor hanging around
for the current session hurts here.

Fixes #73788

Release note: None

Co-authored-by: Andrew Werner <[email protected]>
gustasva pushed a commit to gustasva/cockroach that referenced this issue Jan 4, 2022
This is intended as a short-term workaround to improve performance in
situations of repeated schema changes, like ORM tests.

We have a plan to disable the system config trigger altogether in 22.1 with

This PR provides a cluster setting which allows schema change transactions
to bypass triggerring an update to the system config span. These updates
currently drive only the propagation of zone configs to KV and cluster
settings. The cluster setting behavior is retained until we address cockroachdb#70566.

Release note: None
@ajwerner ajwerner self-assigned this Jan 11, 2022
@ajwerner
Copy link
Contributor Author

ajwerner commented Feb 2, 2022

Closed by #70560.

@ajwerner ajwerner closed this as completed Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception) T-server-and-security DB Server & Security
Projects
None yet
Development

No branches or pull requests

1 participant