Skip to content

Commit bd4651f

Browse files
admission: collapse from two WorkQueues to one
The CPU Time Token system previously used two work queues, one for system tenant traffic and one for application tenant traffic. While this does allow us to set different top-level utilization targets for the system tenant vs the application tenant, we believe we can get most of the benefit by mapping all serverless-mode system-tenant requests into a group that is almost surely going to be prioritized over any other tenant. This collapse allows us to delete resourceTier, cpuTimeTokenChildGranter, and the per-tier arrays that organized the system into two WorkQueues, two requesters, and four token buckets. The granter now holds two buckets (canBurst, noBurst): and implements the granter interface directly. The coordinator owns a single WorkQueue, and GetKVWorkQueue always returns it when CTT is enabled. Settings are consolidated: KVCPUTimeUtilGoal becomes the canonical target under admission.cpu_time_tokens.target_util, with the old system_tenant key retired. Also delete the activeMode/lastMode indirection that was previously used to track mode transitions across the filler. GetKVWorkQueue and resetInterval read the cpuTimeTokenACMode cluster setting directly. The per-tier CPU time token metrics (suffixed .system_tenant and .app_tenant) are replaced by single, untiered metrics. Epic: none Release note: none Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
1 parent b977436 commit bd4651f

21 files changed

Lines changed: 819 additions & 1842 deletions

docs/generated/metrics/metrics.yaml

