From 9138307896e3ae7b496223f0b887a3165f7ff434 Mon Sep 17 00:00:00 2001 From: Dustin Sallings Date: Mon, 17 Jun 2013 10:00:32 -0700 Subject: [PATCH] Added reconcileAge config. This is how long an object should be considered "reconciled" before needing to actually have its hash verified. --- config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/config.go b/config/config.go index 4631be6..e339020 100644 --- a/config/config.go +++ b/config/config.go @@ -33,6 +33,8 @@ type CBFSConfig struct { NodeCleanCount int `json:"cleanCount"` // Reconciliation frequency ReconcileFreq time.Duration `json:"reconcileFreq"` + // Reconciliation object age + ReconcileAge time.Duration `json:"reconcileAge"` // Quick reconciliation frequency QuickReconcileFreq time.Duration `json:"quickReconcileFreq"` // How often to verify we have all the blobs for which we're registered @@ -70,6 +72,7 @@ func DefaultConfig() CBFSConfig { MaxReplicas: 5, NodeCleanCount: 5000, ReconcileFreq: time.Hour * 24 * 7, + ReconcileAge: time.Hour * 24 * 30, QuickReconcileFreq: time.Hour * 27, LocalValidationFreq: time.Hour * 31, StaleNodeCheckFreq: time.Minute,