idCounter: 3409
workflow_id: 210007
nodes:
- id: __START__
  type: start
  data:
    name: __START__
    inputs:
    - id: '41'
      name: tidbcloud_org_id
      kind: value
      value: '1369847559692509625'
      type: String
      description: ''
      required: true
    outputs:
    - name: tidbcloud_org_id
      type: String
      description: ''
      id: '867'
    spec: {}
  position:
    x: 12
    'y': 1612
  measured:
    width: 800
    height: 492
  selected: false
- id: '10'
  type: testbed_create
  position:
    x: 1112
    'y': 116
  data:
    name: tidbcloud_cluster_all
    inputs:
    - id: '7143'
      name: org_id
      kind: reference
      value: ''
      type: String
      description: ''
      required: false
      fromOutput:
        node: __START__
        parameter: tidbcloud_org_id
    outputs:
    - name: testbed
      type: Object
      subType: Testbed
      description: Handler of the testbed
      objectSchema:
        type: Object
        description: Handler of the testbed
        properties:
          testbed_name:
            type: String
            description: Name of the testbed
          testbed_items:
            type: Object
            description: Items of the testbed
          resourcepool_name:
            type: String
            description: Resource pool name
      id: '3288'
    - name: testbed.testbed_name
      type: String
      description: Name of the testbed
      id: '3289'
    - name: testbed.testbed_items
      type: Object
      description: Items of the testbed
      id: '3290'
    - name: testbed.resourcepool_name
      type: String
      description: Resource pool name
      id: '3291'
    - name: tc
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler of the tc
      objectSchema:
        type: Object
        description: Handler of the tc
        properties:
          cluster_ids:
            type: Object
          private_endpoints:
            type: Object
          cluster_rus:
            type: Object
          tenant_id:
            type: String
      id: '3292'
    spec:
      generateName: testbed
      resourcePool: eks-amd64-default
      reclaimPolicy:
        lease: 240h
        gcStrategy:
          onFailure:
            reserveEnv:
              durationOnWorkingHour: 1h
          onSuccess:
            reserveEnv:
              durationOnWorkingHour: 0h
      items:
      - id: '1797'
        name: tc
        type: TIDBCLOUD_NEXTGEN_CLUSTER
        spec: |
          clusters:
            - tidbGroup: cluster1
              connect: privatelink
              initProvider:
                tidb:
                  nodeQuota:
                    maxNodeCount: 1
                    minNodeCount: 1
                    nodeCount: 1
                    nodeSpec:
                      cpu: 2
                      memoryGi: 8
              requestUnit:
                max: 20000
                min: 5000
            - tidbGroup: cluster2
              connect: privatelink
              initProvider:
                tidb:
                  nodeQuota:
                    maxNodeCount: 1
                    minNodeCount: 1
                    nodeCount: 1
                    nodeSpec:
                      cpu: 2
                      memoryGi: 8
              requestUnit:
                max: 20000
                min: 5000
            - tidbGroup: cluster3
              connect: privatelink
              initProvider:
                tidb:
                  nodeQuota:
                    maxNodeCount: 1
                    minNodeCount: 1
                    nodeCount: 1
                    nodeSpec:
                      cpu: 2
                      memoryGi: 8
              requestUnit:
                max: 20000
                min: 5000
          resourcePoolTemplateClaim:
            arguments:
              - name: owner
                value: liting@pingcap.com
              - name: tikv_tag
                value: cloud-engine-nextgen
              - name: coprocessor_worker_tag
                value: cloud-engine-nextgen
              - name: tikv_worker_tag
                value: cloud-engine-nextgen
              - name: pd_tag
                value: master-nextgen
              - name: pd_scheduling_tag
                value: master-nextgen
              - name: pd_tso_tag
                value: master-nextgen
              - name: tidb_tag
                value: master-nextgen
              - name: tiproxy_tag
                value: main
              - name: tidb_worker_tag
                value: master-nextgen
              - name: tiflash_compute_tag
                value: master-nextgen
              - name: tiflash_write_tag
                value: master-nextgen
              - name: coprocessor_worker_version
                value: v26.3.99
              - name: tikv_version
                value: v26.3.99
              - name: tikv_worker_version
                value: v26.3.99
              - name: pd_version
                value: v26.3.99
              - name: pd_scheduling_version
                value: v26.3.99
              - name: pd_tso_version
                value: v26.3.99
              - name: tidb_version
                value: v26.3.99
              - name: tidb_worker_version
                value: v26.3.99
              - name: tiproxy_version
                value: v26.3.99
              - name: tiflash_compute_version
                value: v26.3.99
              - name: tiflash_write_version
                value: v26.3.99
            exclusive: false
            name: lt-premium-private
            overrides:
              logicalRegionName: aws-staging-us-west-2-mjp
              orgID: "{{.inputs.org_id}}"
            reuseExisting: true
          rootPassword: "12345678"
      testPlanTags:
      - service:benchbot
    fastFail: false
  measured:
    width: 693
    height: 626
  selected: false
  dragging: false
