[Optimize]优化集群Brokers中, Controller显示存在延迟的问题 (#1162)

优化方式:
从DB获取调整为从Kafka中实时获取。
This commit is contained in:
EricZeng
2023-09-27 14:05:45 +08:00
committed by GitHub
parent e2ad3afe3d
commit 3b72f732be
3 changed files with 22 additions and 9 deletions

View File

@@ -52,7 +52,7 @@ public class ClusterBrokersController {
@GetMapping(value = "clusters/{clusterPhyId}/brokers-state")
@ResponseBody
public Result<ClusterBrokersStateVO> getClusterPhyBrokersState(@PathVariable Long clusterPhyId) {
return Result.buildSuc(clusterBrokersManager.getClusterPhyBrokersState(clusterPhyId));
return clusterBrokersManager.getClusterPhyBrokersState(clusterPhyId);
}
@ApiOperation(value = "集群brokers信息列表")