Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for SetDriveCount (0.19 sec)

  1. cmd/format-erasure_test.go

    func TestGetFormatErasureInQuorumCheck(t *testing.T) {
    	setCount := 2
    	setDriveCount := 16
    
    	format := newFormatErasureV3(setCount, setDriveCount)
    	format.Erasure.DistributionAlgo = formatErasureVersionV2DistributionAlgoV1
    	formats := make([]*formatErasureV3, 32)
    
    	for i := 0; i < setCount; i++ {
    		for j := 0; j < setDriveCount; j++ {
    			newFormat := format.Clone()
    			newFormat.Erasure.This = format.Erasure.Sets[i][j]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Apr 15 08:25:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  2. cmd/endpoint-ellipses.go

    	// only meant if you want to further optimize drive distribution.
    	if setDriveCount > 0 {
    		msg := fmt.Sprintf("Invalid set drive count. Acceptable values for %d number drives are %d", commonSize, setCounts)
    		var found bool
    		for _, ss := range setCounts {
    			if ss == setDriveCount {
    				found = true
    			}
    		}
    		if !found {
    			return nil, config.ErrInvalidErasureSetSize(nil).Msg(msg)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  3. internal/config/storageclass/storage-class.go

    	}
    
    	if setDriveCount > 2 {
    		if ssParity > setDriveCount/2 {
    			return fmt.Errorf("Standard storage class parity %d should be less than or equal to %d", ssParity, setDriveCount/2)
    		}
    
    		if rrsParity > setDriveCount/2 {
    			return fmt.Errorf("Reduced redundancy storage class parity %d should be less than or equal to %d", rrsParity, setDriveCount/2)
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. cmd/erasure-sets.go

    		eps := make([]string, s.setDriveCount)
    		copy(eps, s.endpointStrings[setIndex*s.setDriveCount:setIndex*s.setDriveCount+s.setDriveCount])
    		return eps
    	}
    }
    
    func (s *erasureSets) GetEndpoints(setIndex int) func() []Endpoint {
    	return func() []Endpoint {
    		eps := make([]Endpoint, s.setDriveCount)
    		copy(eps, s.endpoints.Endpoints[setIndex*s.setDriveCount:setIndex*s.setDriveCount+s.setDriveCount])
    		return eps
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.7K bytes
    - Viewed (0)
  5. cmd/format-erasure.go

    		for j := 0; j < setDriveCount; j++ {
    			disk := storageDisks[i*setDriveCount+j]
    			newFormat := format.Clone()
    			newFormat.Erasure.This = format.Erasure.Sets[i][j]
    			if deploymentID != "" {
    				newFormat.ID = deploymentID
    			}
    			hostCount[disk.Hostname()]++
    			formats[i*setDriveCount+j] = newFormat
    		}
    		var once sync.Once
    		for host, count := range hostCount {
    			if count > wantAtMost {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  6. cmd/prepare-storage.go

    	if err = checkFormatErasureValues(formatConfigs, storageDisks, setDriveCount); err != nil {
    		return nil, err
    	}
    
    	// All disks report unformatted we should initialized everyone.
    	if shouldInitErasureDisks(sErrs) && firstDisk {
    		logger.Info("Formatting %s pool, %v set(s), %v drives per set.",
    			humanize.Ordinal(poolCount), setCount, setDriveCount)
    
    		// Initialize erasure code format on disks
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun May 19 08:06:49 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. internal/config/storageclass/storage-class_test.go

    		ssParity      int
    		success       bool
    		setDriveCount int
    	}{
    		{2, 4, true, 16},
    		{3, 3, true, 16},
    		{0, 0, true, 16},
    		{1, 4, true, 16},
    		{0, 4, true, 16},
    		{7, 6, false, 16},
    		{9, 0, false, 16},
    		{9, 9, false, 16},
    		{2, 9, false, 16},
    		{9, 2, false, 16},
    	}
    	for i, tt := range tests {
    		err := validateParity(tt.ssParity, tt.rrsParity, tt.setDriveCount)
    		if err != nil && tt.success {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. internal/config/server.go

    }
    
    // ServerConfig represents a MinIO configuration file
    type ServerConfig struct {
    	ServerConfigVersion
    	ServerConfigCommon
    	Pools []struct {
    		Args          []string `yaml:"args"`
    		SetDriveCount uint64   `yaml:"set-drive-count"`
    	} `yaml:"pools"`
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 03 15:54:03 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. cmd/server-main.go

    				args:          list,
    				setDriveCount: setDriveCount,
    			})
    		}
    	case "v2":
    		cf := config.ServerConfig{}
    		cfReader.Seek(0, io.SeekStart)
    		if err = yaml.Unmarshal(rd, &cf); err != nil {
    			return err
    		}
    
    		pools = make([]poolArgs, 0, len(cf.Pools))
    		for _, list := range cf.Pools {
    			driveCount := list.SetDriveCount
    			if setDriveCount > 0 {
    				driveCount = setDriveCount
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 34.5K bytes
    - Viewed (1)
  10. cmd/erasure.go

    	// Add any object layer shutdown activities here.
    	closeStorageDisks(er.getDisks()...)
    	return nil
    }
    
    // defaultWQuorum write quorum based on setDriveCount and defaultParityCount
    func (er erasureObjects) defaultWQuorum() int {
    	dataCount := er.setDriveCount - er.defaultParityCount
    	if dataCount == er.defaultParityCount {
    		return dataCount + 1
    	}
    	return dataCount
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top