Skip to content

Commit

Permalink
sql: add multitenant fairness tests
Browse files Browse the repository at this point in the history
Informs: cockroachdb#65954

Roachtests intended to validate that kv and store admission control
queues distribute database resources fairly.

Release note: None
  • Loading branch information
cucaroach committed May 3, 2022
1 parent ed4c6b4 commit 213dd57
Show file tree
Hide file tree
Showing 7 changed files with 395 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/roachtest/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ func (c *clusterImpl) FetchTimeseriesData(ctx context.Context, t test.Test) erro
}
return ioutil.WriteFile(tsDumpGob+"-run.sh", []byte(`#!/usr/bin/env bash
COCKROACH_DEBUG_TS_IMPORT_FILE=tsdump.gob cockroach start-single-node --insecure
COCKROACH_DEBUG_TS_IMPORT_FILE=tsdump.gob cockroach start-single-node --insecure $*
`), 0755)
})
}
Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/roachtest/cluster/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ go_library(
deps = [
"//pkg/cmd/roachtest/option",
"//pkg/cmd/roachtest/spec",
"//pkg/cmd/roachtest/test",
"//pkg/roachprod/install",
"//pkg/roachprod/logger",
"@com_github_cockroachdb_errors//:errors",
Expand Down
3 changes: 3 additions & 0 deletions pkg/cmd/roachtest/cluster/cluster_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (

"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/option"
"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/spec"
"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/test"
"github.com/cockroachdb/cockroach/pkg/roachprod/install"
"github.com/cockroachdb/cockroach/pkg/roachprod/logger"
)
Expand Down Expand Up @@ -127,4 +128,6 @@ type Cluster interface {
GitClone(
ctx context.Context, l *logger.Logger, src, dest, branch string, node option.NodeListOption,
) error

FetchTimeseriesData(ctx context.Context, t test.Test) error
}
2 changes: 2 additions & 0 deletions pkg/cmd/roachtest/tests/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ go_library(
"mixed_version_jobs.go",
"mixed_version_schemachange.go",
"multitenant.go",
"multitenant_fairness.go",
"multitenant_upgrade.go",
"multitenant_utils.go",
"network.go",
Expand Down Expand Up @@ -178,6 +179,7 @@ go_library(
"//pkg/ts/tspb",
"//pkg/util",
"//pkg/util/binfetcher",
"//pkg/util/buildutil",
"//pkg/util/cancelchecker",
"//pkg/util/contextutil",
"//pkg/util/httputil",
Expand Down
Loading

0 comments on commit 213dd57

Please sign in to comment.