milleruntime commented on a change in pull request #2294:
URL: https://github.com/apache/accumulo/pull/2294#discussion_r719685291
##########
File path: server/monitor/src/main/java/org/apache/accumulo/monitor/Monitor.java
##########
@@ -577,63 +556,79 @@ private ServletHolder getRestServlet() {
oldest = Math.max(oldest, a.age);
}
this.oldest = oldest < 0 ? null : oldest;
+ // use clock time for date friendly display
this.fetched = System.currentTimeMillis();
}
}
private final Map<HostAndPort,ScanStats> allScans = new HashMap<>();
private final Map<HostAndPort,CompactionStats> allCompactions = new
HashMap<>();
private final RecentLogs recentLogs = new RecentLogs();
+ private long scansFetchedNanos = 0L;
+ private long compactsFetchedNanos = 0L;
+ private final long fetchTimeNanos = TimeUnit.NANOSECONDS.convert(1,
TimeUnit.MINUTES);
+ private final long ageOffEntriesMillis = TimeUnit.MILLISECONDS.convert(15,
TimeUnit.MINUTES);
Review comment:
Oh cool! I didn't know that. Thanks for sharing. I like that better,
I'll change it.
--
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]