- id: '862'
  type: sleep
  position:
    x: 3156.6666666666665
    'y': 375
  data:
    name: sleep_after_prepare_read
    inputs: []
    outputs: []
    spec:
      duration: 20m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '896'
  type: sleep
  position:
    x: 5121.5
    'y': 170.5
  data:
    name: sleep_after_128th_read
    inputs: []
    outputs: []
    spec:
      duration: 5m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '923'
  type: sleep
  position:
    x: 7101.5
    'y': 170.5
  data:
    name: sleep_after_256th_read
    inputs: []
    outputs: []
    spec:
      duration: 5m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '924'
  type: sleep
  position:
    x: 9081.5
    'y': 170.5
  data:
    name: sleep_after_512th_read
    inputs: []
    outputs: []
    spec:
      duration: 5m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false

- id: '1286'
  type: ti_workload_call
  position:
    x: 3096
    'y': 1096.8333333333333
  data:
    name: oltp_64th_30m_write
    inputs:
    - id: '36'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7144'
      name: tidb_group
      kind: value
      value: cluster1
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7160'
      name: gc_name
      kind: value
      value: cluster1
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3307'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3308'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3309'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_insert
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 64
          # duration: Workload duration in minutes
          duration: 30
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_insert"
          sysbench_options: |-
            --tables=32 --table-size=10000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 691
    height: 425
  selected: false
  dragging: false
- id: '1317'
  type: sleep
  position:
    x: 4131.5
    'y': 1255.3333333333333
  data:
    name: sleep_64th_write
    inputs: []
    outputs: []
    spec:
      duration: 15m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '1318'
  type: ti_workload_call
  position:
    x: 5076
    'y': 1096.8333333333333
  data:
    name: oltp_128th_30m_write
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7145'
      name: tidb_group
      kind: value
      value: cluster1
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7161'
      name: gc_name
      kind: value
      value: cluster1
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3313'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3314'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3315'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_insert
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 128
          # duration: Workload duration in minutes
          duration: 30
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_insert"
          sysbench_options: |-
            --tables=32 --table-size=10000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 691
    height: 425
  selected: false
  dragging: false
- id: '1349'
  type: sleep
  position:
    x: 6111.5
    'y': 1255.3333333333333
  data:
    name: sleep_128th_write
    inputs: []
    outputs: []
    spec:
      duration: 15m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '1350'
  type: ti_workload_call
  position:
    x: 7056
    'y': 1096.8333333333333
  data:
    name: oltp_256th_30m_write
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7146'
      name: tidb_group
      kind: value
      value: cluster1
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7162'
      name: gc_name
      kind: value
      value: cluster1
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3319'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3320'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3321'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_insert
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 256
          # duration: Workload duration in minutes
          duration: 30
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_insert"
          sysbench_options: |-
            --tables=32 --table-size=10000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 691
    height: 425
  selected: false
  dragging: false
