Skip to content

Latest commit

 

History

History

4-scale-up-tidb-cluster-with-tidb-operator

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Step 4: Scale up TiDB Cluster with TiDB Operator

The following steps guides you the basic usage of a newly deployed TiDB cluster. It takes about 10 minutes to complete.

  • Please make sure you have completed Step 1: Create an EKS cluster and use the same shell session before proceeding.
  • If you have closed the shell session, please run export KUBECONFIG=$PWD/../1-create-an-eks-cluster/kubeconfig.yaml to load the kubeconfig env.

Just Return to the Code of Step 2 2-deploy-tidb-with-tidb-operator

Edit the TiDB Manifest File in Step 2 2-deploy-tidb-with-tidb-operator

tidb-cluster.yaml

  tikv:
    baseImage: pingcap/tikv
    maxFailoverCount: 0
    evictLeaderTimeout: 1m
-   replicas: 1
+   replicas: 2
    requests:
      storage: "1Gi"
    config:
      storage:
        reserve-space: "0MB"
      rocksdb:
        max-open-files: 256
      raftdb:
        max-open-files: 256

Follow the Step 2 Instructions and Apply the Manifest Files

CD to the ../2-deploy-tidb-with-tidb-operator/ directory.

$ cd ../2-deploy-tidb-with-tidb-operator/
$ export PULUMI_CONFIG_PASSPHRASE=""
$ pulumi stack select default

$ pulumi up

[20 Scoring Point] Wait for TiDB Cluster Ready

$ kubectl get po
NAME                                       READY   STATUS    RESTARTS   AGE
basic-discovery-cff6d579c-npzmv            1/1     Running   0          141m
basic-monitor-0                            4/4     Running   0          141m
basic-pd-0                                 1/1     Running   0          110m
basic-tidb-0                               2/2     Running   0          108m
basic-tidb-dashboard-0                     1/1     Running   0          110m
basic-tikv-0                               1/1     Running   0          109m
basic-tikv-1                               1/1     Running   0          105s
tidb-controller-manager-75959db68d-gdbv6   1/1     Running   0          141m
tidb-scheduler-55d58fdd7f-kch9g            2/2     Running   0          141m

You can see the newly created basic-tikv-1 pod.