Document defaults

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-11-21 16:12:10 -08:00
parent 374f04d0e9
commit bae47820d7
4 changed files with 8 additions and 2 deletions

View File

@@ -230,6 +230,7 @@ func (s *gcScheduler) run(ctx context.Context) {
interval = time.Second
gcTime time.Duration
collections int
// TODO(dmcg): expose collection stats as metrics
triggered bool
deletions int
@@ -270,6 +271,7 @@ func (s *gcScheduler) run(ctx context.Context) {
(s.mutationThreshold > 0 && mutations >= s.mutationThreshold))) {
// Check if not already scheduled before delay threshold
if nextCollection == nil || nextCollection.After(time.Now().Add(s.scheduleDelay)) {
// TODO(dmcg): track re-schedules for tuning schedule config
schedC, nextCollection = schedule(s.scheduleDelay)
}
}