- id: '1363'
  type: sleep
  position:
    x: 8091.5
    'y': 1255.3333333333333
  data:
    name: sleep_256th_write
    inputs: []
    outputs: []
    spec:
      duration: 15m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '1364'
  type: ti_workload_call
  position:
    x: 9036
    'y': 1096.8333333333333
  data:
    name: oltp_512th_30m_write
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7147'
      name: tidb_group
      kind: value
      value: cluster1
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7163'
      name: gc_name
      kind: value
      value: cluster1
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3325'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3326'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3327'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_insert
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 512
          # duration: Workload duration in minutes
          duration: 30
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_insert"
          sysbench_options: |-
            --tables=32 --table-size=10000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 691
    height: 425
  selected: false
  dragging: false
- id: '1377'
  type: sleep
  position:
    x: 10071.5
    'y': 1255.3333333333333
  data:
    name: sleep_512th_write
    inputs: []
    outputs: []
    spec:
      duration: 15m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '1378'
  type: ti_workload_call
  position:
    x: 11016
    'y': 1096.8333333333333
  data:
    name: oltp_1024th_30m_write
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7148'
      name: tidb_group
      kind: value
      value: cluster1
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7164'
      name: gc_name
      kind: value
      value: cluster1
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3331'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3332'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3333'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_insert
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 1024
          # duration: Workload duration in minutes
          duration: 30
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_insert"
          sysbench_options: |-
            --tables=32 --table-size=10000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 691
    height: 425
  selected: false
  dragging: false
- id: '1808'
  type: ti_workload_call
  position:
    x: 2106
    'y': 197
  data:
    name: sysbench_prepare_read
    inputs:
    - id: '1809'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      optionalSubType:
      - TIDBCLOUD_NEXTGEN_CLUSTER
      - TIDBCLOUD_NEXTGEN_CLUSTER
      - TIDBCLOUD_NEXTGEN_CLUSTER
      - TIDBCLOUD_SERVERLESS
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
    - id: '7149'
      name: tidb_group
      kind: value
      value: cluster2
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7165'
      name: gc_name
      kind: value
      value: cluster2
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3337'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3338'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3339'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_read_write
      prepare: |-
        params:
          # need_clean: Checking it will clean the data before data preparation
          need_clean: false
          # client_cnt: *[1, 10]* The number of clients to run the preparation.
          client_cnt: 1
          # client_resource: The resource of **per** client to prepare the data
          client_resource: ''
          # db_name: Set name to restore TARGET DB / Empty to restore FULL CLUSTER .
          db_name: "test"
          tool_command: "sysbench"
          subtype: "oltp_read_write"
          thread: 100
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
          storage_url: |-
            s3://qa-workload-datasets/benchmark/sysbench-32-1000w-auto
          s3_endpoint: |-
            https://qa-workload-datasets.s3.us-west-2.amazonaws.com
          # br_options: You can set extra options like '--checksum-concurrency 128 --ddl-batch-size=32 --kespace=kespace-a --pitr-concurrency=128'
          br_options: '--check-requirements=false --concurrency=12 --tikv-max-restore-concurrency=16'
          # br_version: BR Version is recommended to be the same as the TiDB cluster version
          br_version: "master-next-gen"
          # br_base_image: BR Base Image is the image name used by Testbed to deploy BR. Leave empty to use the default image.
          br_base_image: 'gcr.io/pingcap-public/dbaas/br'
          # prepare_method: br_restore/sql_generate
          prepare_method: "br_restore"
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
    fastFail: true
  measured:
    width: 689
    height: 464
  selected: false
  dragging: false

