dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[BUG]Monitoring Center - Service Management only shows one device status([BUG]监控中心-服务管理只显示一台设备状态)

Open zongyaoou opened this issue 7 years ago • 12 comments

image

As shown in the figure above, after clustering, only the status of one device is displayed. The master and worker pages have this problem.


image

如上图 , 集群起来后 , 只显示一台设备的状态 , master , worker页面有有这个问题 ;

zongyaoou avatar Jul 29 '19 09:07 zongyaoou

Please open debug mode on browser to find out What is the response from the api server?

And then you can view api server runtime log to find out why this result responsed by the api server

DanielLeens avatar Jul 29 '19 15:07 DanielLeens

This did not occur in our production environment.

DanielLeens avatar Jul 29 '19 15:07 DanielLeens

Please open debug mode on browser to find out What is the response from the api server?

And then you can view api server runtime log to find out why this result responsed by the api server

Debug mode refers to F12? I turned over the document and did not say how to enter the debug mode. In addition, I am a non-professional developer, so the troublesome operation can be described in detail, thank you.


调试模式是指F12? 我翻了文档没有说怎么进入调试模式的 ;
另外, 我非专业开发人员 , 所以麻烦操作可以说得详细一点 , 谢谢 ;

zongyaoou avatar Jul 31 '19 04:07 zongyaoou

like this: image

the red block is the response from api server

DanielLeens avatar Jul 31 '19 07:07 DanielLeens

The problem is same with me, and the request that return json seem's no problem, is the font-end page has same problem?

{"code":0,"msg":"success","data":[{"id":0,"host":".21","port":13393,"zkDirectory":"/escheduler/workers/xx.21_0000000000","resInfo":"{"cpuUsage":0.05,"loadAverage":0.0,"memoryUsage":0.22}","createTime":"2019-07-28T03:36:56.000+0000","lastHeartbeatTime":"2019-08-01T07:27:53.000+0000"},{"id":0,"host":".41","port":21615,"zkDirectory":"/escheduler/workers/xx.41_0000000001","resInfo":"{"cpuUsage":0.16,"loadAverage":0.0,"memoryUsage":0.24}","createTime":"2019-07-28T03:36:56.000+0000","lastHeartbeatTime":"2019-08-01T07:27:43.000+0000"},{"id":0,"host":".61","port":16366,"zkDirectory":"/escheduler/workers/xx.61_0000000002","resInfo":"{"cpuUsage":0.02,"loadAverage":0.0,"memoryUsage":0.23}","createTime":"2019-07-28T03:36:57.000+0000","lastHeartbeatTime":"2019-08-01T07:27:44.000+0000"}]}

zhangzhipeng621 avatar Aug 01 '19 07:08 zhangzhipeng621

The problem is same with me, and the request that return json seem's no problem, is the font-end page has same problem?

{"code":0,"msg":"success","data":[{"id":0,"host":".21","port":13393,"zkDirectory":"/escheduler/workers/xx.21_0000000000","resInfo":"{"cpuUsage":0.05,"loadAverage":0.0,"memoryUsage":0.22}","createTime":"2019-07-28T03:36:56.000+0000","lastHeartbeatTime":"2019-08-01T07:27:53.000+0000"},{"id":0,"host":".41","port":21615,"zkDirectory":"/escheduler/workers/xx.41_0000000001","resInfo":"{"cpuUsage":0.16,"loadAverage":0.0,"memoryUsage":0.24}","createTime":"2019-07-28T03:36:56.000+0000","lastHeartbeatTime":"2019-08-01T07:27:43.000+0000"},{"id":0,"host":".61","port":16366,"zkDirectory":"/escheduler/workers/xx.61_0000000002","resInfo":"{"cpuUsage":0.02,"loadAverage":0.0,"memoryUsage":0.23}","createTime":"2019-07-28T03:36:57.000+0000","lastHeartbeatTime":"2019-08-01T07:27:44.000+0000"}]}

Could you attach a picture?

William-GuoWei avatar Aug 01 '19 07:08 William-GuoWei

like this: image

the red block is the response from api server

OK , API的返回数据如下 : {"code":0,"msg":"success","data":[{"id":0,"host":"172.16.20.253","port":22369,"zkDirectory":"/escheduler/workers/172.16.20.253_0000000005","resInfo":"{"cpuUsage":0.01,"loadAverage":0.0,"memoryUsage":0.43}","createTime":"2019-08-01T10:25:26.000+0000","lastHeartbeatTime":"2019-08-01T10:32:43.000+0000"},{"id":0,"host":"172.16.20.252","port":556,"zkDirectory":"/escheduler/workers/172.16.20.252_0000000004","resInfo":"{"cpuUsage":0.01,"loadAverage":0.0,"memoryUsage":0.33}","createTime":"2019-08-01T10:25:21.000+0000","lastHeartbeatTime":"2019-08-01T10:32:42.000+0000"},{"id":0,"host":"172.16.20.251","port":28066,"zkDirectory":"/escheduler/workers/172.16.20.251_0000000003","resInfo":"{"cpuUsage":0.01,"loadAverage":0.0,"memoryUsage":0.3}","createTime":"2019-08-01T10:25:20.000+0000","lastHeartbeatTime":"2019-08-01T10:32:45.000+0000"}]}

然后页面加载文件如下 : image

zongyaoou avatar Aug 01 '19 10:08 zongyaoou

@millionfor ,please check this issue,thx!

William-GuoWei avatar Aug 01 '19 10:08 William-GuoWei

bug fixed. Because the row elements of the table need to be distinguished by ID, so the same ID can only be rendered on one of them(the first one). image image

Fix it, as shown below(ZookeeperMonitor.java in escheduler-api module, base on tag 1.1.0-preview ):

image

image

PS: I have submitted a merge request in the dev branch #680

satchel9 avatar Aug 08 '19 07:08 satchel9

good job,thanks for a lot!

davidzollo avatar Aug 19 '19 22:08 davidzollo

So cool! This problem will not occur in the next version?

taiyi-demon avatar Sep 25 '19 03:09 taiyi-demon

So cool! This problem will not occur in the next version? yes!

davidzollo avatar Sep 26 '19 05:09 davidzollo