--- # node.yaml

# pd standard
- component: tikv
  provider: aws
  regions:
    - us-west-2
    - us-east-1
    - ap-northeast-1
    - ap-southeast-1
  annotation: "t3.standard"
  node:
    name: "4 vCPU"
    type: c5.xlarge
    topology: dedicated
    cpu: 4
    memoryGi: 8
    defaultNodeNum: 3
    disk:
      type: gp3
      iops: 4000
      throughputMBs: 400 # MB/s
      minSizeGi: 10 # GiB
      maxSizeGi: 10



# t3.standard （GP3存储空间由原固定1T改为0.5-2T）
- component: tikv
  provider: aws
  regions:
    - us-west-2
    - us-east-1
    - ap-northeast-1
    - ap-southeast-1
  annotation: "t3.standard"
  node:
    name: "8 vCPU"
    type: r5.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 64
    defaultNodeNum: 3
    disk:
      type: gp3
      iops: 4000
      throughputMBs: 400 # MB/s
      minSizeGi: 500 # GiB
      maxSizeGi: 2048
- component: tidb
  provider: aws
  regions:
    - us-west-2
    - us-east-1
    - ap-northeast-1
    - ap-southeast-1
  annotation: "t3.standard"
  node:
    name: "8 vCPU"
    type: c5.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 16
    defaultNodeNum: 2
    disk:
      type: local-storage

- component: pd
  provider: aws
  regions:
    - eu-central-1
  nonStandardCustomers:
    - tenantId: 1
      tenantName: ManagementPortal
    - tenantId: 1372813089188031284
      tenantName: EasyPay
  annotation: "t3.standard"
  node:
    name: "8 vCPU"
    type: r5.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 64
    defaultNodeNum: 3
    disk:
      type: gp3
      iops: 4000
      throughputMBs: 400 # MB/s
      minSizeGi: 500 # GiB
      maxSizeGi: 2048
- component: tikv
  provider: aws
  regions:
    - eu-central-1
  nonStandardCustomers:
    - tenantId: 1
      tenantName: ManagementPortal
    - tenantId: 1372813089188031284
      tenantName: EasyPay
  annotation: "t3.standard"
  node:
    name: "8 vCPU"
    type: r5.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 64
    defaultNodeNum: 3
    disk:
      type: gp3
      iops: 4000
      throughputMBs: 400 # MB/s
      minSizeGi: 500 # GiB
      maxSizeGi: 2048
- component: tidb
  provider: aws
  regions:
    - eu-central-1
  nonStandardCustomers:
    - tenantId: 1
      tenantName: ManagementPortal
    - tenantId: 1372813089188031284
      tenantName: EasyPay
  annotation: "t3.standard"
  node:
    name: "8 vCPU"
    type: c5.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 16
    defaultNodeNum: 2
    disk:
      type: local-storage

# ti.tiny (tikv磁盘是否为GP3？)
- component: pd
  provider: aws
  regions:
    - ap-southeast-1
  nonStandardCustomers:
    - tenantId: 1348927713213157376
      tenantName: portcast
  annotation: "t1.tiny"
  node:
    name: "2 vCPU"
    type: t3a.small
    topology: dedicated
    cpu: 2
    memoryGi: 2
    defaultNodeNum: 1
    disk:
      type: gp3
      iops: 4000
      throughputMBs: 400 # MB/s
      minSizeGi: 10 # GiB 管理后台此处为50
      maxSizeGi: 10
- component: tikv
  provider: aws
  regions:
    - ap-southeast-1
  nonStandardCustomers:
    - tenantId: 1348927713213157376
      tenantName: portcast
  annotation: "t1.tiny"
  node:
    name: "2 vCPU"
    type: t3a.small
    topology: dedicated
    cpu: 2
    memoryGi: 2
    defaultNodeNum: 3
    disk:
      type: gp3
      iops: 4000
      throughputMBs: 400 # MB/s
      minSizeGi: 50 # GiB
      maxSizeGi: 50
