Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bigtable): loadtest support app profile #5882

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions bigtable/cmd/loadtest/loadtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ var (
scratchTable = flag.String("scratch_table", "loadtest-scratch", "name of table to use; should not already exist")
csvOutput = flag.String("csv_output", "",
"output path for statistics in .csv format. If this file already exists it will be overwritten.")
poolSize = flag.Int("pool_size", 1, "size of the gRPC connection pool to use for the data client")
reqCount = flag.Int("req_count", 100, "number of concurrent requests")
poolSize = flag.Int("pool_size", 1, "size of the gRPC connection pool to use for the data client")
reqCount = flag.Int("req_count", 100, "number of concurrent requests")
appProfile = flag.String("app_profile", "", "The application profile to use.")

config *cbt.Config
client *bigtable.Client
Expand Down Expand Up @@ -94,7 +95,13 @@ func main() {
}

log.Printf("Dialing connections...")
client, err = bigtable.NewClient(context.Background(), config.Project, config.Instance, options...)
client, err = bigtable.NewClientWithConfig(
context.Background(),
config.Project,
config.Instance,
bigtable.ClientConfig{AppProfile: *appProfile},
options...,
)
if err != nil {
log.Fatalf("Making bigtable.Client: %v", err)
}
Expand Down