- id: '1883'
  type: ti_workload_call
  position:
    x: 2109
    'y': 1749
  data:
    name: sysbench_prepare_mix
    inputs:
    - id: '1809'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      optionalSubType:
      - TIDBCLOUD_NEXTGEN_CLUSTER
      - TIDBCLOUD_NEXTGEN_CLUSTER
      - TIDBCLOUD_NEXTGEN_CLUSTER
      - TIDBCLOUD_SERVERLESS
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
    - id: '7150'
      name: tidb_group
      kind: value
      value: cluster3
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7166'
      name: gc_name
      kind: value
      value: cluster3
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3352'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3353'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3354'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_read_write
      prepare: |-
        params:
          # need_clean: Checking it will clean the data before data preparation
          need_clean: false
          # client_cnt: *[1, 10]* The number of clients to run the preparation.
          client_cnt: 1
          # client_resource: The resource of **per** client to prepare the data
          client_resource: ''
          # db_name: Set name to restore TARGET DB / Empty to restore FULL CLUSTER .
          db_name: "test"
          tool_command: "sysbench"
          subtype: "oltp_read_write"
          thread: 100
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
          storage_url: |-
            s3://qa-workload-datasets/benchmark/sysbench-32-1000w-auto
          s3_endpoint: |-
            https://qa-workload-datasets.s3.us-west-2.amazonaws.com
          # br_options: You can set extra options like '--checksum-concurrency 128 --ddl-batch-size=32 --kespace=kespace-a --pitr-concurrency=128'
          br_options: '--check-requirements=false --concurrency=12 --tikv-max-restore-concurrency=16'
          # br_version: BR Version is recommended to be the same as the TiDB cluster version
          br_version: "master-next-gen"
          # br_base_image: BR Base Image is the image name used by Testbed to deploy BR. Leave empty to use the default image.
          br_base_image: 'gcr.io/pingcap-public/dbaas/br'
          # prepare_method: br_restore/sql_generate
          prepare_method: "br_restore"
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
    fastFail: true
  measured:
    width: 683
    height: 464
  selected: false
  dragging: false
- id: '2042'
  type: ti_workload_call
  position:
    x: 4087
    'y': 12
  data:
    name: oltp_128th_20m_read
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7151'
      name: tidb_group
      kind: value
      value: cluster2
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7167'
      name: gc_name
      kind: value
      value: cluster2
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3358'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3359'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3360'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_point_select
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 128
          # duration: Workload duration in minutes
          duration: 20
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_point_select"
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 689
    height: 425
  selected: false
  dragging: false
- id: '2080'
  type: ti_workload_call
  position:
    x: 6067
    'y': 12
  data:
    name: oltp_256th_20m_read
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7152'
      name: tidb_group
      kind: value
      value: cluster2
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7168'
      name: gc_name
      kind: value
      value: cluster2
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3364'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3365'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3366'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_point_select
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 256
          # duration: Workload duration in minutes
          duration: 20
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_point_select"
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 689
    height: 425
  selected: false
  dragging: false
- id: '2093'
  type: ti_workload_call
  position:
    x: 8047
    'y': 12
  data:
    name: oltp_512th_20m_read
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7153'
      name: tidb_group
      kind: value
      value: cluster2
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7169'
      name: gc_name
      kind: value
      value: cluster2
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3370'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3371'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3372'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_point_select
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 512
          # duration: Workload duration in minutes
          duration: 20
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_point_select"
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 689
    height: 425
  selected: false
  dragging: false
- id: '2130'
  type: ti_workload_call
  position:
    x: 10027
    'y': 12
  data:
    name: oltp_1024th_20m_read
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7154'
      name: tidb_group
      kind: value
      value: cluster2
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7170'
      name: gc_name
      kind: value
      value: cluster2
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3376'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3377'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3378'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_point_select
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 1024
          # duration: Workload duration in minutes
          duration: 20
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_point_select"
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 689
    height: 425
  selected: false
  dragging: false
- id: '2149'
  type: sleep
  position:
    x: 3156.6666666666665
    'y': 1927
  data:
    name: sleep_after_prepare_mix
    inputs: []
    outputs: []
    spec:
      duration: 20m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '2150'
  type: ti_workload_call
  position:
    x: 4090
    'y': 1786.5
  data:
    name: oltp_128th_20m_mix
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7155'
      name: tidb_group
      kind: value
      value: cluster3
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7171'
      name: gc_name
      kind: value
      value: cluster3
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3382'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3383'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3384'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_read_write
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 128
          # duration: Workload duration in minutes
          duration: 20
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_read_write"
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 683
    height: 425
  selected: false
  dragging: false
