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: use no-op cost controller for shared-process tenants #99113

Merged

Conversation

stevendanna
Copy link
Collaborator

@stevendanna stevendanna commented Mar 21, 2023

In the long run, all rate limiting of tenants should be controlled by
a tenant capability.

However, at the moment, we do not have the infrastructure to read
tenant capabilities from the tenant process.

Since, the main user of shared-process tenants is the new,
experimental unified-architecture were we do not anticipate needing
the cost controller for most users, this PR injects a no-op cost
controller for shared-process tenants.

Epic: CRDB-23559

Release note: None

@stevendanna stevendanna requested a review from a team March 21, 2023 12:38
@stevendanna stevendanna requested review from a team as code owners March 21, 2023 12:38
@blathers-crl
Copy link

blathers-crl bot commented Mar 21, 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

Copy link
Contributor

@knz knz left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @stevendanna)


pkg/server/tenant.go line 194 at r1 (raw file):

	// the tenant is exempt. For now we are turning off the
	// tenant-side cost controller for shared-memory tenants until
	// we have the abilility to read capabilities tenant-side.

Can you file the followup issue and link it from here thanks

In the long run, all rate limiting of tenants should be controlled by
a tenant capability.

However, at the moment, we do not have the infrastructure to read
tenant capabilities from the tenant process.

Since, the main user of shared-process tenants is the new,
experimental unified-architecture were we do not anticipate needing
the cost controller for most users, this PR injects a no-op cost
controller for shared-process tenants.

Epic: CRDB-23559

Release note: None
This exempts the tenant from the KV-side tenant limiter. We expect
this to be the default configuration of most shared-process tenants in
the near term. Thus, setting this during benchmark setups provides
more accurate benchmarks.

Epic: none

Release note: None
@stevendanna stevendanna force-pushed the no-cost-controller-shared-process branch from b2f9558 to 9e05d17 Compare March 21, 2023 13:02
@stevendanna
Copy link
Collaborator Author

bors r=knz

@craig
Copy link
Contributor

craig bot commented Mar 21, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 21, 2023

Build succeeded:

@craig craig bot merged commit 18e6641 into cockroachdb:master Mar 21, 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.

3 participants