# test name 
name: "bench_large_table"
creator: "jebter"
# type is the type of the test, supported type: prepare / test
# we will run the prepare tests before all test tests
type: "test"
tags:
  - bench

environment: 
  # machine resources
  resources:
    limits:
      cpu: 1000m
      memory: 2Gi
    requests:
      cpu: 500m
      memory: 1Gi
  # image is a docker execution image for running test 
  # default image: hub.pingcap.net/schrodinger/agent:latest
  # image: hub.pingcap.net/schrodinger/agent:latest

  # execution arguments
  args: ""

# manual for users 
manual:
  # description is to introduce the test purpose and instructions for this case.
  description: |-
    Create a large number of tables, detect delays
  # describe the purpose of the parameters and optional values
  parameters: |-
    db: database name
    db-count: number of dbs,default 1
    table-count: number of tables
    batch-count: The number of tables in a batch
    max-time: Creating a single table takes the most time,ms
    transaction: Use transactions per batch,default value false ,not use
    run-mode: case run mode, support values online / dev, default value online
  # notes is to list all matters which need to be noted
  # eg: the special requirements of the test environment
  notes: |-
    Test process: The set number of tables is created with the specified number of batches, and the average delay and maximum delay are detected.
    If you are running in dev mode, you need to set:
      Export TIDBS="127.0.0.1:4000"--your local tidb cluster
      Export TIDB_SERVICE="127.0.0.1:4000"--your local tidb cluster