Changeset f87d006


Ignore:
Timestamp:
Feb 15, 2015 10:40:36 PM (5 years ago)
Author:
dg2-new <dg2-new@…>
Branches:
master
Children:
f41df96
Parents:
9163d41
Message:

FloodfillMonitorJob?:

  • Use lifetime average value for job lag
  • Change the job lag limit to less than 25ms
  • Consider and set the limit of backlogged tunnels to less than 5
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • history.txt

    r9163d41 rf87d006  
     12015-02-15 dg
     2 * FloodfillMonitorJob:
     3   - Use lifetime average value for job lag
     4   - Change the job lag limit to less than 25ms
     5   - Consider and set the limit of backlogged tunnels to less than 5
     6
    172015-02-10 dg
    28 * I2PSnark, Jetty, SAM, crypto: findbugs resource leaks.
  • router/java/src/net/i2p/router/RouterVersion.java

    r9163d41 rf87d006  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 23;
     21    public final static long BUILD = 24;
    2222
    2323    /** for example "-test" */
  • router/java/src/net/i2p/router/networkdb/kademlia/FloodfillMonitorJob.java

    r9163d41 rf87d006  
    151151        boolean happy = getContext().router().getRouterInfo().getCapabilities().indexOf("R") >= 0;
    152152        // TODO - limit may still be too high
    153         // TODO - use jobQueue.jobLag stat instead?
    154         happy = happy && getContext().jobQueue().getMaxLag() < 100;
     153        // For reference, the avg lifetime job lag on my Pi is 6.
     154        // Would per-hour or per-day be better than lifetime avg? A reference to avg. dropped ff jobs maybe?
     155        RateStat lagStat = getContext().statManager().getRate("jobQueue.jobLag");
     156        happy = happy && lagStat.getLifetimeAverageValue() < 25;
     157        happy = happy && getContext().tunnelManager().getInboundBuildQueueSize() < 5;
    155158        // Only if we're pretty well integrated...
    156159        happy = happy && _facade.getKnownRouters() >= 200;
Note: See TracChangeset for help on using the changeset viewer.