- component: tidb
  provider: aws
  regions:
    - ap-southeast-1
  nonStandardCustomers:
    - tenantId: 1348927713213157376
      tenantName: portcast
  annotation: "t1.tiny"
  node:
    name: "2 vCPU"
    type: t3a.small
    topology: dedicated
    cpu: 2
    memoryGi: 2
    defaultNodeNum: 2
    disk:
      type: local-storage

  # h1.standard
- component: pd
  provider: aws
  regions:
    - ap-northeast-2
  nonStandardCustomers:
    - tenantId: 1311265642040528896
      tenantName: CloudChat
  annotation: "h1.standard"
  node:
    name: "4 vCPU"
    type: c5.xlarge
    topology: dedicated
    cpu: 4
    memoryGi: 8
    defaultNodeNum: 3
    disk:
      type: gp3
      iops: 4000
      throughputMBs: 400 # MB/s
      minSizeGi: 10 # GiB
      maxSizeGi: 10
- component: tikv
  provider: aws
  regions:
    - ap-northeast-2
  nonStandardCustomers:
    - tenantId: 1311265642040528896
      tenantName: CloudChat
  annotation: "h1.standard"
  node:
    name: "8 vCPU"
    type: i3.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 61 # 管理后台此处为61
    defaultNodeNum: 3
    disk:
      type: local-storage
      minSizeGi: 1900 # 与全哥文档不一致
      maxSizeGi: 1900 # 与全哥文档不一致
- component: tidb
  provider: aws
  regions:
    - ap-northeast-2
  nonStandardCustomers:
    - tenantId: 1311265642040528896
      tenantName: CloudChat
  annotation: "h1.standard"
  node:
    name: "8 vCPU"
    type: c5.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 16
    defaultNodeNum: 2
    disk:
      type: local-storage

- component: tiflash
  provider: aws
  regions:
    - ap-northeast-2
  nonStandardCustomers:
    - tenantId: 1311265642040528896
      tenantName: CloudChat
  annotation: "h1.standard"
  node:
    name: "8 vCPU"
    type: i3.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 61
    defaultNodeNum: 1
    disk:
      type: local-storage
      minSizeGi: 1900 # 与全哥文档不一致
      maxSizeGi: 1900 # 与全哥文档不一致

# h1.highcpu
- component: pd
  provider: aws
  regions:
    - ap-northeast-2
  nonStandardCustomers:
    - tenantId: 1311265642040528896
      tenantName: CloudChat
  annotation: "h1.highcpu"
  node:
    name: "8 vCPU"
    type: c5.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 16
    defaultNodeNum: 3
    disk:
      type: local-storage
      minSizeGi: 1900 # GiB # 与全哥文档不一致
      maxSizeGi: 1900 
- component: tikv
  provider: aws
  regions:
    - ap-northeast-2
  nonStandardCustomers:
    - tenantId: 1311265642040528896
      tenantName: CloudChat
  annotation: "h1.highcpu"
  node:
    name: "16 vCPU"
    type: i3.4xlarge
    topology: dedicated
    cpu: 16
    memoryGi: 122
    defaultNodeNum: 3
    disk:
      type: local-storage
      minSizeGi: 1900 # GiB # 与全哥文档不一致
      maxSizeGi: 1900 # 与全哥文档不一致
- component: tidb
  provider: aws
  regions:
    - ap-northeast-2
  nonStandardCustomers:
    - tenantId: 1311265642040528896
      tenantName: CloudChat
  annotation: "h1.highcpu"
  node:
    name: "16 vCPU"
    type: c5.4xlarge
    topology: dedicated
    cpu: 16
    memoryGi: 32
    defaultNodeNum: 2
    disk:
      type: local-storage