Lines changed: 26 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -13589,36 +13589,18 @@ layers:
1358913589
aggregation: AVG
1359013590
derivative: NON_NEGATIVE_DERIVATIVE
1359113591
owner: cockroachdb/admission-control
13592-
- name: admission.cpu_time_tokens.exhausted_duration_nanos.app_tenant.can_burst
13593-
exported_name: admission_cpu_time_tokens_exhausted_duration_nanos_app_tenant_can_burst
13594-
description: Cumulative nanoseconds the app_tenant/can_burst CPU time token bucket has spent exhausted (tokens <= 0); rate() gives the fraction of wall-clock time the bucket was exhausted
13592+
- name: admission.cpu_time_tokens.exhausted_duration_nanos.can_burst
13593+
exported_name: admission_cpu_time_tokens_exhausted_duration_nanos_can_burst
13594+
description: Cumulative nanoseconds the can_burst CPU time token bucket has spent exhausted (tokens <= 0); rate() gives the fraction of wall-clock time the bucket was exhausted
1359513595
y_axis_label: Nanoseconds
1359613596
type: COUNTER
1359713597
unit: NANOSECONDS
1359813598
aggregation: AVG
1359913599
derivative: NON_NEGATIVE_DERIVATIVE
1360013600
owner: cockroachdb/admission-control
13601-
- name: admission.cpu_time_tokens.exhausted_duration_nanos.app_tenant.no_burst
13602-
exported_name: admission_cpu_time_tokens_exhausted_duration_nanos_app_tenant_no_burst
13603-
description: Cumulative nanoseconds the app_tenant/no_burst CPU time token bucket has spent exhausted (tokens <= 0); rate() gives the fraction of wall-clock time the bucket was exhausted
13604-
y_axis_label: Nanoseconds
13605-
type: COUNTER
13606-
unit: NANOSECONDS
13607-
aggregation: AVG
13608-
derivative: NON_NEGATIVE_DERIVATIVE
13609-
owner: cockroachdb/admission-control
13610-
- name: admission.cpu_time_tokens.exhausted_duration_nanos.system_tenant.can_burst
13611-
exported_name: admission_cpu_time_tokens_exhausted_duration_nanos_system_tenant_can_burst
13612-
description: Cumulative nanoseconds the system_tenant/can_burst CPU time token bucket has spent exhausted (tokens <= 0); rate() gives the fraction of wall-clock time the bucket was exhausted
13613-
y_axis_label: Nanoseconds
13614-
type: COUNTER
13615-
unit: NANOSECONDS
13616-
aggregation: AVG
13617-
derivative: NON_NEGATIVE_DERIVATIVE
13618-
owner: cockroachdb/admission-control
13619-
- name: admission.cpu_time_tokens.exhausted_duration_nanos.system_tenant.no_burst
13620-
exported_name: admission_cpu_time_tokens_exhausted_duration_nanos_system_tenant_no_burst
13621-
description: Cumulative nanoseconds the system_tenant/no_burst CPU time token bucket has spent exhausted (tokens <= 0); rate() gives the fraction of wall-clock time the bucket was exhausted
13601+
- name: admission.cpu_time_tokens.exhausted_duration_nanos.no_burst
13602+
exported_name: admission_cpu_time_tokens_exhausted_duration_nanos_no_burst
13603+
description: Cumulative nanoseconds the no_burst CPU time token bucket has spent exhausted (tokens <= 0); rate() gives the fraction of wall-clock time the bucket was exhausted
1362213604
y_axis_label: Nanoseconds
1362313605
type: COUNTER
1362413606
unit: NANOSECONDS
@@ -13634,144 +13616,72 @@ layers:
1363413616
aggregation: AVG
1363513617
derivative: NONE
1363613618
owner: cockroachdb/admission-control
13637-
- name: admission.cpu_time_tokens.per_tenant.admitted_count.app_tenant
13638-
exported_name: admission_cpu_time_tokens_per_tenant_admitted_count_app_tenant
13639-
description: Cumulative number of requests admitted per tenant by CPU time token admission control; use with wait_time_nanos to compute mean wait time via rate(wait_time) / rate(admitted_count)
13640-
y_axis_label: Requests
13641-
type: COUNTER
13642-
unit: COUNT
13643-
aggregation: AVG
13644-
derivative: NON_NEGATIVE_DERIVATIVE
13645-
owner: cockroachdb/admission-control
13646-
- name: admission.cpu_time_tokens.per_tenant.admitted_count.system_tenant
13647-
exported_name: admission_cpu_time_tokens_per_tenant_admitted_count_system_tenant
13619+
- name: admission.cpu_time_tokens.per_tenant.admitted_count
13620+
exported_name: admission_cpu_time_tokens_per_tenant_admitted_count
1364813621
description: Cumulative number of requests admitted per tenant by CPU time token admission control; use with wait_time_nanos to compute mean wait time via rate(wait_time) / rate(admitted_count)
1364913622
y_axis_label: Requests
1365013623
type: COUNTER
1365113624
unit: COUNT
1365213625
aggregation: AVG
1365313626
derivative: NON_NEGATIVE_DERIVATIVE
1365413627
owner: cockroachdb/admission-control
13655-
- name: admission.cpu_time_tokens.per_tenant.tokens_returned.app_tenant
13656-
exported_name: admission_cpu_time_tokens_per_tenant_tokens_returned_app_tenant
13657-
description: Cumulative CPU time tokens returned per tenant, for example when actual CPU usage was lower than the initial estimate; rate() gives the per-tenant token return rate
13658-
y_axis_label: Tokens
13659-
type: COUNTER
13660-
unit: COUNT
13661-
aggregation: AVG
13662-
derivative: NON_NEGATIVE_DERIVATIVE
13663-
owner: cockroachdb/admission-control
13664-
- name: admission.cpu_time_tokens.per_tenant.tokens_returned.system_tenant
13665-
exported_name: admission_cpu_time_tokens_per_tenant_tokens_returned_system_tenant
13628+
- name: admission.cpu_time_tokens.per_tenant.tokens_returned
13629+
exported_name: admission_cpu_time_tokens_per_tenant_tokens_returned
1366613630
description: Cumulative CPU time tokens returned per tenant, for example when actual CPU usage was lower than the initial estimate; rate() gives the per-tenant token return rate
1366713631
y_axis_label: Tokens
1366813632
type: COUNTER
1366913633
unit: COUNT
1367013634
aggregation: AVG
1367113635
derivative: NON_NEGATIVE_DERIVATIVE
1367213636
owner: cockroachdb/admission-control
13673-
- name: admission.cpu_time_tokens.per_tenant.tokens_used.app_tenant
13674-
exported_name: admission_cpu_time_tokens_per_tenant_tokens_used_app_tenant
13675-
description: Cumulative CPU time tokens consumed per tenant by admitted work; rate() gives the per-tenant token consumption rate
13676-
y_axis_label: Tokens
13677-
type: COUNTER
13678-
unit: COUNT
13679-
aggregation: AVG
13680-
derivative: NON_NEGATIVE_DERIVATIVE
13681-
owner: cockroachdb/admission-control
13682-
- name: admission.cpu_time_tokens.per_tenant.tokens_used.system_tenant
13683-
exported_name: admission_cpu_time_tokens_per_tenant_tokens_used_system_tenant
13637+
- name: admission.cpu_time_tokens.per_tenant.tokens_used
13638+
exported_name: admission_cpu_time_tokens_per_tenant_tokens_used
1368413639
description: Cumulative CPU time tokens consumed per tenant by admitted work; rate() gives the per-tenant token consumption rate
1368513640
y_axis_label: Tokens
1368613641
type: COUNTER
1368713642
unit: COUNT
1368813643
aggregation: AVG
1368913644
derivative: NON_NEGATIVE_DERIVATIVE
1369013645
owner: cockroachdb/admission-control
13691-
- name: admission.cpu_time_tokens.per_tenant.wait_time_nanos.app_tenant
13692-
exported_name: admission_cpu_time_tokens_per_tenant_wait_time_nanos_app_tenant
13693-
description: Cumulative nanoseconds of admission queue wait time per tenant in CPU time token admission control; use with admitted_count to compute mean wait time via rate(wait_time) / rate(admitted_count)
13694-
y_axis_label: Nanoseconds
13695-
type: COUNTER
13696-
unit: NANOSECONDS
13697-
aggregation: AVG
13698-
derivative: NON_NEGATIVE_DERIVATIVE
13699-
owner: cockroachdb/admission-control
13700-
- name: admission.cpu_time_tokens.per_tenant.wait_time_nanos.system_tenant
13701-
exported_name: admission_cpu_time_tokens_per_tenant_wait_time_nanos_system_tenant
13646+
- name: admission.cpu_time_tokens.per_tenant.wait_time_nanos
13647+
exported_name: admission_cpu_time_tokens_per_tenant_wait_time_nanos
1370213648
description: Cumulative nanoseconds of admission queue wait time per tenant in CPU time token admission control; use with admitted_count to compute mean wait time via rate(wait_time) / rate(admitted_count)
1370313649
y_axis_label: Nanoseconds
1370413650
type: COUNTER
1370513651
unit: NANOSECONDS
1370613652
aggregation: AVG
1370713653
derivative: NON_NEGATIVE_DERIVATIVE
1370813654
owner: cockroachdb/admission-control
13709-
- name: admission.cpu_time_tokens.refill.added.app_tenant.can_burst
13710-
exported_name: admission_cpu_time_tokens_refill_added_app_tenant_can_burst
13711-
description: Cumulative tokens added to the app_tenant/can_burst CPU time token bucket via the refill process; rate() gives the effective refill rate
13712-
y_axis_label: Tokens
13713-
type: COUNTER
13714-
unit: COUNT
13715-
aggregation: AVG
13716-
derivative: NON_NEGATIVE_DERIVATIVE
13717-
owner: cockroachdb/admission-control
13718-
- name: admission.cpu_time_tokens.refill.added.app_tenant.no_burst
13719-
exported_name: admission_cpu_time_tokens_refill_added_app_tenant_no_burst
13720-
description: Cumulative tokens added to the app_tenant/no_burst CPU time token bucket via the refill process; rate() gives the effective refill rate
13721-
y_axis_label: Tokens
13722-
type: COUNTER
13723-
unit: COUNT
13724-
aggregation: AVG
13725-
derivative: NON_NEGATIVE_DERIVATIVE
13726-
owner: cockroachdb/admission-control
13727-
- name: admission.cpu_time_tokens.refill.added.system_tenant.can_burst
13728-
exported_name: admission_cpu_time_tokens_refill_added_system_tenant_can_burst
13729-
description: Cumulative tokens added to the system_tenant/can_burst CPU time token bucket via the refill process; rate() gives the effective refill rate
13730-
y_axis_label: Tokens
13731-
type: COUNTER
13732-
unit: COUNT
13733-
aggregation: AVG
13734-
derivative: NON_NEGATIVE_DERIVATIVE
13735-
owner: cockroachdb/admission-control
13736-
- name: admission.cpu_time_tokens.refill.added.system_tenant.no_burst
13737-
exported_name: admission_cpu_time_tokens_refill_added_system_tenant_no_burst
13738-
description: Cumulative tokens added to the system_tenant/no_burst CPU time token bucket via the refill process; rate() gives the effective refill rate
13739-
y_axis_label: Tokens
13740-
type: COUNTER
13741-
unit: COUNT
13742-
aggregation: AVG
13743-
derivative: NON_NEGATIVE_DERIVATIVE
13744-
owner: cockroachdb/admission-control
13745-
- name: admission.cpu_time_tokens.refill.removed.app_tenant.can_burst
13746-
exported_name: admission_cpu_time_tokens_refill_removed_app_tenant_can_burst
13747-
description: Cumulative tokens removed from the app_tenant/can_burst CPU time token bucket when refill rates decrease between intervals
13655+
- name: admission.cpu_time_tokens.refill.added.can_burst
13656+
exported_name: admission_cpu_time_tokens_refill_added_can_burst
13657+
description: Cumulative tokens added to the can_burst CPU time token bucket via the refill process; rate() gives the effective refill rate
1374813658
y_axis_label: Tokens
1374913659
type: COUNTER
1375013660
unit: COUNT
1375113661
aggregation: AVG
1375213662
derivative: NON_NEGATIVE_DERIVATIVE
1375313663
owner: cockroachdb/admission-control
13754-
- name: admission.cpu_time_tokens.refill.removed.app_tenant.no_burst
13755-
exported_name: admission_cpu_time_tokens_refill_removed_app_tenant_no_burst
13756-
description: Cumulative tokens removed from the app_tenant/no_burst CPU time token bucket when refill rates decrease between intervals
13664+
- name: admission.cpu_time_tokens.refill.added.no_burst
13665+
exported_name: admission_cpu_time_tokens_refill_added_no_burst
13666+
description: Cumulative tokens added to the no_burst CPU time token bucket via the refill process; rate() gives the effective refill rate
1375713667
y_axis_label: Tokens
1375813668
type: COUNTER
1375913669
unit: COUNT
1376013670
aggregation: AVG
1376113671
derivative: NON_NEGATIVE_DERIVATIVE
1376213672
owner: cockroachdb/admission-control
13763-
- name: admission.cpu_time_tokens.refill.removed.system_tenant.can_burst
13764-
exported_name: admission_cpu_time_tokens_refill_removed_system_tenant_can_burst
13765-
description: Cumulative tokens removed from the system_tenant/can_burst CPU time token bucket when refill rates decrease between intervals
13673+
- name: admission.cpu_time_tokens.refill.removed.can_burst
13674+
exported_name: admission_cpu_time_tokens_refill_removed_can_burst
13675+
description: Cumulative tokens removed from the can_burst CPU time token bucket when refill rates decrease between intervals
1376613676
y_axis_label: Tokens
1376713677
type: COUNTER
1376813678
unit: COUNT
1376913679
aggregation: AVG
1377013680
derivative: NON_NEGATIVE_DERIVATIVE
1377113681
owner: cockroachdb/admission-control
13772-
- name: admission.cpu_time_tokens.refill.removed.system_tenant.no_burst
13773-
exported_name: admission_cpu_time_tokens_refill_removed_system_tenant_no_burst
13774-
description: Cumulative tokens removed from the system_tenant/no_burst CPU time token bucket when refill rates decrease between intervals
13682+
- name: admission.cpu_time_tokens.refill.removed.no_burst
13683+
exported_name: admission_cpu_time_tokens_refill_removed_no_burst
13684+
description: Cumulative tokens removed from the no_burst CPU time token bucket when refill rates decrease between intervals
1377513685
y_axis_label: Tokens
1377613686
type: COUNTER
1377713687
unit: COUNT

