* NetDB: Increase floodfills, decrease flood redundancy

This commit is contained in:
zzz
2012-08-26 12:47:31 +00:00
parent 96775acf5a
commit 99681e1d1e
2 changed files with 8 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ class FloodfillMonitorJob extends JobImpl {
private static final int REQUEUE_DELAY = 60*60*1000;
private static final long MIN_UPTIME = 2*60*60*1000;
private static final long MIN_CHANGE_DELAY = 6*60*60*1000;
private static final int MIN_FF = 250;
private static final int MIN_FF = 300;
private static final int MAX_FF = 999999;
private static final String PROP_FLOODFILL_PARTICIPANT = "router.floodfillParticipant";

View File

@@ -33,6 +33,13 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
private final Set<Hash> _verifiesInProgress;
private FloodThrottler _floodThrottler;
private LookupThrottler _lookupThrottler;
/**
* This is the flood redundancy. Entries are
* sent to this many other floodfills.
* Was 7 through release 0.9; 5 for 0.9.1.
*/
private static final int MAX_TO_FLOOD = 4;
public FloodfillNetworkDatabaseFacade(RouterContext context) {
super(context);
@@ -156,8 +163,6 @@ public class FloodfillNetworkDatabaseFacade extends KademliaNetworkDatabaseFacad
return _lookupThrottler.shouldThrottle(from, id);
}
private static final int MAX_TO_FLOOD = 5;
/**
* Send to a subset of all floodfill peers.
* We do this to implement Kademlia within the floodfills, i.e.