Install cluster dependencies

更新时间:
复制 MD 格式

You can use pdbcli install to install cluster dependencies on all nodes.

Run the following command to install cluster dependencies on all nodes based on the configurations in the config.yaml file.

pdbcli install cluster

After the installation is complete, run pdbcli version to view the version number of each software component.

Run the pdbcli help install cluster or pdbcli install cluster --help command to view the following help information:

Using config file: ./config.yaml
Install PolarDB components for all node of the cluster. Including Database, Cluster Manager, Proxy, and Agent.

	For example:

    pdbcli install cluster

Usage:
  pdbcli install cluster [flags]

Flags:
  -h, --help              help for cluster
  --start-at-task string   Resumed failed task at last failed task name (INTERNAL USE ONLY). # If an operation fails, use this flag to retry from the failed step.

Global Flags:
      --config string   Specify Config file. (default "./config.yaml") # Specifies the configuration file. The default is ./config.yaml.

      --debug           Enable additional output for debugging. # Displays more output information for debugging.
Note

To add a node, run the following command to install cluster dependencies.

pdbcli install node --target 'IP address of the target host'

Run the pdbcli help install node or pdbcli install node --help command to view the command description.