You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/07/08 01:28:51 UTC
[GitHub] [pulsar] merlimat commented on a change in pull request #7474: Log scheduler stats for Pulsar Functions
merlimat commented on a change in pull request #7474:
URL: https://github.com/apache/pulsar/pull/7474#discussion_r451230995
##########
File path: pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/SchedulerManager.java
##########
@@ -368,8 +390,13 @@ private void invokeRebalance() {
functionRuntimeManager.processAssignment(assignment);
// update message id associated with current view of assignments map
lastMessageProduced = messageId;
+ // update stats
+ schedulerStats.newAssignment(assignment);
}
- log.info("Rebalance - Total number of new assignments computed: {}", rebalancedAssignments.size());
+
+ log.info("Rebalance summary - execution time: {} sec | stats: {}\n{}",
Review comment:
Can we also report this stats to prometheus?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org