Heron Explorer单节点使用情况

Heron Explorer简介

Heron Explorer is a CLI tool that you can use to gain insight into a Heron installation, including:

  • which clusters are currently running in the installation
  • information about a given topology’s components (spouts and bolts)
  • metrics for a topology
  • the containers in which a topology is running
  • the topologies running in a given cluster, role, or environment

The Heron Explorer vs. Heron CLI

Heron Explorer和Heron UI有两点重要的区别。第一点:Heron Explorer不同于heron CLI,其需要基于heron tracker的启动。第二点:Heron Explorer对集群的操作是只读的,命令是面向对象的。而不是向CLI中submit,activate,deactivate和kill的行为操作。

Heron Explorer文档

见Heron的官方文档:

Heron Explorer在Heron单节点的运行情况

注意:使用heron explorer需要基于heron tracker的启动。

 Topologies

yitian@heron01:~$ heron-explorer topologies local
[2018-04-03 05:41:52 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
Topologies running in cluster 'local'
role    env      topology
------  -------  -----------------
yitian  default  WordCountTopology
[2018-04-03 05:41:52 +0000] [INFO]: Elapsed time: 0.078s.

Clusters

yitian@heron01:~$ heron-explorer clusters
[2018-04-03 05:42:44 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
Available clusters:
  local
[2018-04-03 05:42:44 +0000] [INFO]: Elapsed time: 0.019s.

Components

yitian@heron01:~$ heron-explorer components local/yitian/default WordCountTopology
[2018-04-03 05:44:05 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
type    name        parallelism  input    output
------  --------  -------------  -------  --------
spout   word                  1  -        consumer
bolt    consumer              1  word     -
[2018-04-03 05:44:06 +0000] [INFO]: Elapsed time: 0.081s.

Metrics

yitian@heron01:~$ heron-explorer metrics local/yitian/default WordCountTopology[2018-04-03 05:45:19 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
'word' metrics:
container id          jvm-uptime-secs    jvm-process-cpu-load    jvm-memory-used-mb    emit-count    ack-count    fail-count
------------------  -----------------  ----------------------  --------------------  ------------  -----------  ------------
container_1_word_1               1553                0.684416               169.167    3.8514e+08            0             0
 
'consumer' metrics:
container id              jvm-uptime-secs    jvm-process-cpu-load    jvm-memory-used-mb    execute-count    ack-count    fail-count
----------------------  -----------------  ----------------------  --------------------  ---------------  -----------  ------------
container_1_consumer_2               1554                 1.42943                 503.2       3.8302e+08            0             0
[2018-04-03 05:45:19 +0000] [INFO]: Elapsed time: 0.050s.

Containers

yitian@heron01:~$ heron-explorer containers local/yitian/default WordCountTopology
[2018-04-03 05:46:38 +0000] [INFO]: Using tracker URL: http://127.0.0.1:8888
  container  host       port    pid    #bolt    #spout    #instance
-----------  -------  ------  -----  -------  --------  -----------
          1  heron01   39915   5222        1         1            2
[2018-04-03 05:46:38 +0000] [INFO]: Elapsed time: 0.014s.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值