Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for rrs_parity (0.2 sec)

  1. cmd/metrics-v3-cluster-config.go

    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import "context"
    
    const (
    	configRRSParity      = "rrs_parity"
    	configStandardParity = "standard_parity"
    )
    
    var (
    	configRRSParityMD = NewGaugeMD(configRRSParity,
    		"Reduced redundancy storage class parity")
    	configStandardParityMD = NewGaugeMD(configStandardParity,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 12:50:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. cmd/metrics-v2.go

    		Type:      gaugeMetric,
    	}
    }
    
    func getNodeRRSParityMD() MetricDescription {
    	return MetricDescription{
    		Namespace: nodeMetricNamespace,
    		Subsystem: storageClassSubsystem,
    		Name:      "rrs_parity",
    		Help:      "reduced redundancy storage class parity",
    		Type:      gaugeMetric,
    	}
    }
    
    func getNodeDrivesFreeInodesMD() MetricDescription {
    	return MetricDescription{
    		Namespace: nodeMetricNamespace,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 131.9K bytes
    - Viewed (0)
  3. internal/config/storageclass/storage-class.go

    		}
    
    		if rrsParity > setDriveCount/2 {
    			return fmt.Errorf("Reduced redundancy storage class parity %d should be less than or equal to %d", rrsParity, setDriveCount/2)
    		}
    	}
    
    	if ssParity > 0 && rrsParity > 0 {
    		if ssParity < rrsParity {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. internal/config/storageclass/storage-class_test.go

    			t.Errorf("Test %d, Expected `%v`, got `%v`", i+1, tt.expectedError, err)
    		}
    	}
    }
    
    func TestValidateParity(t *testing.T) {
    	tests := []struct {
    		rrsParity     int
    		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},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 15 23:04:20 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  5. cmd/global-heal.go

    	})
    
    	backendInfo := o.BackendInfo()
    	status.SCParity = make(map[string]int)
    	status.SCParity[storageclass.STANDARD] = backendInfo.StandardSCParity
    	status.SCParity[storageclass.RRS] = backendInfo.RRSCParity
    
    	return status, true
    }
    
    type healEntryResult struct {
    	bytes     uint64
    	success   bool
    	skipped   bool
    	entryDone bool
    	name      string
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool.go

    		scParity = z.serverPools[0].defaultParityCount
    	}
    	rrSCParity := globalStorageClass.GetParityForSC(storageclass.RRS)
    
    	// Data blocks can vary per pool, but parity is same.
    	for i, setDriveCount := range z.SetDriveCounts() {
    		b.StandardSCData = append(b.StandardSCData, setDriveCount-scParity)
    		b.RRSCData = append(b.RRSCData, setDriveCount-rrSCParity)
    		b.DrivesPerSet = append(b.DrivesPerSet, setDriveCount)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    			Type:             madmin.ErasureType,
    			OnlineDisks:      onlineDisks.Sum(),
    			OfflineDisks:     offlineDisks.Sum(),
    			StandardSCParity: backendInfo.StandardSCParity,
    			RRSCParity:       backendInfo.RRSCParity,
    			TotalSets:        backendInfo.TotalSets,
    			DrivesPerSet:     backendInfo.DrivesPerSet,
    		}
    
    		if pools {
    			ctx2, cancel := context.WithTimeout(ctx, operationTimeout)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top