PolarDB-X currently offers two editions: Enterprise and Standard.

Enterprise Edition: This edition boasts a distributed architecture cluster designed to handle more extensive data. Tailored for business scenarios demanding enterprise-level ultra-high concurrency, large-scale complex data queries, and accelerated analysis, it significantly improves the execution efficiency of complex queries and report analyses under massive datasets.

Standard Edition: Adopting a three-node architecture (one primary, one standby, and one log), this edition provides rich specifications and high cost-effectiveness. Through multi-replica synchronous replication, it ensures strong data consistency. Targeted at online business scenarios with ultra-high concurrency, complex queries, and lightweight analysis, it effectively enhances the execution efficiency of complex queries like multi-table associations and aggregation sorting for online business.

This article guides you through creating a complete PolarDB-X Standard Edition cluster. Start by preparing a YAML file describing PolarDB-X Standard Edition resources (XStore):

For the complete XStore definition, refer to this link.

apiVersion: polardbx.aliyun.com/v1            # API Group / Version
kind: XStore                                 # API Name
metadata:                                   # Object Metadata
  name: polardbx-s                           # Object Name
  namespace: default                         # In the namespace
  labels:                                    # Object label set
    kind: test
spec:                                       # Spec
  config:                                   
    controller:
      RPCProtocolVersion: 2                 # RPC protocol version, default is 2
  topology:
    nodeSets:
      - name: cand                           # Leader and Follower configuration
        replicas: 2
        role: Candidate
        template:
          spec:
            image: polardbx/polardbx-engine-2.0:latest
            resources:
              limits:
                cpu: "2"
                memory: 4Gi
      - name: log                            # Logger configuration
        replicas: 1
        role: Voter
        template:
          spec:
            image: polardbx/polardbx-engine-2.0:latest
            resources:
              limits:
                cpu: "1"
                memory: 2Gi

Use the following command to create the XStore object:

kubectl create -f polardbx-standard.yaml

Use the following command to observe the status of the XStore object:

kubectl get xstore polardbx-s
NAME         LEADER   READY   PHASE      DISK   VERSION   AGE
polardbx-s            0/3     Creating   0 B              28s

Once the PHASE in the status is Running, the PolarDB-X cluster is successfully created.

kubectl get pxc polardbx-test
NAME         LEADER                   READY   PHASE     DISK      VERSION   AGE
polardbx-s   polardbx-s-tpdj-cand-1   3/3     Running   3.6 GiB   8.0.18    85s

Field Explanation:

  • LEADER: PolarDB-X Standard Edition Leader POD name
  • READY: Ready status of XStore POD
  • PHASE: Status of XStore cluster
  • DISK: Disk space occupied by XStore
  • VERSION: Kernel version of XStore

results matching ""

    No results matching ""