- id: '2268'
  type: sleep
  position:
    x: 5121.5
    'y': 1945
  data:
    name: sleep_after_128th_mix
    inputs: []
    outputs: []
    spec:
      duration: 5m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '2269'
  type: ti_workload_call
  position:
    x: 6070
    'y': 1786.5
  data:
    name: oltp_256th_20m_mix
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7156'
      name: tidb_group
      kind: value
      value: cluster3
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7172'
      name: gc_name
      kind: value
      value: cluster3
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3388'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3389'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3390'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_read_write
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 256
          # duration: Workload duration in minutes
          duration: 20
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_read_write"
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 683
    height: 425
  selected: false
  dragging: false
- id: '2294'
  type: sleep
  position:
    x: 7101.5
    'y': 1945
  data:
    name: sleep_after_256th_mix
    inputs: []
    outputs: []
    spec:
      duration: 5m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
- id: '2295'
  type: ti_workload_call
  position:
    x: 8050
    'y': 1786.5
  data:
    name: oltp_512th_20m_mix
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7157'
      name: tidb_group
      kind: value
      value: cluster3
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7173'
      name: gc_name
      kind: value
      value: cluster3
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3394'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3395'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3396'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_read_write
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 512
          # duration: Workload duration in minutes
          duration: 20
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_read_write"
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 683
    height: 425
  selected: false
- id: '2314'
  type: sleep
  position:
    x: 9081.5
    'y': 1945
  data:
    name: sleep_after_512th_mix
    inputs: []
    outputs: []
    spec:
      duration: 5m
    fastFail: false
  measured:
    width: 600
    height: 108
  selected: false
  dragging: false
- id: '2315'
  type: ti_workload_call
  position:
    x: 10030
    'y': 1786.5
  data:
    name: oltp_1024th_20m_mix
    inputs:
    - id: '614'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
    - id: '7158'
      name: tidb_group
      kind: value
      value: cluster3
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7174'
      name: gc_name
      kind: value
      value: cluster3
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3400'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3401'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3402'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_read_write
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
      db_host: tc-tidb
      pd_host: tc-pd
      workload: |-
        params:
          # client_cnt: *[1, 10]* The number of clients to run the workload
          client_cnt: 1
          # client_resource: The resource of **per** client to run the workload
          client_resource: |-
            { "cpu": "15", "memory": "26Gi" }
          db_name: "test"
          thread: 1024
          # duration: Workload duration in minutes
          duration: 20
          tool_command: "sysbench"
          command: "run"
          subtype: "oltp_read_write"
          sysbench_options: |-
            --tables=32 --table-size=1000000 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
    fastFail: true
  measured:
    width: 683
    height: 425
  selected: false
  dragging: false
- id: '2817'
  type: ti_workload_call
  position:
    x: 2105
    'y': 1096.8333333333333
  data:
    name: sysbench_prepare_write
    inputs:
    - id: '1809'
      name: tidb_cluster
      kind: reference
      value: ''
      type: Object
      optionalSubType:
      - TIDBCLOUD_NEXTGEN_CLUSTER
      - TIDBCLOUD_NEXTGEN_CLUSTER
      - TIDBCLOUD_NEXTGEN_CLUSTER
      - TIDBCLOUD_SERVERLESS
      description: Handler to the tidb cluster
      required: true
      fromOutput:
        node: tidbcloud_cluster_all
        parameter: tc
      subType: TIDBCLOUD_NEXTGEN_CLUSTER
    - id: '7159'
      name: tidb_group
      kind: value
      value: cluster1
      type: String
      description: TiDB group name
      required: true
      deletable: true
    - id: '7175'
      name: gc_name
      kind: value
      value: cluster1
      type: String
      description: Cluster name to connect to
      required: true
      deletable: true
    outputs:
    - name: exec_id
      type: String
      description: TiWorkload Execution ID
      id: '3406'
    - name: exec_status
      type: String
      description: TiWorkload Execution Status
      id: '3407'
    - name: exec_tasks
      type: Object
      description: Tasks of the TiWorkload Execution
      id: '3408'
    spec:
      tiworkload_host: https://tiworkload.pingcap.net
      workload_name: oltp_insert
      prepare: |-
        params:
          # need_clean: Checking it will clean the data before data preparation
          need_clean: false
          # client_cnt: *[1, 10]* The number of clients to run the preparation.
          client_cnt: 1
          # client_resource: The resource of **per** client to prepare the data
          client_resource: ''
          db_name: "test"
          tool_command: "sysbench"
          subtype: "oltp_insert"
          thread: 100
          sysbench_options: |-
            --tables=32 --table-size=0 --mysql-ignore-errors=1062,2013,8028,9002,9007 --auto-inc=false
          prepare_method: sql_generate
      db_port: 4000
      pd_port: 2379
      user_id: 240023
      cluster_type: tidbcloud_nextgen_cluster
    fastFail: true
  measured:
    width: 691
    height: 425
  selected: false
