Skip to content

multitenant: exempt sqlliveness operations from cost control#71038

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
RaduBerinde:exempt-cost-control
Oct 5, 2021
Merged

multitenant: exempt sqlliveness operations from cost control#71038
craig[bot] merged 1 commit intocockroachdb:masterfrom
RaduBerinde:exempt-cost-control

Conversation

@RaduBerinde
Copy link
Copy Markdown
Member

This change adds infrastructure to allow certain contexts to be exempt
from cost control (meaning that we don't throttle or charge for them)
and uses it to exempt sqlliveness operations - most importantly, the
heartbeats, which are time-sensitive and necessary to keep the SQL
session alive.

Release note: None

Release justification: Necessary fix for the distributed rate limiting
functionality, which is vital for the upcoming Serverless MVP release.
It allows CRDB to throttle clusters that have run out of free or paid
request units (which measure CPU and I/O usage). This functionality is
only enabled in multi-tenant scenarios and should have no impact on
our dedicated customers.

Informs #68479.

@RaduBerinde RaduBerinde requested a review from a team as a code owner October 3, 2021 00:16
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
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 7 of 7 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @ajwerner and @andy-kimball)

This change adds infrastructure to allow certain contexts to be exempt
from cost control (meaning that we don't throttle or charge for them)
and uses it to exempt sqlliveness operations - most importantly, the
heartbeats, which are time-sensitive and necessary to keep the SQL
session alive.

Release note: None

Release justification: Necessary fix for the distributed rate limiting
functionality, which is vital for the upcoming Serverless MVP release.
It allows CRDB to throttle clusters that have run out of free or paid
request units (which measure CPU and I/O usage). This functionality is
only enabled in multi-tenant scenarios and should have no impact on
our dedicated customers.
@RaduBerinde
Copy link
Copy Markdown
Member Author

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Oct 5, 2021

Build succeeded:

@craig craig bot merged commit 9013165 into cockroachdb:master Oct 5, 2021
@RaduBerinde RaduBerinde deleted the exempt-cost-control branch October 12, 2021 03:35
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