tiinf:
  grpc:
    enable: true
    port: 10000
    withDefault: false
  gin:
    enable: true
    port: 8080
  metrics:
    enable: true
    port: 9090
  trace:
    enable: true
  logger:
    enable: true
    sentryDsn:
    sentryEnv: ENV
server:
  cloudProvider: CLOUD
  region: REGION
  templatePath: /templates
  image:
    registry: TMPL_TIDB_IMAGE_REGISTRY
    repoPrefix: tidbcloud
    slowLogImage: third-party/busybox:1.34.1
    tikvPreStopImage: tidbcloud/tidb-operator-prestop-checker:v2.2.0-alpha.8
    clusterAgentImage: tidbcloud/cluster-agent-ng:main-3c60979d5966462f30ad30582eeee08026380675
    dataCleanerImage: dbaas/aws-shared-provider-datacleaner:6c829a363e2a1d395985b1fac66022ff9d217c28
    auditLogImage: tidbcloud/audit-ng:05b9708f8bc8049d6a05609a26c96eaa9ec39d92
    dmImage: TMPL_TIDB_IMAGE_REGISTRY/tidbcloud/dm:v26.3.3-nextgen
    imagePullPolicy: Always
  biz:
    defaultDataplaneAccount: "DEFAULT_DATAPLANE_ACCOUNT"
    o11yBizType: dev-tidbcloud-nextgen
    enableHpa: true
    kongDataplanePlugins: auth-server
    # Override cluster-agent's 30s default. Lower wait reduces queue time when
    # many reset_password requests target different keyspaces (e.g. concurrent
    # cluster creates). 5s is enough for the auditlog sidecar to flush.
    privilegedTiDBDeactivationWait: 5s
    enablePca: ENABLE_PCA
    enableSemv2: true
    enableDmOperatorV2: true
    disableO11y: DISABLE_O11Y
    defaultTiBRConfig:
      max_retain_t1_after_sp_deleted_days: 7
      max_retain_t2_after_sp_deleted_days: 7
      max_retain_t3_after_sp_deleted_days: 14
      integrate_config_center: true
  enableRDS: true
  mysql:
    host: RDS_HOST
    user: RDS_USERNAME
    port: RDS_PORT
    database: RDS_DB_NAME
    tlsConfigKey: skip-verify
    logLevel: warn
  enableExecutorGrpc: true
  executorGrpcAddr: executor.cluster-ng-service:10000
  dataPlaneManagerAddr: dataplane-manager.dataplane-manager:10000
  configCenterAddr: config-center.devops:8080
  cronJob:
    enableCleanSharedPool: false
    enableDMWorkerAutoscaler: true
  ruConfig:
    enableScaleSharedPoolByRu: false
    enableScaleTiDBGroupByRu: false
    nodeCountQuota:
      tikv: 36
      tidb: 12
      pd: 3
      pd_tso: 2
      pd_scheduling: 2
      tiflash_write: 12
      tiflash_compute: 12
      tikv_worker: 15
      coprocessor_worker: 15
      tidb_worker: 15
      tiproxy: 9
      resource_manager: 2
    components:
      tikv:
        4c16g:
          min: 0
          max: 199999
          defaultNodeCount: 3
        8c32g:
          min: 200000
      tikv_worker:
        2c8g:
          min: 0
          max: 199999
        8c16g:
          min: 200000
      coprocessor_worker:
        2c8g:
          min: 0
          max: 199999
        8c16g:
          min: 200000
      tidb:
        4c16g:
          min: 0
          max: 199999
          defaultNodeCount: 1
        8c32g:
          min: 200000
      tidb_worker:
        2c8g:
          min: 0
          max: 199999
        8c16g:
          min: 200000
      pd:
        2c8g:
          min: 0
          max: 199999
        8c16g:
          min: 200000
      pd_tso:
        2c8g:
          min: 0
          max: 199999
        8c16g:
          min: 200000
      pd_scheduling:
        2c8g:
          min: 0
          max: 199999
        8c16g:
          min: 200000
      tiflash_write:
        2c8g:
          min: 0
          max: 199999
          defaultNodeCount: 0
        8c32g:
          min: 200000
          defaultNodeCount: 0
      tiflash_compute:
        2c8g:
          min: 0
          max: 199999
          defaultNodeCount: 0
        8c32g:
          min: 200000
          defaultNodeCount: 0
      tiproxy:
        2c8g:
          min: 0
          max: 199999
          defaultNodeCount: 1
        4c8g:
          min: 200000
      resource_manager:
        2c4g:
          min: 0
  controlPlaneMetering:
    enable: ENABLE_METERING
    type: "s3"
    prefix: ""
    region: REGION
    bucket: METERING_BUCKET
    plan: "METERING_PLAN"
    aws:
      assumeRoleArn: METERING_READWRITE_ROLE_ARN
    workerNode:
      enable: ENABLE_METERING_WORKER_NODE
  dataPlaneMetering:
    enable: ENABLE_METERING
    type: "s3"
    prefix: ""
    region: REGION
    bucket: METERING_BUCKET
    aws:
      assumeRoleArn: METERING_WRITEONLY_ROLE_ARN