pkg/internal/metricscan/metric_owners.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@ owners:
2222
addsstable_copies: cockroachdb/kv
2323
addsstable_delay_total: cockroachdb/kv
2424
addsstable_proposals: cockroachdb/kv
25-
admission.cpu_time_tokens.exhausted_duration_nanos.%s.%s: cockroachdb/admission-control
26-
admission.cpu_time_tokens.per_tenant.admitted_count.%s: cockroachdb/admission-control
27-
admission.cpu_time_tokens.per_tenant.tokens_returned.%s: cockroachdb/admission-control
28-
admission.cpu_time_tokens.per_tenant.tokens_used.%s: cockroachdb/admission-control
29-
admission.cpu_time_tokens.per_tenant.wait_time_nanos.%s: cockroachdb/admission-control
30-
admission.cpu_time_tokens.refill.added.%s.%s: cockroachdb/admission-control
31-
admission.cpu_time_tokens.refill.removed.%s.%s: cockroachdb/admission-control
25+
admission.cpu_time_tokens.exhausted_duration_nanos.%s: cockroachdb/admission-control
26+
admission.cpu_time_tokens.refill.added.%s: cockroachdb/admission-control
27+
admission.cpu_time_tokens.refill.removed.%s: cockroachdb/admission-control
3228
admission_admitted_snapshot_bytes: cockroachdb/admission-control
3329
admission_cpu_time_tokens_dampening_deficit_nanos: cockroachdb/admission-control
3430
admission_cpu_time_tokens_multiplier: cockroachdb/admission-control
31+
admission_cpu_time_tokens_per_tenant_admitted_count: cockroachdb/admission-control
32+
admission_cpu_time_tokens_per_tenant_tokens_returned: cockroachdb/admission-control
33+
admission_cpu_time_tokens_per_tenant_tokens_used: cockroachdb/admission-control
34+
admission_cpu_time_tokens_per_tenant_wait_time_nanos: cockroachdb/admission-control
3535
admission_cpu_time_tokens_usage_consumed: cockroachdb/admission-control
3636
admission_cpu_time_tokens_usage_returned: cockroachdb/admission-control
3737
admission_elastic_cpu_acquired_nanos: cockroachdb/admission-control

