2004-10-14 jrandom

* Tunnel rejection is no longer a sign of an overwhelmingly loaded
      peer, so don't use it as a key point of the IsFailing calculator.
      We still use it as a key point of the Capacity calculator, however.
This commit is contained in:
jrandom
2004-10-15 01:20:12 +00:00
committed by zzz
parent e7a6f6836e
commit 28c5d6c10d
3 changed files with 18 additions and 10 deletions

View File

@ -1,4 +1,9 @@
$Id: history.txt,v 1.46 2004/10/13 14:40:47 jrandom Exp $ $Id: history.txt,v 1.47 2004/10/14 15:02:45 jrandom Exp $
2004-10-14 jrandom
* Tunnel rejection is no longer a sign of an overwhelmingly loaded
peer, so don't use it as a key point of the IsFailing calculator.
We still use it as a key point of the Capacity calculator, however.
2004-10-14 jrandom 2004-10-14 jrandom
* Allow for a configurable tunnel "growth factor", rather than trying * Allow for a configurable tunnel "growth factor", rather than trying

View File

@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
* *
*/ */
public class RouterVersion { public class RouterVersion {
public final static String ID = "$Revision: 1.53 $ $Date: 2004/10/13 14:40:47 $"; public final static String ID = "$Revision: 1.54 $ $Date: 2004/10/14 15:02:45 $";
public final static String VERSION = "0.4.1.2"; public final static String VERSION = "0.4.1.2";
public final static long BUILD = 3; public final static long BUILD = 4;
public static void main(String args[]) { public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION); System.out.println("I2P Router version: " + VERSION);
System.out.println("Router ID: " + RouterVersion.ID); System.out.println("Router ID: " + RouterVersion.ID);

View File

@ -46,13 +46,16 @@ public class IsFailingCalculator extends Calculator {
// return true; // return true;
//} //}
Rate rejectRate = profile.getTunnelHistory().getRejectionRate().getRate(10*60*1000); // this doesn't make sense with probabalistic rejections - we should be
if (rejectRate.getCurrentEventCount() >= 2) { // adequately dampening the capacity so these peers aren't queried
if (_log.shouldLog(Log.DEBUG))
_log.debug("Peer " + profile.getPeer().toBase64() //Rate rejectRate = profile.getTunnelHistory().getRejectionRate().getRate(10*60*1000);
+ " is failing because they rejected some tunnels recently"); //if (rejectRate.getCurrentEventCount() >= 2) {
return true; // if (_log.shouldLog(Log.DEBUG))
} // _log.debug("Peer " + profile.getPeer().toBase64()
// + " is failing because they rejected some tunnels recently");
// return true;
//}
//// ////
// the right way to behave would be to use some statistical // the right way to behave would be to use some statistical