# h3.standard
- component: tiflash
  provider: aws
  regions:
    - us-west-2
    - us-east-1
    - ap-northeast-1
    - ap-southeast-1
  annotation: "h3.standard"
  node:
    name: "8 vCPU"
    type: r5.2xlarge
    topology: dedicated
    cpu: 8
    memoryGi: 64
    defaultNodeNum: 1
    disk:
      type: gp3
      iops: 6000
      throughputMBs: 625 # MB/s
      minSizeGi: 1024 # GiB
      maxSizeGi: 1024

# h3.extra.1” # 管理后台此处为GP3
- component: tidb
  provider: aws
  regions:
    - ap-northeast-1
  annotation: "h3.extra.1"
  node:
    name: "16 vCPU"
    type: r5.4xlarge
    topology: dedicated
    cpu: 16
    memoryGi: 128
    defaultNodeNum: 2
    disk:
      type: local-storage

# dev tier
- component: pd
  provider: aws
  regions:
    - us-west-2
    - us-east-1
    - ap-northeast-1
    - ap-southeast-1
  annotation: "s1.dev"
  node:
    name: "1 vCPU"
    type: aws_freetier_10
    topology: shared
    cpu: 1
    memoryGi: 1
    defaultNodeNum: 1
    disk:
      type: gp3 
      iops: 3000 
      throughputMBs: 125 # MB/s
      minSizeGi: 2 # GiB
      maxSizeGi: 2  
- component: tikv
  provider: aws
  regions:
    - us-west-2
    - us-east-1
    - ap-northeast-1
    - ap-southeast-1
  annotation: "s1.dev"
  node:
    name: "1 vCPU"
    type: aws_freetier_10
    topology: shared
    cpu: 1
    memoryGi: 1
    defaultNodeNum: 1
    disk:
      type: gp3
      iops: 3000
      throughputMBs: 125 # MB/s
      minSizeGi: 16 # GiB
      maxSizeGi: 16
- component: tidb
  provider: aws
  regions:
    - us-west-2
    - us-east-1
    - ap-northeast-1
    - ap-southeast-1
  annotation: "s1.dev"
  node:
    name: "1 vCPU"
    type: aws_freetier_10
    topology: shared
    cpu: 1
    memoryGi: 1
    defaultNodeNum: 1
    disk:
      type: local-storage

- component: tiflash
  provider: aws
  regions:
    - us-west-2
    - us-east-1
    - ap-northeast-1
    - ap-southeast-1
  annotation: "s1.dev"
  node:
    name: "1 vCPU"
    type: aws_freetier_10
    topology: shared
    cpu: 1
    memoryGi: 1
    defaultNodeNum: 1
    disk:
      type: gp3
      iops: 3000
      throughputMBs: 125 # MB/s
      minSizeGi: 16 # GiB
      maxSizeGi: 16

#gcp
# pd standard
- component: pd
  provider: gcp
  regions:
    - asia-northeast1
    - us-west1
    - us-central1
    - asia-southeast1
  annotation: "t2.standard"
  node:
    name: "4 vCPU"
    type: n1-standard-4 
    topology: dedicated
    cpu: 4
    memoryGi: 15
    defaultNodeNum: 3
    disk:
      type: pd-ssd
      iops:
      throughputMBs:
      minSizeGi: 10 # GiB #和全哥文档不一致
      maxSizeGi: 10

- component: pd
  provider: gcp
  regions:
    - asia-northeast1
  nonStandardCustomers:
    - tenantId: 1326455380288475136
      tenantName: Colopl
  annotation: "t1.small"
  node:
    name: "1 vCPU"
    type: n1-standard-1
    topology: dedicated
    cpu: 1
    memoryGi: 3
    defaultNodeNum: 1
    disk:
      type: pd-ssd
      iops:
      throughputMBs:
      minSizeGi: 10 # GiB
      maxSizeGi: 10
