复古 护眼 海天 深邃 暗黑 默认
Logo
查看集群状态

查看集群状态 #

  1. 使用 spex cluster status --name <cluster-name> 查看集群运行状态。 示例: 查看名为 demo 的集群运行状态。

    [root@centos71 demo]# spex cluster status --name demo
    Operation ShardingSphere-Proxy
    proxy status      
    10.0.1.1 : 3307 => success
    PID:14014 PORT:3307 %CPU:16.9 %MEM:0.2 START:12:05 TIME:0:01
    Results summary
    +-------------+------+-------+------+------+-------+------+
    |   HOST  | PORT | PID | %CPU | %MEM | START | TIME |
    +-------------+------+-------+------+------+-------+------+
    | 10.0.1.1 | 3307 | 14014 | 16.9 | 0.2 | 12:05 | 0:01 |
    +-------------+------+-------+------+------+-------+------+
    Completed......
    Operation ZooKeeper
    ZooKeeper status      
    10.0.1.1 : 2181 => success
    /usr/bin/java
    Client port found: 2181. Client address: localhost. Client SSL: false.
    Mode: standalone
    ZooKeeper JMX enabled by default
    Using config: /demo/zookeeper/apache-zookeeper-3.6.3-bin/bin/../conf/zoo.cfg
    Results summary
    +-------------+------+------------------+
    |   HOST  | PORT |   STATUS   |
    +-------------+------+------------------+
    | 10.0.1.1 | 2181 | Mode: standalone |
    +-------------+------+------------------+
    Completed......