raghavyadav01 commented on code in PR #15722:
URL: https://github.com/apache/pinot/pull/15722#discussion_r2076561960


##########
pinot-server/src/main/java/org/apache/pinot/server/starter/helix/BaseServerStarter.java:
##########
@@ -698,6 +705,10 @@ public void start()
     _helixAdmin = _helixManager.getClusterManagmentTool();
     updateInstanceConfigIfNeeded(serverConf);
 
+    _helixMessageCountScheduler = Executors.newSingleThreadScheduledExecutor(
+        new 
ThreadFactoryBuilder().setNameFormat("message-count-scheduler-%d").setDaemon(true).build());
+    _helixMessageCountScheduler.scheduleAtFixedRate(this::refreshMessageCount, 
0, 10, TimeUnit.SECONDS);

Review Comment:
   Is it going to put any load on Helix ? I am just wondering if 10s is low or 
high refresh rate. 



-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to