- component: tikv
  provider: gcp
  regions:
    - asia-northeast1
  nonStandardCustomers:
    - tenantId: 1326455380288475136
      tenantName: Colopl
  annotation: "t1.small"
  node:
    name: "1 vCPU"
    type: n1-standard-1
    topology: dedicated
    cpu: 1
    memoryGi: 3
    defaultNodeNum: 3
    disk:
      type: pd-ssd
      iops:
      throughputMBs:
      minSizeGi: 100 # GiB
      maxSizeGi: 100
- component: tidb
  provider: gcp
  regions:
    - asia-northeast1
  nonStandardCustomers:
    - tenantId: 1326455380288475136
      tenantName: Colopl
  annotation: "t1.small"
  node:
    name: "1 vCPU"
    type: n1-standard-1
    topology: dedicated
    cpu: 1
    memoryGi: 3
    defaultNodeNum: 2
    disk:
      type: local-storage

# t2.standard
- component: tikv
  provider: gcp
  regions:
    - asia-northeast1
    - us-west1
    - us-central1
    - asia-southeast1
  nonStandardCustomers:
    - tenantId: 1326455380288475136
      tenantName: Colopl；
    - tenantId: 1372813089187641281
      tenantName: ColoplPOC
  annotation: "t2.standard"
  node:
    name: "8 vCPU"
    type: n2-highmem-8
    topology: dedicated
    cpu: 8
    memoryGi: 64
    defaultNodeNum: 3
    disk:
      type: local-storage
      minSizeGi: 1500 # GiB #和全哥文档不一致
      maxSizeGi: 1500 #和全哥文档不一致
- component: tidb
  provider: gcp
  regions:
    - asia-northeast1
    - us-west1
    - us-central1
    - asia-southeast1
  nonStandardCustomers:
    - tenantId: 1326455380288475136
      tenantName: Colopl；
    - tenantId: 1372813089187641281
      tenantName: ColoplPOC
  annotation: "t2.standard"
  node:
    name: "8 vCPU"
    type: n2-standard-8
    topology: dedicated
    cpu: 8
    memoryGi: 32
    defaultNodeNum: 2
    disk:
      type: local-storage

# t3.standard
- component: tikv
  provider: gcp
  regions:
    - asia-northeast1
    - us-west1
    - us-central1
    - asia-southeast1
  annotation: "t3.standard" #与h3.standard 重复
  node:
    name: "8 vCPU"
    type: n2-highmem-8
    topology: dedicated
    cpu: 8
    memoryGi: 64
    defaultNodeNum: 3
    disk:
      type: pd-ssd  # 是否需指定以下配置
      iops:
      throughputMBs:
      minSizeGi: 1024 # GiB
      maxSizeGi: 1024
- component: tidb
  provider: gcp
  regions:
    - asia-northeast1
    - us-west1
    - us-central1
    - asia-southeast1
  annotation: "t3.standard" #与h3.standard 重复
  node:
    name: "8 vCPU"
    type: n2-standard-8
    topology: dedicated
    cpu: 8
    memoryGi: 32
    defaultNodeNum: 2
    disk:
      type: local-storage

# h3.standard （不同region的tidb存储空间不同？）
- component: tiflash
  provider: gcp
  regions:
    - asia-northeast1
    - us-west1
    - us-central1
    - asia-southeast1
  annotation: "h3.standard"
  node:
    name: "8 vCPU"
    type: n2-highmem-8
    topology: dedicated
    cpu: 8
    memoryGi: 64
    defaultNodeNum: 1
    disk:
      type: pd-ssd
      iops:
      throughputMBs:
      minSizeGi: 1024 # GiB
      maxSizeGi: 1024

# h3.highcpu
- component: tiflash
  provider: gcp
  regions:
    - us-west1
  annotation: "h3.highcpu"
  node:
    name: "32 vCPU"
    type: n2-highmem-32
    topology: dedicated
    cpu: 32
    memoryGi: 256
    defaultNodeNum: 1
    disk:
      type: pd-ssd
      iops:
      throughputMBs:
      minSizeGi: 2048 # GiB
      maxSizeGi: 2048
