Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Eccles (0.23 sec)

  1. internal/config/callhome/callhome.go

    	},
    }
    
    // callhomeCycleDefault is the default interval between two callhome cycles (24hrs)
    const callhomeCycleDefault = 24 * time.Hour
    
    // Config represents the subnet related configuration
    type Config struct {
    	// Flag indicating whether callhome is enabled.
    	Enable bool `json:"enable"`
    
    	// The interval between callhome cycles
    	Frequency time.Duration `json:"frequency"`
    }
    
    var configLock sync.RWMutex
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  2. cmd/data-usage_test.go

    	}
    	createUsageTestFiles(t, base, bucket, files)
    	err = os.RemoveAll(filepath.Join(base, bucket, "dir1/dira/dirasub/dcfile"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Changed dir must be picked up in this many cycles.
    	for i := 0; i < dataUsageUpdateDirCycles; i++ {
    		got, err = scanDataFolder(context.Background(), nil, base, got, getSize, 0, weSleep)
    		got.Info.NextCycle++
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  3. cmd/data-usage-cache.go

    }
    
    // mod returns true if the hash mod cycles == cycle.
    // If cycles is 0 false is always returned.
    // If cycles is 1 true is always returned (as expected).
    func (h dataUsageHash) mod(cycle uint32, cycles uint32) bool {
    	if cycles <= 1 {
    		return cycles == 1
    	}
    	return uint32(xxhash.Sum64String(string(h)))%cycles == cycle%cycles
    }
    
    // modAlt returns true if the hash mod cycles == cycle.
    // This is out of sync with mod.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  4. internal/config/callhome/help.go

    			Description: "set to enable callhome" + defaultHelpPostfix(Enable),
    			Optional:    true,
    		},
    		config.HelpKV{
    			Key:         Frequency,
    			Type:        "duration",
    			Description: "time duration between callhome cycles e.g. 24h" + defaultHelpPostfix(Frequency),
    			Optional:    true,
    		},
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jun 06 23:14:52 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  5. internal/config/scanner/scanner.go

    	ExcessFolders int64 // 50000
    
    	// MaxWait is maximum wait time between operations
    	MaxWait time.Duration
    	// Cycle is the time.Duration between each scanner cycles
    	Cycle time.Duration
    }
    
    // DefaultKVS - default KV config for heal settings
    var DefaultKVS = config.KVS{
    	config.KV{
    		Key:   Speed,
    		Value: "default",
    	},
    	config.KV{
    		Key:           IdleSpeed,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. internal/config/heal/heal.go

    		bitrotCycle time.Duration
    	}
    }
    
    // BitrotScanCycle returns the configured cycle for the scanner healing
    // -1 for not enabled
    //
    //	0 for contiunous bitrot scanning
    //
    // >0 interval duration between cycles
    func (opts Config) BitrotScanCycle() (d time.Duration) {
    	configMutex.RLock()
    	defer configMutex.RUnlock()
    	return opts.cache.bitrotCycle
    }
    
    // Clone safely the heal configuration
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  7. cmd/data-scanner.go

    )
    
    const (
    	dataScannerSleepPerFolder        = time.Millisecond                 // Time to wait between folders.
    	dataUsageUpdateDirCycles         = 16                               // Visit all folders every n cycles.
    	dataScannerCompactLeastObject    = 500                              // Compact when there is less than this many objects in a branch.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 47.4K bytes
    - Viewed (0)
  8. cmd/erasure-sets.go

    	if !globalIsTesting {
    		go s.monitorAndConnectEndpoints(ctx, defaultMonitorConnectEndpointInterval)
    	}
    
    	return s, nil
    }
    
    // cleanup ".trash/" folder every 5m minutes with sufficient sleep cycles, between each
    // deletes a dynamic sleeper is used with a factor of 10 ratio with max delay between
    // deletes to be 2 seconds.
    func (s *erasureSets) cleanupDeletedObjects(ctx context.Context) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 37.5K bytes
    - Viewed (5)
  9. src/arena/arena.go

    of Go values and free that space manually all at once, safely. The purpose
    of this functionality is to improve efficiency: manually freeing memory
    before a garbage collection delays that cycle. Less frequent cycles means
    the CPU cost of the garbage collector is incurred less frequently.
    
    This functionality in this package is mostly captured in the Arena type.
    Arenas allocate large chunks of memory for Go values, so they're likely to
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
Back to top