Skip to main content

This is a tool to download and install PolarDB-X

Project description

What is pxd?

pxd(polardbx-deployer) is a tool to deploy PolarDB-X.

Install

Run command:

pip install pxd

More details see: Quick Start

Usage

Create PolarDB-X for tryout

Create a default cluster(1 GMS, 1 DN, 1 CN, 1 CDC) for tryout on your local machine:

pxd tryout

You can specify cn and dn version using the following options:

Options:
  -name TEXT            PolarDB-X Cluster name, default: pxc-tryout
  -cn_replica INTEGER   cn node count
  -cn_version TEXT      cn node version
  -dn_replica INTEGER   dn node count
  -dn_version TEXT      dn node version
  -cdc_replica INTEGER  cdc node count
  -cdc_version TEXT     cdc node version
  -leader_only BOOLEAN  create gms and dn with single node by default,
                        otherwise a x-paxos cluster

  --help                Show this message and exit.

If you want to create gms and dn with a x-paxos cluster, using the following command:

pxd tryout -leader_only false

Create PolarDB-X for cluster mode

pxd create -file cluster.yaml

Following is an example of cluster.yaml

version: v1
type: polardbx
cluster:
  name: pxc_test
  gms:
    image: polardbx/galaxyengine:latest
    host_group: [10.168.0.37]
    resources:
      mem_limit: 2G
  cn:
    image: polardbx/galaxysql:latest
    replica: 3
    nodes:
      - host: 10.168.0.37
      - host: 10.168.0.38
      - host: 10.168.0.39
    resources:
      mem_limit: 4G
  dn:
    image: polardbx/galaxyengine:latest
    replica: 2
    nodes:
      - host_group: [10.168.0.38]
      - host_group: [10.168.0.39]
    resources:
      mem_limit: 4G
  cdc:
    image: polardbx/galaxycdc:latest
    replica: 3
    nodes:
      - host: 10.168.0.37
      - host: 10.168.0.38
      - host: 10.168.0.39
    resources:
      mem_limit: 4G
  • version: topology version, default v1
  • type: cluster type, polardbx
  • cluster.name:The name of PolarDB-X cluster
  • cluster.gms.image: docker image of gms, default is the latest
  • cluster.gms.host_group: gms ip list. If set three ips, it will create a x-paxos cluster
  • cluster.cn
    • image: docker image of cn, default is the latest
    • replica: cn node count
    • nodes: list, cn node hosts
    • resources:
      • mem_limit: memory limit,default 1G
  • cluster.dn
    • image: docker image of dn, default is the latest
    • replica: dn node count
    • nodes: dn host group list. If set three ips, it will create a x-paxos cluster
    • resources:
      • mem_limit: memory limit,default 1G
  • cluster.cdc
    • image: docker image of cdc, default is the latest
    • replica: cdc node count
    • nodes: cdc node ip list
    • resources:
      • mem_limit: memory limit,default 1G

List existing clusters

pxd list

It will show all PolarDB-X clusters.

Delete Cluster

Delete a specific PolarDB-X cluster:

pxd delete {pxc_name}

Delete all PolarDB-X clusters:

pxd cleanup

More information about pxd, please run following command:

pxd --help

More information about PolarDB-X, refer to following links:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pxd-0.7.1-py3-none-any.whl (83.0 kB view details)

Uploaded Python 3

File details

Details for the file pxd-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: pxd-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 83.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for pxd-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98dbedf7a97aff6581e8877dbea57f182833a17da3b1017c839b307dd383cd5b
MD5 28c593e0532e8c8f9a4f7cc339bc9a50
BLAKE2b-256 c34fa57c68955d6340022ab6ba74d9843e7606ea80510222dd1bc3e463538c4a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page