1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-08 10:35:03 +00:00
gcloud-help/gcloud/spanner/samples/workload

54 lines
1.5 KiB
Text
Raw Normal View History

2022-08-24 09:45:53 +00:00
NAME
gcloud spanner samples workload - generate gRPC traffic for a given sample
app's backend service
SYNOPSIS
gcloud spanner samples workload APPNAME [--duration=DURATION; default="1h"]
[--port=PORT] [--target-qps=TARGET_QPS] [GCLOUD_WIDE_FLAG ...]
DESCRIPTION
Before sending traffic to the backend service, create the database and
start the service with:
$ gcloud spanner samples init APPNAME --instance-id=INSTANCE_ID
$ gcloud spanner samples backend APPNAME --instance-id=INSTANCE_ID
To run all three steps together, use:
$ gcloud spanner samples run APPNAME --instance-id=INSTANCE_ID
EXAMPLES
To generate traffic for the 'finance' sample app, run:
$ gcloud spanner samples workload finance
POSITIONAL ARGUMENTS
APPNAME
The sample app name, e.g. "finance".
FLAGS
--duration=DURATION; default="1h"
Duration of time allowed to run before stopping the workload.
--port=PORT
Port of the running backend service.
--target-qps=TARGET_QPS
Target requests per second.
GCLOUD WIDE FLAGS
These flags are available to all commands: --access-token-file, --account,
--billing-project, --configuration, --flags-file, --flatten, --format,
--help, --impersonate-service-account, --log-http, --project, --quiet,
--trace-token, --user-output-enabled, --verbosity.
Run $ gcloud help for details.
NOTES
These variants are also available:
$ gcloud alpha spanner samples workload
$ gcloud beta spanner samples workload