Retro Eye care Haitian Deep Dark Default
Logo
View Cluster Topology Content

View Cluster Topology Content #

  1. Run the command spex config info --name <cluster-name> to view the specified cluster topology content. Example: view the contents of the cluster topology named demo.
[root@centos71 demo]# spex config info --name demo
proxy
+--------------+-------------+------+----------------------------+
| install_user |   host  | port |    install_dir     |
+--------------+-------------+------+----------------------------+
|   root   | 10.0.1.1 | 3307 | /demo/shardingsphere-proxy |
+--------------+-------------+------+----------------------------+
zookeeper
+--------------+-------------+------+------+------------------+----------------------+
| install_user |   host  | port | myid |  install_dir  |    data_dir    |
+--------------+-------------+------+------+------------------+----------------------+
|   root   | 10.0.1.1 | 2181 | 1  | /demo/zookeeper/ | /demo/zookeeper/data |
+--------------+-------------+------+------+------------------+----------------------+
  1. Run the command spex config info --name <cluster-name>--detail to view the detailed configuration of the specified cluster topology.
[root@centos71 demo]# spex config info --name demo --detail
cluster_name: demo
install_user: root
install_password: root
proxy:
 version: '1.0'
 file: /root/demo/apache-shardingsphere-5.0.0-shardingsphere-proxy-bin.tar.gz
 conf_dir: /root/demo/conf
 agent_conf_file:
 depend_files:
 - /root/demo/mysql-connector-java-5.1.47.jar
 install_dir: /demo/shardingsphere-proxy
 port: 3307
 overwrite: false
 servers:
 - host: 10.0.1.1
zookeeper:
 version: '1.0'
 file: /root/demo/apache-zookeeper-3.6.3-bin.tar.gz
 conf_file: /root/demo/zoo.cfg
 install_dir: /demo/zookeeper/
 data_dir: /demo/zookeeper/data
 port: 2181
 overwrite: false
 servers:
 - host: 10.0.1.1
  myid: 1