generateName: oltp-ha-baseline-610-
# resourcePool: ksyun-default
resourcePool: htap
reclaimPolicy:
  lease: 300h
  gcStrategy:
    onFailure:
      artifact:
        monitor: true
        log: true
      reserveEnv:
        durationOnWorkingHour: 300h
    onSuccess:
      artifact:
        monitor: true
        log: true
      reserveEnv:
        durationOnWorkingHour: 300h
items:
  - name: tc
    type: TIDB_CLUSTER
    spec:
      version: v6.1.0-pre
      pd:
        replicas: 3
        baseImage: hub-new.pingcap.net/qa/pd
        topologySpreadConstraints:
           - topologyKey: zone
        config: |
          [replication]
          location-labels = [ "zone", "host" ]
        service:
          type: NodePort
        requests:
          cpu: 4000m
          memory: 8Gi
        limits:
          cpu: 4000m
          memory: 8Gi
      tidb:
        replicas: 3
        maxReplicas: 3
        baseImage: hub-new.pingcap.net/qa/tidb
        topologySpreadConstraints:
           - topologyKey: zone
        requests:
          cpu: 8000m
          memory: 16Gi
        limits:
          cpu: 8000m
          memory: 16Gi
      tikv:
        replicas: 6
        maxReplicas: 6
        baseImage: hub-new.pingcap.net/qa/tikv
        storageClassName: "fast-disks"
        topologySpreadConstraints:
           - topologyKey: zone
        initContainers:
          - name: "init"
            image: alpine
            command:
              [
                "sh",
                "-c",
                "echo 603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4 > /var/lib/tikv/master_key",
              ]
            volumeMounts:
              - mountPath: /var/lib/tikv
                name: tikv
        config: |
          [security]
            [security.encryption]
              data-encryption-method = "aes256-ctr"
              [security.encryption.master-key]
                path = "/var/lib/tikv/master_key"
                type = "file"
        requests:
          cpu: 8000m
          memory: 32Gi
          storage: 2Ti
        limits:
          cpu: 8000m
          memory: 32Gi
          storage: 2Ti
  - name: br
    type: BR_NODE
    spec:
      image: hub-new.pingcap.net/qa/br:v6.1.0-pre
  - name: benchtoolset
    type: WORKLOAD_NODE
    spec:
      container:
        name: benchtoolset
        image: hub.pingcap.net/perf_testing/bench-toolset:latest
        command:
          - tail
          - "-f"
          - "/dev/null"
        resources:
          requests:
            cpu: 8000m
            memory: 16Gi
