Skip to content
  • Ondřej Zajíček's avatar
    a8a3d95b
    Nest: Improve GC strategy for rtables · a8a3d95b
    Ondřej Zajíček authored
    Use timer (configurable as 'gc period') to schedule routing table
    GC/pruning to ensure that prune is done on time but not too often.
    
    Randomize GC timers to avoid concentration of GC events from different
    tables in one loop cycle.
    
    Fix a bug that caused minimum inter-GC interval be 5 us instead of 5 s.
    
    Make default 'gc period' adaptive based on number of routing tables,
    from 10 s for small setups to 600 s for large ones.
    
    In marge multi-table RS setup, the patch improved time of flushing
    a downed peer from 20-30 min to <2 min and removed 40s latencies.
    a8a3d95b
    Nest: Improve GC strategy for rtables
    Ondřej Zajíček authored
    Use timer (configurable as 'gc period') to schedule routing table
    GC/pruning to ensure that prune is done on time but not too often.
    
    Randomize GC timers to avoid concentration of GC events from different
    tables in one loop cycle.
    
    Fix a bug that caused minimum inter-GC interval be 5 us instead of 5 s.
    
    Make default 'gc period' adaptive based on number of routing tables,
    from 10 s for small setups to 600 s for large ones.
    
    In marge multi-table RS setup, the patch improved time of flushing
    a downed peer from 20-30 min to <2 min and removed 40s latencies.
Loading