github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/docs/user_docs/cli/kbcli_bench_tpcc.md (about)

     1  ---
     2  title: kbcli bench tpcc
     3  ---
     4  
     5  Run tpcc benchmark
     6  
     7  ```
     8  kbcli bench tpcc [Step] [BenchmarkName] [flags]
     9  ```
    10  
    11  ### Examples
    12  
    13  ```
    14    # tpcc on a cluster, that will exec for all steps, cleanup, prepare and run
    15    kbcli bench tpcc mytest --cluster mycluster --user xxx --password xxx --database mydb
    16    
    17    # tpcc on a cluster with cleanup, only cleanup by deleting the testdata
    18    kbcli bench tpcc cleanup mytest --cluster mycluster --user xxx --password xxx --database mydb
    19    
    20    # tpcc on a cluster with prepare, just prepare by creating the testdata
    21    kbcli bench tpcc prepare mytest --cluster mycluster --user xxx --password xxx --database mydb
    22    
    23    # tpcc on a cluster with run, just run by running the test
    24    kbcli bench tpcc run mytest --cluster mycluster --user xxx --password xxx --database mydb
    25    
    26    # tpcc on a cluster with warehouse counts, which is the overall database size scaling parameter
    27    kbcli bench tpcc mytest --cluster mycluster --user xxx --password xxx --database mydb --warehouses 100
    28    
    29    # tpcc on a cluster with thread counts
    30    kbcli bench tpcc mytest --cluster mycluster --user xxx --password xxx --database mydb --threads 4,8
    31    
    32    # tpcc on a cluster with transactions counts
    33    kbcli bench tpcc mytest --cluster mycluster --user xxx --password xxx --database mydb --transactions 1000
    34    
    35    # tpcc on a cluster with duration 10 minutes
    36    kbcli bench tpcc mytest --cluster mycluster --user xxx --password xxx --database mydb --duration 10
    37  ```
    38  
    39  ### Options
    40  
    41  ```
    42        --cluster string         the cluster of database
    43        --database string        database name
    44        --delivery int           specify the percentage of transactions that should be delivery (default 4)
    45        --driver string          the driver of database
    46        --duration int           specify the number of minutes to run (default 1)
    47        --extra-args strings     extra arguments for benchmark
    48    -h, --help                   help for tpcc
    49        --host string            the host of database
    50        --limit-tx-per-min int   limit the number of transactions to run per minute, 0 means no limit
    51        --new-order int          specify the percentage of transactions that should be new orders (default 45)
    52        --order-status int       specify the percentage of transactions that should be order status (default 4)
    53        --password string        the password of database
    54        --payment int            specify the percentage of transactions that should be payments (default 43)
    55        --port int               the port of database
    56        --stock-level int        specify the percentage of transactions that should be stock level (default 4)
    57        --threads ints           specify the number of threads to use (default [1])
    58        --tolerations strings    Tolerations for benchmark, such as '"dev=true:NoSchedule,large=true:NoSchedule"'
    59        --transactions int       specify the number of transactions that each thread should run
    60        --user string            the user of database
    61        --warehouses int         specify the overall database size scaling parameter (default 1)
    62  ```
    63  
    64  ### Options inherited from parent commands
    65  
    66  ```
    67        --as string                      Username to impersonate for the operation. User could be a regular user or a service account in a namespace.
    68        --as-group stringArray           Group to impersonate for the operation, this flag can be repeated to specify multiple groups.
    69        --as-uid string                  UID to impersonate for the operation.
    70        --cache-dir string               Default cache directory (default "$HOME/.kube/cache")
    71        --certificate-authority string   Path to a cert file for the certificate authority
    72        --client-certificate string      Path to a client certificate file for TLS
    73        --client-key string              Path to a client key file for TLS
    74        --context string                 The name of the kubeconfig context to use
    75        --disable-compression            If true, opt-out of response compression for all requests to the server
    76        --insecure-skip-tls-verify       If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure
    77        --kubeconfig string              Path to the kubeconfig file to use for CLI requests.
    78        --match-server-version           Require server version to match client version
    79    -n, --namespace string               If present, the namespace scope for this CLI request
    80        --request-timeout string         The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don't timeout requests. (default "0")
    81    -s, --server string                  The address and port of the Kubernetes API server
    82        --tls-server-name string         Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used
    83        --token string                   Bearer token for authentication to the API server
    84  ```
    85  
    86  ### SEE ALSO
    87  
    88  * [kbcli bench](kbcli_bench.md)	 - Run a benchmark.
    89  
    90  #### Go Back to [CLI Overview](cli.md) Homepage.
    91