I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 9d70a529 authored by zzz's avatar zzz
Browse files

netdb stats cleanup

parent bf517411
No related branches found
No related tags found
No related merge requests found
......@@ -123,15 +123,13 @@ public class StatisticsManager implements Service {
stats.setProperty("stat_identities", newlines+"");
***/
boolean commentOutIn0621 = RouterVersion.VERSION.equals("0.6.2");
if (_includePeerRankings) {
if (false)
stats.putAll(_context.profileManager().summarizePeers(_publishedStats));
long publishedUptime = _context.router().getUptime();
// Don't publish these for first hour
if (commentOutIn0621 || publishedUptime > 60*60*1000)
if (publishedUptime > 60*60*1000)
includeThroughput(stats);
//includeRate("router.invalidMessageTime", stats, new long[] { 10*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.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.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.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("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.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.sendVolleyTime", stats, new long[] { 10*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.buildExploratoryReject", 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.rejectOverloaded", 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());
}
//includeRate("tunnel.rejectTimeout", stats, new long[] { 10*60*1000 });
//includeRate("tunnel.rejectOverloaded", stats, new long[] { 10*60*1000 });
//includeRate("tunnel.acceptLoad", stats, new long[] { 10*60*1000 });
_log.debug("Publishing peer rankings");
} else {
// So that we will still get build requests
stats.setProperty("stat_uptime", "90m");
_log.debug("Not publishing peer rankings");
// delete after 0.6.2.1 is out
if (!commentOutIn0621)
if (FloodfillNetworkDatabaseFacade.isFloodfill(_context.router().getRouterInfo())) {
stats.setProperty("netdb.knownRouters", ""+_context.netDb().getKnownRouters());
stats.setProperty("netdb.knownLeaseSets", ""+_context.netDb().getKnownLeaseSets());
}
}
if (FloodfillNetworkDatabaseFacade.isFloodfill(_context.router().getRouterInfo())) {
stats.setProperty("netdb.knownRouters", ""+_context.netDb().getKnownRouters());
stats.setProperty("netdb.knownLeaseSets", ""+_context.netDb().getKnownLeaseSets());
}
if (_log.shouldLog(Log.DEBUG))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment