Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setDriveCounts (0.39 sec)

  1. cmd/config-current.go

    		return errServerNotInitialized
    	}
    
    	var errs []error
    	setDriveCounts := objAPI.SetDriveCounts()
    	switch subSys {
    	case config.APISubSys:
    		apiConfig, err := api.LookupConfig(s[config.APISubSys][config.Default])
    		if err != nil {
    			configLogIf(ctx, fmt.Errorf("Invalid api configuration: %w", err))
    		}
    
    		globalAPIConfig.init(apiConfig, setDriveCounts, objAPI.Legacy())
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 08:14:58 UTC 2024
    - 30.8K bytes
    - Viewed (0)
  2. cmd/handler-api.go

    	if err != nil {
    		return
    	}
    
    	// A valid value is available return its 90%
    	available = (memStats.Available * 9) / 10
    	return
    }
    
    func (t *apiConfig) init(cfg api.Config, setDriveCounts []int, legacy bool) {
    	t.mu.Lock()
    	defer t.mu.Unlock()
    
    	clusterDeadline := cfg.ClusterDeadline
    	if clusterDeadline == 0 {
    		clusterDeadline = 10 * time.Second
    	}
    	t.clusterDeadline = clusterDeadline
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 08:13:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. cmd/erasure-server-pool.go

    }
    
    // Return the count of disks in each pool
    func (z *erasureServerPools) SetDriveCounts() []int {
    	setDriveCounts := make([]int, len(z.serverPools))
    	for i := range z.serverPools {
    		setDriveCounts[i] = z.serverPools[i].SetDriveCount()
    	}
    	return setDriveCounts
    }
    
    type serverPoolsAvailableSpace []poolAvailableSpace
    
    type poolAvailableSpace struct {
    	Index      int
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 30 11:58:12 UTC 2024
    - 82.5K bytes
    - Viewed (0)
  4. cmd/object-api-interface.go

    	GetDisks(poolIdx, setIdx int) ([]StorageAPI, error) // return the disks belonging to pool and set.
    	SetDriveCounts() []int                              // list of erasure stripe size for each pool in order.
    
    	// Healing operations.
    	HealFormat(ctx context.Context, dryRun bool) (madmin.HealResultItem, error)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon May 06 20:27:52 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top