kfaraz commented on code in PR #14517:
URL: https://github.com/apache/druid/pull/14517#discussion_r1252559797
##########
server/src/main/java/org/apache/druid/client/HttpServerInventoryView.java:
##########
@@ -204,15 +214,26 @@ private DruidServer toDruidServer(DiscoveryDruidNode node)
}
);
- scheduleSyncMonitoring();
+ ScheduledExecutors.scheduleAtFixedRate(
+ executor,
+ Duration.standardSeconds(60),
+ Duration.standardMinutes(5),
+ this::checkAndResetUnhealthyServers
+ );
+ ScheduledExecutors.scheduleAtFixedRate(
+ executor,
+ Duration.standardSeconds(30),
+ Duration.standardMinutes(1),
+ this::emitServerStatusMetrics
Review Comment:
Yeah, true. If I am making other changes, I will move metric emission and
the check and reset logic to the separate executor.
--
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]