netdb stats cleanup
This commit is contained in:
@ -123,15 +123,13 @@ public class StatisticsManager implements Service {
|
|||||||
stats.setProperty("stat_identities", newlines+"");
|
stats.setProperty("stat_identities", newlines+"");
|
||||||
***/
|
***/
|
||||||
|
|
||||||
boolean commentOutIn0621 = RouterVersion.VERSION.equals("0.6.2");
|
|
||||||
|
|
||||||
if (_includePeerRankings) {
|
if (_includePeerRankings) {
|
||||||
if (false)
|
if (false)
|
||||||
stats.putAll(_context.profileManager().summarizePeers(_publishedStats));
|
stats.putAll(_context.profileManager().summarizePeers(_publishedStats));
|
||||||
|
|
||||||
long publishedUptime = _context.router().getUptime();
|
long publishedUptime = _context.router().getUptime();
|
||||||
// Don't publish these for first hour
|
// Don't publish these for first hour
|
||||||
if (commentOutIn0621 || publishedUptime > 60*60*1000)
|
if (publishedUptime > 60*60*1000)
|
||||||
includeThroughput(stats);
|
includeThroughput(stats);
|
||||||
//includeRate("router.invalidMessageTime", stats, new long[] { 10*60*1000 });
|
//includeRate("router.invalidMessageTime", stats, new long[] { 10*60*1000 });
|
||||||
//includeRate("router.duplicateMessageId", stats, new long[] { 24*60*60*1000 });
|
//includeRate("router.duplicateMessageId", stats, new long[] { 24*60*60*1000 });
|
||||||
@ -146,8 +144,7 @@ public class StatisticsManager implements Service {
|
|||||||
|
|
||||||
//includeRate("tunnel.batchDelaySent", stats, new long[] { 10*60*1000, 60*60*1000 });
|
//includeRate("tunnel.batchDelaySent", stats, new long[] { 10*60*1000, 60*60*1000 });
|
||||||
//includeRate("tunnel.batchMultipleCount", stats, new long[] { 10*60*1000, 60*60*1000 });
|
//includeRate("tunnel.batchMultipleCount", stats, new long[] { 10*60*1000, 60*60*1000 });
|
||||||
if (commentOutIn0621)
|
//includeRate("tunnel.corruptMessage", stats, new long[] { 60*60*1000l, 3*60*60*1000l });
|
||||||
includeRate("tunnel.corruptMessage", stats, new long[] { 60*60*1000l, 3*60*60*1000l });
|
|
||||||
|
|
||||||
//includeRate("router.throttleTunnelProbTestSlow", stats, new long[] { 60*60*1000 });
|
//includeRate("router.throttleTunnelProbTestSlow", stats, new long[] { 60*60*1000 });
|
||||||
//includeRate("router.throttleTunnelProbTooFast", stats, new long[] { 60*60*1000 });
|
//includeRate("router.throttleTunnelProbTooFast", stats, new long[] { 60*60*1000 });
|
||||||
@ -163,17 +160,14 @@ public class StatisticsManager implements Service {
|
|||||||
//includeRate("udp.addressUpdated", stats, new long[] { 1*60*1000 });
|
//includeRate("udp.addressUpdated", stats, new long[] { 1*60*1000 });
|
||||||
//includeRate("udp.addressTestInsteadOfUpdate", stats, new long[] { 1*60*1000 });
|
//includeRate("udp.addressTestInsteadOfUpdate", stats, new long[] { 1*60*1000 });
|
||||||
|
|
||||||
if (commentOutIn0621)
|
//includeRate("clock.skew", stats, new long[] { 10*60*1000, 3*60*60*1000, 24*60*60*1000 });
|
||||||
includeRate("clock.skew", stats, new long[] { 10*60*1000, 3*60*60*1000, 24*60*60*1000 });
|
|
||||||
|
|
||||||
//includeRate("transport.sendProcessingTime", stats, new long[] { 60*60*1000 });
|
//includeRate("transport.sendProcessingTime", stats, new long[] { 60*60*1000 });
|
||||||
//includeRate("jobQueue.jobRunSlow", stats, new long[] { 10*60*1000l, 60*60*1000l });
|
//includeRate("jobQueue.jobRunSlow", stats, new long[] { 10*60*1000l, 60*60*1000l });
|
||||||
if (commentOutIn0621)
|
//includeRate("crypto.elGamal.encrypt", stats, new long[] { 60*60*1000 });
|
||||||
includeRate("crypto.elGamal.encrypt", stats, new long[] { 60*60*1000 });
|
|
||||||
includeRate("tunnel.participatingTunnels", stats, new long[] { 5*60*1000, 60*60*1000 });
|
includeRate("tunnel.participatingTunnels", stats, new long[] { 5*60*1000, 60*60*1000 });
|
||||||
//includeRate("tunnel.testSuccessTime", stats, new long[] { 10*60*1000l });
|
//includeRate("tunnel.testSuccessTime", stats, new long[] { 10*60*1000l });
|
||||||
if (commentOutIn0621)
|
//includeRate("client.sendAckTime", stats, new long[] { 60*60*1000 }, true);
|
||||||
includeRate("client.sendAckTime", stats, new long[] { 60*60*1000 }, true);
|
|
||||||
//includeRate("udp.sendConfirmTime", stats, new long[] { 10*60*1000 });
|
//includeRate("udp.sendConfirmTime", stats, new long[] { 10*60*1000 });
|
||||||
//includeRate("udp.sendVolleyTime", stats, new long[] { 10*60*1000 });
|
//includeRate("udp.sendVolleyTime", stats, new long[] { 10*60*1000 });
|
||||||
//includeRate("udp.ignoreRecentDuplicate", stats, new long[] { 60*1000 });
|
//includeRate("udp.ignoreRecentDuplicate", stats, new long[] { 60*1000 });
|
||||||
@ -200,29 +194,19 @@ public class StatisticsManager implements Service {
|
|||||||
includeRate("tunnel.buildExploratoryExpire", stats, new long[] { 10*60*1000 });
|
includeRate("tunnel.buildExploratoryExpire", stats, new long[] { 10*60*1000 });
|
||||||
includeRate("tunnel.buildExploratoryReject", stats, new long[] { 10*60*1000 });
|
includeRate("tunnel.buildExploratoryReject", stats, new long[] { 10*60*1000 });
|
||||||
includeRate("tunnel.buildExploratorySuccess", stats, new long[] { 10*60*1000 });
|
includeRate("tunnel.buildExploratorySuccess", stats, new long[] { 10*60*1000 });
|
||||||
if (commentOutIn0621) {
|
//includeRate("tunnel.rejectTimeout", stats, new long[] { 10*60*1000 });
|
||||||
includeRate("tunnel.rejectTimeout", stats, new long[] { 10*60*1000 });
|
//includeRate("tunnel.rejectOverloaded", stats, new long[] { 10*60*1000 });
|
||||||
includeRate("tunnel.rejectOverloaded", stats, new long[] { 10*60*1000 });
|
//includeRate("tunnel.acceptLoad", stats, new long[] { 10*60*1000 });
|
||||||
includeRate("tunnel.acceptLoad", stats, new long[] { 10*60*1000 });
|
|
||||||
}
|
|
||||||
|
|
||||||
// move this out of the if after 0.6.2.1 is out, so we get ff stats even if not publishing other stats
|
|
||||||
if (FloodfillNetworkDatabaseFacade.isFloodfill(_context.router().getRouterInfo())) {
|
|
||||||
stats.setProperty("netdb.knownRouters", ""+_context.netDb().getKnownRouters());
|
|
||||||
stats.setProperty("netdb.knownLeaseSets", ""+_context.netDb().getKnownLeaseSets());
|
|
||||||
}
|
|
||||||
|
|
||||||
_log.debug("Publishing peer rankings");
|
_log.debug("Publishing peer rankings");
|
||||||
} else {
|
} else {
|
||||||
// So that we will still get build requests
|
// So that we will still get build requests
|
||||||
stats.setProperty("stat_uptime", "90m");
|
stats.setProperty("stat_uptime", "90m");
|
||||||
_log.debug("Not publishing peer rankings");
|
_log.debug("Not publishing peer rankings");
|
||||||
// delete after 0.6.2.1 is out
|
}
|
||||||
if (!commentOutIn0621)
|
if (FloodfillNetworkDatabaseFacade.isFloodfill(_context.router().getRouterInfo())) {
|
||||||
if (FloodfillNetworkDatabaseFacade.isFloodfill(_context.router().getRouterInfo())) {
|
stats.setProperty("netdb.knownRouters", ""+_context.netDb().getKnownRouters());
|
||||||
stats.setProperty("netdb.knownRouters", ""+_context.netDb().getKnownRouters());
|
stats.setProperty("netdb.knownLeaseSets", ""+_context.netDb().getKnownLeaseSets());
|
||||||
stats.setProperty("netdb.knownLeaseSets", ""+_context.netDb().getKnownLeaseSets());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_log.shouldLog(Log.DEBUG))
|
if (_log.shouldLog(Log.DEBUG))
|
||||||
|
Reference in New Issue
Block a user