edges:
- source: __START__
  sourceHandle: a
  target: '10'
  targetHandle: w1
  id: __START__-10-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
  selected: false
- source: '1286'
  sourceHandle: source
  target: '1317'
  targetHandle: w1
  id: 1286-1317-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '1317'
  sourceHandle: source
  target: '1318'
  targetHandle: w1
  id: 1317-1318-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '1318'
  sourceHandle: source
  target: '1349'
  targetHandle: w1
  id: 1318-1349-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '1349'
  sourceHandle: source
  target: '1350'
  targetHandle: w1
  id: 1349-1350-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '1350'
  sourceHandle: source
  target: '1363'
  targetHandle: w1
  id: 1350-1363-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '1363'
  sourceHandle: source
  target: '1364'
  targetHandle: w1
  id: 1363-1364-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '1364'
  sourceHandle: source
  target: '1377'
  targetHandle: w1
  id: 1364-1377-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '1377'
  sourceHandle: source
  target: '1378'
  targetHandle: w1
  id: 1377-1378-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '10'
  sourceHandle: source
  target: '1808'
  targetHandle: w1
  id: 10-1808-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '1808'
  sourceHandle: source
  target: '862'
  targetHandle: w1
  id: 1808-862-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '862'
  sourceHandle: source
  target: '2042'
  targetHandle: w1
  id: 862-2042-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2042'
  sourceHandle: source
  target: '896'
  targetHandle: w1
  id: 2042-896-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '896'
  sourceHandle: source
  target: '2080'
  targetHandle: w1
  id: 896-2080-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2080'
  sourceHandle: source
  target: '923'
  targetHandle: w1
  id: 2080-923-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '923'
  sourceHandle: source
  target: '2093'
  targetHandle: w1
  id: 923-2093-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2093'
  sourceHandle: source
  target: '924'
  targetHandle: w1
  id: 2093-924-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '924'
  sourceHandle: source
  target: '2130'
  targetHandle: w1
  id: 924-2130-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '1883'
  sourceHandle: source
  target: '2149'
  targetHandle: w1
  id: 1883-2149-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2149'
  sourceHandle: source
  target: '2150'
  targetHandle: w1
  id: 2149-2150-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2150'
  sourceHandle: source
  target: '2268'
  targetHandle: w1
  id: 2150-2268-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2268'
  sourceHandle: source
  target: '2269'
  targetHandle: w1
  id: 2268-2269-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2269'
  sourceHandle: source
  target: '2294'
  targetHandle: w1
  id: 2269-2294-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2294'
  sourceHandle: source
  target: '2295'
  targetHandle: w1
  id: 2294-2295-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2295'
  sourceHandle: source
  target: '2314'
  targetHandle: w1
  id: 2295-2314-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2314'
  sourceHandle: source
  target: '2315'
  targetHandle: w1
  id: 2314-2315-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '2817'
  sourceHandle: source
  target: '1286'
  targetHandle: w1
  id: 2817-1286-w1
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '10'
  sourceHandle: source
  target: '2817'
  targetHandle: w1
  id: 10-1286-write
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
- source: '10'
  sourceHandle: source
  target: '1883'
  targetHandle: w1
  id: 10-1392-mix
  type: custom
  data:
    name: w1
    type: OnCondition
    onConditions:
    - OnSuccess
startNodeParams:
- id: '1'
  name: cluster_version
  type: String
  description: The name of the testbed
  required: true
  value: v8.5.4
- id: '41'
  name: tidbcloud_org_id
  type: String
  description: ''
  required: true
  value: '1369847559692509625'
