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

tenantcostcontrol: change settings to TenantReadOnly #76680

Merged
merged 3 commits into from
Feb 17, 2022

Conversation

RaduBerinde
Copy link
Member

tenant settings: implement TenantReadOnly semantics

This commit implements the advertised TenantReadOnly semantics,
changes the kv.protectedts.reconciliation.interval setting to
TenantReadOnly, and adds some relevant tests.

Note that the settings watcher already ignores any values for
TenantReadOnly variables in the system.settings table. This commit
includes a test for that.

Release note: None

tenantcostcontrol: change settings to TenantReadOnly

This commit changes the settings relevant for RU accounting and
limiting to TenantReadOnly. The tenant cost model values are now
used (instead of always using the default values). The range of values
for tenant_cpu_usage_allowance is extended since we no longer have
to worry about the tenant bumping it up.

Release note: None

This commit implements the advertised `TenantReadOnly` semantics,
changes the `kv.protectedts.reconciliation.interval` setting to
`TenantReadOnly`, and adds some relevant tests.

Note that the settings watcher already ignores any values for
`TenantReadOnly` variables in the system.settings table. This commit
includes a test for that.

Release note: None
This commit changes the settings relevant for RU accounting and
limiting to `TenantReadOnly`. The tenant cost model values are now
used (instead of always using the default values). The range of values
for `tenant_cpu_usage_allowance` is extended since we no longer have
to worry about the tenant bumping it up.

Release note: None
@RaduBerinde RaduBerinde requested a review from a team as a code owner February 16, 2022 15:31
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@ajwerner ajwerner left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 3 of 3 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @ajstorm and @dt)

@RaduBerinde RaduBerinde requested a review from a team as a code owner February 16, 2022 17:27
@RaduBerinde
Copy link
Member Author

I added a commit that fixes the use of settings in the jobsprotectedts tests. CC @adityamaru

This commit fixes these tests to set these settings on the host
cluster as well as on the tenant.

Release note: None
@RaduBerinde
Copy link
Member Author

bors r+

@craig
Copy link
Contributor

craig bot commented Feb 17, 2022

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Feb 17, 2022

Build succeeded:

@craig craig bot merged commit c9b5bb9 into cockroachdb:master Feb 17, 2022
@RaduBerinde RaduBerinde deleted the tenant-read-only branch February 18, 2022 02:39
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