seawinde commented on code in PR #64742:
URL: https://github.com/apache/doris/pull/64742#discussion_r3465113265


##########
fe/fe-core/src/main/java/org/apache/doris/metric/MetricRepo.java:
##########
@@ -1625,6 +1658,47 @@ public static <M extends Metric<?>> AutoMappedMetric<M> 
addLabeledMetrics(String
         });
     }
 
+    public static void syncUserConnectionMaxMetrics() {
+        if (USER_GAUGE_CONNECTION_MAX == null) {
+            return;
+        }
+        Env.getServingEnv().getAuth().getMaxConnForAllUsers()

Review Comment:
     已 CREATE USER 的 LDAP/external 用户:在 propertyMap,指标会有。
     纯 LDAP temp user:不在 propertyMap,指标不会有。
     external JIT temp user:不在 propertyMap,指标不会有。
     这些 temp user 真实登录时仍然会被 getMaxConn() 按默认属性限流,但不会出现在 
doris_fe_user_connection_max 里。
   
   可以看下这个是不是符合预期?



-- 
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