This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
monitor with console
jerry edited this page Apr 24, 2017
·
8 revisions
console 用于监控cluster中的两大类事件,帮助开发人员进行系统追踪和问题验证。
tns(cluster)主要分两类事件:
- client向某cluster同步cluster list及service list事件
- cluster间同步cluster、service list事件,及每cluster node 定时ping server 事件
其中,第一类事件,反应某客户端在某一时刻从某台cluster node同步cluster\service list的纪录,开发人员可以通过该纪录判断客户端使用是否OK
从releases页面下载同cluster版本匹配的console
java -jar tns-console-[version]-jar-with-dependencies.jar (one of cluster hostname)
console按真实事件发生过程进行输出,每秒输出一次,每次输出内容为上一次事件的下一秒事件,若这一秒没有事件用*占行。
console 输出内容及含义如下:
cTime | eTime | source | operation | attributes |
---|---|---|---|---|
当前时间 | 事件发生时间 | 事件发起者 | 事件类型 | 事件属性 |
source内容为pid@hostname
operation有如下几种事件类型:
事件 | 描述 |
---|---|
SYNC_CLUSTER | client同步cluster node列表 |
SYNC_SERVICE | client同步service node列表 |
PING_SERVICE | cluster定时ping某service事件 |
SYNC_CAS | cluster间定时同步cluster、service node列表 |
TAKE_LEVENT | console从cluster node获取事件列表 |
Good Wishes
jerry