tiinf:
  localMode: true
  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: cp9

server:
  cloudProvider: aws
  region: us-west-2
  templatePath: /templates
  dev:
    mockConfigCenter: false
    mockDataplaneManager: false
  image:
    registry: 385595570414.dkr.ecr.us-west-2.amazonaws.com
    repoPrefix: tidbcloud
    imagePullPolicy: Always
    slowLogImage: third-party/busybox:1.34.1
    tikvPreStopImage: tidbcloud/tidb-operator-prestop-checker:v2.2.0-alpha.4
    clusterAgentImage: tidbcloud/cluster-agent-ng:main-74fbdcf933c9106521a870ade24fe0af7b7724f4
    dataCleanerImage: dbaas/aws-shared-provider-datacleaner:6c829a363e2a1d395985b1fac66022ff9d217c28
    auditLogImage: tidbcloud/audit-ng:aecc8ff6e15631cdcfdcd3e1197110084f22fe97
  biz:
    defaultDataplaneAccount: "000000000000"
    o11yBizType: __CP9_SESSION_NAME__
    o11yAgentNamespace: cp9-premium
    disableO11y: false
    enableHpa: false
    enablePca: true
    enableAutoGenNodeSpec: false
    maxTiDBRequestUnit: 300000
    certificateDuration:
      tidbServer: 144h
      tiProxyServer: 144h
      renewBefore: 24h
    defaultTiBRConfig:
      integrate_config_center: true
  mysql:
    host: premium-metadb.cp9-system.svc.cluster.local
    port: 3306
    user: root
    password: cp9-local
    database: cluster_ng_server
    tlsConfigKey: ""
    logLevel: info
  executorGrpcAddr: cluster-ng-executor:10002
  dataPlaneManagerAddr: dataplane-manager.cp9-premium:10000
  configCenterAddr: config-center-regional.cp9-premium.svc.cluster.local:8080
  cronJob:
    enableCleanSharedPool: false
    cleanSharedPoolCron: "0 0 */6 * * *"
  controlPlaneMetering:
    enable: true
    type: s3
    prefix: ""
    region: __CP9_TARGET_REGION__
    bucket: __CP9_METERING_BUCKET__
    plan: premium
    aws:
      assumeRoleArn: __CP9_METERING_READ_WRITE_ROLE_ARN__
    workerNode:
      enable: false
  dataPlaneMetering:
    enable: true
    type: s3
    prefix: ""
    region: __CP9_TARGET_REGION__
    bucket: __CP9_METERING_BUCKET__
    aws:
      assumeRoleArn: __CP9_METERING_WRITER_ROLE_ARN__
  ruConfig:
    enableScaleSharedPoolByRu: false
    enableScaleTiDBGroupByRu: false
    enableAutoscaleTikvCpuScaleOut: false
    enableAutoscaleDiskExpand: false
    enableAutoscaleIopsThroughputExpand: false
    nodeCountQuota:
      tikv: 1
      tidb: 1
      pd: 1
      pd_tso: 1
      pd_scheduling: 2
      tiflash_write: 0
      tiflash_compute: 0
      tikv_worker: 1
      coprocessor_worker: 1
      tidb_worker: 1
      tiproxy: 2
      resource_manager: 1
    components:
      tikv:
        4c16g:
          min: 0
          defaultNodeCount: 3
      tikv_worker:
        4c8g:
          min: 0
      coprocessor_worker:
        4c8g:
          min: 0
      tidb:
        4c16g:
          min: 0
          defaultNodeCount: 1
      tidb_worker:
        2c8g:
          min: 0
      pd:
        2c8g:
          min: 0
      # Dormant for monolithic shared-pool creation. Keep these node specs for
      # the explicit day-2 switch to microservice PD.
      pd_tso:
        4c8g:
          min: 0
      pd_scheduling:
        4c8g:
          min: 0
      tiflash_write:
        2c8g:
          min: 0
          defaultNodeCount: 0
      tiflash_compute:
        2c8g:
          min: 0
          defaultNodeCount: 0
      tiproxy:
        2c8g:
          min: 0
          defaultNodeCount: 1
      resource_manager:
        4c8g:
          min: 0
