HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

Show Cluster List

You can view the cluster list with the following command:

ptk ls

This information is displayed in the output table:

  • cluster_name: cluster name
  • id: the ID of the database instance, which is the unique ID assigned to each instance by PTK when the cluster is deployed
  • addr: Listening address of the database instance, in the form of IP:PORT.
  • user: The user name of the operating system running the database.
  • data_dir: the data directory of the database instance
  • db_version: Version information for the database
  • create_time: Cluster creation time
  • comment: Cluster comment, which can be specified with the --comment option when installing the cluster, or modified after installation with the ptk cluster modify-comment command.

If you only need the name of the cluster, you can add the -n option:

ptk ls -n
Copyright © 2011-2024 www.enmotech.com All rights reserved.