Skip to content

Commit

Permalink
removed QueryEnginePlanCacheCapacity from list as it cannot be modifi…
Browse files Browse the repository at this point in the history
…ed, changed pool names

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
  • Loading branch information
harshit-gangal committed Nov 6, 2024
1 parent af6785c commit 364927b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions go/vt/vttablet/tabletserver/debugenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ func handlePost(tsv *TabletServer, w http.ResponseWriter, r *http.Request) {

var err error
switch varname {
case "PoolSize":
case "ReadPoolSize":
err = setIntValCtx(tsv.SetPoolSize)
case "StreamPoolSize":
err = setIntValCtx(tsv.SetStreamPoolSize)
case "TxPoolSize":
case "TransactionPoolSize":
err = setIntValCtx(tsv.SetTxPoolSize)
case "MaxResultSize":
err = setIntVal(tsv.SetMaxResultSize)
Expand Down Expand Up @@ -177,10 +177,9 @@ func handlePost(tsv *TabletServer, w http.ResponseWriter, r *http.Request) {

func handleGet(tsv *TabletServer, w http.ResponseWriter, r *http.Request) {
var vars []envValue
vars = addVar(vars, "PoolSize", tsv.PoolSize)
vars = addVar(vars, "ReadPoolSize", tsv.PoolSize)
vars = addVar(vars, "StreamPoolSize", tsv.StreamPoolSize)
vars = addVar(vars, "TxPoolSize", tsv.TxPoolSize)
vars = addVar(vars, "QueryEnginePlanCacheCapacity", tsv.QueryPlanCacheCap)
vars = addVar(vars, "TransactionPoolSize", tsv.TxPoolSize)
vars = addVar(vars, "MaxResultSize", tsv.MaxResultSize)
vars = addVar(vars, "WarnResultSize", tsv.WarnResultSize)
vars = addVar(vars, "RowStreamerMaxInnoDBTrxHistLen", func() int64 { return tsv.Config().RowStreamer.MaxInnoDBTrxHistLen })
Expand Down

0 comments on commit 364927b

Please sign in to comment.