Skip to content

Commit

Permalink
[DNM] admission: enable admission control
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
sumeerbhola committed Sep 14, 2021
1 parent f26d7ad commit 1a77cff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/util/admission/work_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ import (
var KVAdmissionControlEnabled = settings.RegisterBoolSetting(
"admission.kv.enabled",
"when true, work performed by the KV layer is subject to admission control",
false).WithPublic()
true).WithPublic()

// SQLKVResponseAdmissionControlEnabled controls whether response processing
// in SQL, for KV requests, is enabled.
var SQLKVResponseAdmissionControlEnabled = settings.RegisterBoolSetting(
"admission.sql_kv_response.enabled",
"when true, work performed by the SQL layer when receiving a KV response is subject to "+
"admission control",
false).WithPublic()
true).WithPublic()

// SQLSQLResponseAdmissionControlEnabled controls whether response processing
// in SQL, for DistSQL requests, is enabled.
var SQLSQLResponseAdmissionControlEnabled = settings.RegisterBoolSetting(
"admission.sql_sql_response.enabled",
"when true, work performed by the SQL layer when receiving a DistSQL response is subject "+
"to admission control",
false).WithPublic()
true).WithPublic()

var admissionControlEnabledSettings = [numWorkKinds]*settings.BoolSetting{
KVWork: KVAdmissionControlEnabled,
Expand Down

0 comments on commit 1a77cff

Please sign in to comment.