Restart a cluster

更新时间:
复制 MD 格式

You can use the pdbcli restart cluster command to restart all components in the cluster.

Precautions

The pdbcli restart cluster command restarts all components in the cluster, including the database, high availability (HA) components, and proxy components. Use this command with caution.

You can run the pdbcli help restart cluster or pdbcli restart cluster --help command to view help information:

Restart PolarDB cluster for all db of the cluster.
    For example:
    pdbcli restart cluster
Usage:
  pdbcli restart cluster [flags]
Flags:
  -h, --help                   help for cluster  # Get help for the restart cluster command.
  -y, --no-prompt              No command line confirmation
      --start-at-task string   Resumed failed task at last failed task name (INTERNAL USE ONLY).  # If an operation fails, use this flag to retry the operation from the step that failed.
Global Flags:
      --config string   Specify Config file. (default "./config.yaml") # Specify the configuration file. The default is ./config.yaml.
      --debug           Enable additional output for debugging. # Display additional output for debugging.