Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 340 for nDisks (6.64 sec)

  1. cmd/server-main_test.go

    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	// Tests for ErasureSD object layer.
    	nDisks := 1
    	disks, err := getRandomDisks(nDisks)
    	if err != nil {
    		t.Fatal("Failed to create drives for the backend")
    	}
    	defer removeRoots(disks)
    
    	obj, err := newObjectLayer(ctx, mustGetPoolEndpoints(0, disks...))
    	if err != nil {
    		t.Fatal("Unexpected object layer initialization error", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  2. cmd/erasure-metadata-utils_test.go

    	if shuffledDisks[0] != disks[8] ||
    		shuffledDisks[1] != disks[7] ||
    		shuffledDisks[2] != disks[9] ||
    		shuffledDisks[3] != disks[6] ||
    		shuffledDisks[4] != disks[10] ||
    		shuffledDisks[5] != disks[5] ||
    		shuffledDisks[6] != disks[11] ||
    		shuffledDisks[7] != disks[4] ||
    		shuffledDisks[8] != disks[12] ||
    		shuffledDisks[9] != disks[3] ||
    		shuffledDisks[10] != disks[13] ||
    		shuffledDisks[11] != disks[2] ||
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  3. cmd/erasure-healing_test.go

    				return
    			}
    			actualSha256 := actualH.Sum(nil)
    
    			z := obj.(*erasureServerPools)
    			er := z.serverPools[0].getHashedSet(object)
    
    			disks := er.getDisks()
    			distribution := hashOrder(pathJoin(bucket, object), nDisks)
    			shuffledDisks := shuffleDisks(disks, distribution)
    
    			// remove last data shard
    			err = removeAll(pathJoin(shuffledDisks[11].String(), bucket, object))
    			if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  4. cmd/erasure-sets_test.go

    	}
    }
    
    // TestNewErasure - tests initialization of all input disks
    // and constructs a valid `Erasure` object
    func TestNewErasureSets(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	nDisks := 16 // Maximum disks.
    	var erasureDisks []string
    	for i := 0; i < nDisks; i++ {
    		// Do not attempt to create this path, the test validates
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Feb 12 07:21:56 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  5. cmd/metrics-realtime.go

    	return m
    }
    
    func collectLocalDisksMetrics(disks map[string]struct{}) map[string]madmin.DiskMetric {
    	objLayer := newObjectLayerFn()
    	if objLayer == nil {
    		return nil
    	}
    
    	metrics := make(map[string]madmin.DiskMetric)
    	storageInfo := objLayer.LocalStorageInfo(GlobalContext, true)
    	for _, d := range storageInfo.Disks {
    		if len(disks) != 0 {
    			_, ok := disks[d.Endpoint]
    			if !ok {
    				continue
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 10 16:28:08 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  6. cmd/erasure-server-pool-decom_test.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"testing"
    )
    
    func prepareErasurePools() (ObjectLayer, []string, error) {
    	nDisks := 32
    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	pools := mustGetPoolEndpoints(0, fsDirs[:16]...)
    	pools = append(pools, mustGetPoolEndpoints(1, fsDirs[16:]...)...)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 03 16:47:40 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    	var nDisks int
    	for _, disk := range di {
    		if disk == nil || disk.Total == 0 {
    			// Disk offline, no inodes or something else is wrong.
    			continue
    		}
    		nDisks++
    		total += disk.Total
    		available += disk.Total - disk.Used
    	}
    
    	if nDisks < len(di)/2 || nDisks <= 0 {
    		return false, fmt.Errorf("not enough online disks to calculate the available space, expected (%d)/(%d)", (len(di)/2)+1, nDisks)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 35.6K bytes
    - Viewed (1)
  8. cmd/format-erasure_test.go

    }
    
    func BenchmarkInitStorageDisksMax(b *testing.B) {
    	benchmarkInitStorageDisksN(b, 32*204)
    }
    
    func benchmarkInitStorageDisksN(b *testing.B, nDisks int) {
    	b.ResetTimer()
    	b.ReportAllocs()
    
    	fsDirs, err := getRandomDisks(nDisks)
    	if err != nil {
    		b.Fatal(err)
    	}
    
    	endpoints := mustGetNewEndpoints(0, 16, fsDirs...)
    	b.RunParallel(func(pb *testing.PB) {
    		endpoints := endpoints
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    func initTestServerWithBackend(ctx context.Context, t TestErrHandler, testServer TestServer, objLayer ObjectLayer, disks []string) TestServer {
    	// Test Server needs to start before formatting of disks.
    	// Get credential.
    	credentials := globalActiveCred
    
    	testServer.Obj = objLayer
    	testServer.rawDiskPaths = disks
    	testServer.Disks = mustGetPoolEndpoints(0, disks...)
    	testServer.AccessKey = credentials.AccessKey
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  10. cmd/erasure-decode_test.go

    		if err != nil {
    			t.Fatalf("Test %d: failed to create test setup: %v", i, err)
    		}
    		erasure, err := NewErasure(context.Background(), test.dataBlocks, test.onDisks-test.dataBlocks, test.blocksize)
    		if err != nil {
    			t.Fatalf("Test %d: failed to create ErasureStorage: %v", i, err)
    		}
    		disks := setup.disks
    		data := make([]byte, test.data)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 21.1K bytes
    - Viewed (1)
Back to top