Use the pdbcli create command to create a cluster.
You can create a cluster with the number of nodes defined in the configuration file.
pdbcli create clusterNote
After the cluster is created, run the pdbcli status command to check the cluster status and verify that the cluster was created successfully.
Run the pdbcli help create cluster or pdbcli create cluster --help command to view the help information for creating a cluster.
Using config file: ./config.yaml
Create a PolarDB cluster consisting of a primary, a number of replica backends, Cluster Manager,
Cluster Proxy, and Cluster Agent.
For example:
pdbcli create cluster
Usage:
pdbcli create cluster [flags]
Flags:
--create-from-backup Create cluster from backup.
-h, --help help for cluster # Get help information for the create cluster command.
--no-validate Skip config file validation. # Skip the configuration file validation step.
--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") # Specify the configuration file. The default file is ./config.yaml.
--debug Enable additional output for debugging. # Enable additional output for debugging.
该文章对您有帮助吗?