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:
@ -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
|
||||||
|
@ -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);
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user