yiguolei commented on code in PR #21640:
URL: https://github.com/apache/doris/pull/21640#discussion_r1256718411


##########
fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java:
##########
@@ -549,16 +549,17 @@ private static void taskReport(long backendId, 
Map<TTaskType, Set<Long>> running
                 backendId, batchTask.getTaskNum(), (System.currentTimeMillis() 
- start));
     }
 
-    private static void diskReport(long backendId, Map<String, TDisk> 
backendDisks) {
+    private static void diskReport(long backendId, Map<String, TDisk> 
backendDisks, int cpuCores,
+            int pipelineExecutorSize) {
         LOG.info("begin to handle disk report from backend {}", backendId);
         long start = System.currentTimeMillis();
         Backend backend = Env.getCurrentSystemInfo().getBackend(backendId);
         if (backend == null) {
             LOG.warn("backend doesn't exist. id: " + backendId);
             return;
         }
-
         backend.updateDisks(backendDisks);
+        backend.updateCpuInfo(cpuCores, pipelineExecutorSize);

Review Comment:
   在这里判断cpu或者pipeline 配置是否有变更,如果变更了,写system info



##########
fe/fe-core/src/main/java/org/apache/doris/master/ReportHandler.java:
##########
@@ -549,16 +549,17 @@ private static void taskReport(long backendId, 
Map<TTaskType, Set<Long>> running
                 backendId, batchTask.getTaskNum(), (System.currentTimeMillis() 
- start));
     }
 
-    private static void diskReport(long backendId, Map<String, TDisk> 
backendDisks) {
+    private static void diskReport(long backendId, Map<String, TDisk> 
backendDisks, int cpuCores,
+            int pipelineExecutorSize) {
         LOG.info("begin to handle disk report from backend {}", backendId);
         long start = System.currentTimeMillis();
         Backend backend = Env.getCurrentSystemInfo().getBackend(backendId);
         if (backend == null) {
             LOG.warn("backend doesn't exist. id: " + backendId);
             return;
         }
-
         backend.updateDisks(backendDisks);
+        backend.updateCpuInfo(cpuCores, pipelineExecutorSize);

Review Comment:
   在这里判断cpu或者pipeline 配置是否有变更,如果变更了,写system info



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to