pkg/kv/kvserver/kvadmission/kvadmission.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ func (n *controllerImpl) AdmitKVWork(
353353
}
354354
}
355355
}
356-
cpuAdmissionQ := n.cpuGrantCoords.GetKVWorkQueue(admissionInfo.TenantID.IsSystem())
356+
cpuAdmissionQ := n.cpuGrantCoords.GetKVWorkQueue()
357357
if admissionEnabled {
358358
// Bulk jobs such as backups or row-level TTL issue KV requests with a
359359
// priority of admissionpb.BulkNormalPri or lower; these are eligible for

pkg/roachprod/agents/opentelemetry/files/cockroachdb_metrics.yaml

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -111,27 +111,17 @@ admission_admitted_sql_sql_response_normal_pri: admission.admitted.sql_sql_respo
111111
admission_admitted_sql_sql_response_user_high_pri: admission.admitted.sql_sql_response.user_high_pri
112112
admission_admitted_sql_sql_response_user_low_pri: admission.admitted.sql_sql_response.user_low_pri
113113
admission_cpu_time_tokens_dampening_deficit_nanos: admission.cpu_time_tokens.dampening_deficit_nanos
114-
admission_cpu_time_tokens_exhausted_duration_nanos_app_tenant_can_burst: admission.cpu_time_tokens.exhausted_duration_nanos.app_tenant.can_burst
115-
admission_cpu_time_tokens_exhausted_duration_nanos_app_tenant_no_burst: admission.cpu_time_tokens.exhausted_duration_nanos.app_tenant.no_burst
116-
admission_cpu_time_tokens_exhausted_duration_nanos_system_tenant_can_burst: admission.cpu_time_tokens.exhausted_duration_nanos.system_tenant.can_burst
117-
admission_cpu_time_tokens_exhausted_duration_nanos_system_tenant_no_burst: admission.cpu_time_tokens.exhausted_duration_nanos.system_tenant.no_burst
114+
admission_cpu_time_tokens_exhausted_duration_nanos_can_burst: admission.cpu_time_tokens.exhausted_duration_nanos.can_burst
115+
admission_cpu_time_tokens_exhausted_duration_nanos_no_burst: admission.cpu_time_tokens.exhausted_duration_nanos.no_burst
118116
admission_cpu_time_tokens_multiplier: admission.cpu_time_tokens.multiplier
119-
admission_cpu_time_tokens_per_tenant_admitted_count_app_tenant: admission.cpu_time_tokens.per_tenant.admitted_count.app_tenant
120-
admission_cpu_time_tokens_per_tenant_admitted_count_system_tenant: admission.cpu_time_tokens.per_tenant.admitted_count.system_tenant
121-
admission_cpu_time_tokens_per_tenant_tokens_returned_app_tenant: admission.cpu_time_tokens.per_tenant.tokens_returned.app_tenant
122-
admission_cpu_time_tokens_per_tenant_tokens_returned_system_tenant: admission.cpu_time_tokens.per_tenant.tokens_returned.system_tenant
123-
admission_cpu_time_tokens_per_tenant_tokens_used_app_tenant: admission.cpu_time_tokens.per_tenant.tokens_used.app_tenant
124-
admission_cpu_time_tokens_per_tenant_tokens_used_system_tenant: admission.cpu_time_tokens.per_tenant.tokens_used.system_tenant
125-
admission_cpu_time_tokens_per_tenant_wait_time_nanos_app_tenant: admission.cpu_time_tokens.per_tenant.wait_time_nanos.app_tenant
126-
admission_cpu_time_tokens_per_tenant_wait_time_nanos_system_tenant: admission.cpu_time_tokens.per_tenant.wait_time_nanos.system_tenant
127-
admission_cpu_time_tokens_refill_added_app_tenant_can_burst: admission.cpu_time_tokens.refill.added.app_tenant.can_burst
128-
admission_cpu_time_tokens_refill_added_app_tenant_no_burst: admission.cpu_time_tokens.refill.added.app_tenant.no_burst
129-
admission_cpu_time_tokens_refill_added_system_tenant_can_burst: admission.cpu_time_tokens.refill.added.system_tenant.can_burst
130-
admission_cpu_time_tokens_refill_added_system_tenant_no_burst: admission.cpu_time_tokens.refill.added.system_tenant.no_burst
131-
admission_cpu_time_tokens_refill_removed_app_tenant_can_burst: admission.cpu_time_tokens.refill.removed.app_tenant.can_burst
132-
admission_cpu_time_tokens_refill_removed_app_tenant_no_burst: admission.cpu_time_tokens.refill.removed.app_tenant.no_burst
133-
admission_cpu_time_tokens_refill_removed_system_tenant_can_burst: admission.cpu_time_tokens.refill.removed.system_tenant.can_burst
134-
admission_cpu_time_tokens_refill_removed_system_tenant_no_burst: admission.cpu_time_tokens.refill.removed.system_tenant.no_burst
117+
admission_cpu_time_tokens_per_tenant_admitted_count: admission.cpu_time_tokens.per_tenant.admitted_count
118+
admission_cpu_time_tokens_per_tenant_tokens_returned: admission.cpu_time_tokens.per_tenant.tokens_returned
119+
admission_cpu_time_tokens_per_tenant_tokens_used: admission.cpu_time_tokens.per_tenant.tokens_used
120+
admission_cpu_time_tokens_per_tenant_wait_time_nanos: admission.cpu_time_tokens.per_tenant.wait_time_nanos
121+
admission_cpu_time_tokens_refill_added_can_burst: admission.cpu_time_tokens.refill.added.can_burst
122+
admission_cpu_time_tokens_refill_added_no_burst: admission.cpu_time_tokens.refill.added.no_burst
123+
admission_cpu_time_tokens_refill_removed_can_burst: admission.cpu_time_tokens.refill.removed.can_burst
124+
admission_cpu_time_tokens_refill_removed_no_burst: admission.cpu_time_tokens.refill.removed.no_burst
135125
admission_cpu_time_tokens_usage_consumed: admission.cpu_time_tokens.usage.consumed
136126
admission_cpu_time_tokens_usage_returned: admission.cpu_time_tokens.usage.returned
137127
admission_elastic_cpu_acquired_nanos: admission.elastic_cpu.acquired_nanos

pkg/server/server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,8 @@ func NewServer(cfg Config, stopper *stop.Stopper) (serverctl.ServerStartupInterf
611611
db.AdmissionPacerFactory = gcoords.ElasticCPU
612612
sqlCPUProvider := admission.NewSQLCPUProvider(
613613
&st.SV,
614-
func(tenantID roachpb.TenantID) *admission.WorkQueue {
615-
return gcoords.RegularCPU.GetCTTWorkQueue(tenantID.IsSystem())
614+
func() *admission.WorkQueue {
615+
return gcoords.RegularCPU.GetCTTWorkQueue()
616616
},
617617
)
618618
db.SQLCPUProvider = sqlCPUProvider

pkg/util/admission/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ go_library(
6969
"@com_github_cockroachdb_pebble//:pebble",
7070
"@com_github_cockroachdb_redact//:redact",
7171
"@com_github_cockroachdb_tokenbucket//:tokenbucket",
72-
"@com_github_olekukonko_tablewriter//:tablewriter",
7372
"@com_github_petermattis_goid//:goid",
7473
],
7574
)

0 commit comments

Comments
 (0)