gcloud beta spanner samples workload
Stay organized with collections
Save and categorize content based on your preferences.
- NAME
-
- gcloud beta spanner samples workload - generate gRPC traffic for a given sample app's backend service
- SYNOPSIS
-
-
gcloud beta spanner samples workloadAPPNAME[--duration=DURATION; default="1h"] [--port=PORT] [--target-qps=TARGET_QPS] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)Before sending traffic to the backend service, create the database and start the service with:gcloudbetaspannersamplesinitAPPNAME--instance-id=INSTANCE_IDgcloudbetaspannersamplesbackendAPPNAME--instance-id=INSTANCE_IDTo run all three steps together, use:
gcloudbetaspannersamplesrunAPPNAME--instance-id=INSTANCE_ID - EXAMPLES
-
To generate traffic for the 'finance' sample app, run:
gcloudbetaspannersamplesworkloadfinance - 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 helpfor details. - NOTES
-
This command is currently in beta and might change without notice. These
variants are also available:
gcloudspannersamplesworkloadgcloudalphaspannersamplesworkload