-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/14663/#review27134
-----------------------------------------------------------



src/slave/slave.hpp
<https://reviews.apache.org/r/14663/#comment52785>

    What if the GarbageCollector always dealt with the mtimes instead?
    
    Asking the GarbageCollector to schedule something after 2 weeks could mean:
      1. If 2 weeks elapse (without restarting the process): GC the path.
      2. If the mtime becomes 2 weeks ago: GC the path.
    
    We currently do 1 but neither 1 or 2 alone is robust for all types of GC 
operations. Doing both 1 and 2 together ensures we don't make the GC behavior 
dependent on the whether the slave stays up for long enough to GC.
    
    This would require us, before scheduling for GC, to sometimes 'touch' the 
path and then schedule it for GC.
    
    In the current code (without the GarbageCollector performing 2 internally), 
it seems we can have situations (like slaves continually getting restarted 
before the GC period) in which we can induce huge GC operations driven by disk 
usage rather than mtimes. Using mtimes internally in the GarbageCollector would 
help to consistently space out the GC operations so that we have less disk I/O 
impact on executors / tasks that use the disk.


- Ben Mahler


On Oct. 16, 2013, 12:41 a.m., Vinod Kone wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/14663/
> -----------------------------------------------------------
> 
> (Updated Oct. 16, 2013, 12:41 a.m.)
> 
> 
> Review request for mesos, Benjamin Hindman and Ben Mahler.
> 
> 
> Bugs: MESOS-742
>     https://issues.apache.org/jira/browse/MESOS-742
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Old recovered directories are now gc'ed based on modification time.
> 
> 
> Diffs
> -----
> 
>   src/slave/slave.hpp 22fb74b71a0f52d9d67b92ecc286fa8d350e41a4 
>   src/slave/slave.cpp debb2f4ce05fbfec450197e68bc8a0c78f1d0adf 
> 
> Diff: https://reviews.apache.org/r/14663/diff/
> 
> 
> Testing
> -------
> 
> make check
> 
> 
> Thanks,
> 
> Vinod Kone
> 
>

Reply via email to