Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for ordine (0.18 sec)

  1. cmd/metrics-v3-system-drive.go

    	m.Set(driveTotalInodes, float64(drive.UsedInodes+drive.FreeInodes), labels...)
    
    	var healing, online float64
    	if drive.Healing {
    		healing = 1
    	}
    	m.Set(driveHealing, healing, labels...)
    
    	if drive.State == "ok" {
    		online = 1
    	}
    	m.Set(driveOnline, online, labels...)
    }
    
    func (m *MetricValues) setDriveAPIMetrics(disk madmin.Disk, labels []string) {
    	if disk.Metrics == nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  2. cmd/storage-interface.go

    	"github.com/minio/madmin-go/v3"
    )
    
    // StorageAPI interface.
    type StorageAPI interface {
    	// Stringified version of disk.
    	String() string
    
    	// Storage operations.
    
    	// Returns true if disk is online and its valid i.e valid format.json.
    	// This has nothing to do with if the drive is hung or not responding.
    	// For that individual storage API calls will fail properly. The purpose
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  3. cmd/notification.go

    	}
    	idx := xxhash.Sum64String(s) % uint64(len(peerClients))
    	return peerClients[idx]
    }
    
    // GetPeerOnlineCount gets the count of online and offline nodes.
    func (sys *NotificationSys) GetPeerOnlineCount() (nodesOnline, nodesOffline int) {
    	nodesOnline = 1 // Self is always online.
    	nodesOffline = 0
    	nodesOnlineIndex := make([]bool, len(sys.peerClients))
    	var wg sync.WaitGroup
    	for idx, client := range sys.peerClients {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  4. cmd/erasure-multipart.go

    	if err != nil {
    		return fi, nil, err
    	}
    
    	quorum := readQuorum
    	if write {
    		quorum = writeQuorum
    	}
    
    	// List all online disks.
    	_, modTime, etag := listOnlineDisks(storageDisks, partsMetadata, errs, quorum)
    
    	var reducedErr error
    	if write {
    		reducedErr = reduceWriteQuorumErrs(ctx, errs, objectOpIgnoredErrs, writeQuorum)
    	} else {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  5. internal/kms/kes.go

    		kmsCtx, err := kmsContext.MarshalText()
    		if err != nil {
    			results = append(results, VerifyResult{Status: "offline", Endpoint: endpoint})
    			continue
    		}
    		result := VerifyResult{Status: "online", Endpoint: endpoint, Version: state.Version}
    		key, err := client.GenerateKey(ctx, env.Get(EnvKESKeyName, ""), kmsCtx)
    		if err != nil {
    			result.Encrypt = fmt.Sprintf("Encryption failed: %v", err)
    		} else {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Apr 16 15:43:39 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  6. cmd/erasure.go

    			localEndpoints = append(localEndpoints, endpoint)
    		}
    	}
    
    	return getStorageInfo(localDisks, localEndpoints, metrics)
    }
    
    // getOnlineDisksWithHealingAndInfo - returns online disks and overall healing status.
    // Disks are ordered in the following groups:
    // - Non-scanning disks
    // - Non-healing disks
    // - Healing disks (if inclHealing is true)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  7. cmd/batch-handlers.go

    				if aerr == nil {
    					return
    				}
    				batchLogIf(ctx,
    					fmt.Errorf("trying %s: Unable to cleanup failed multipart replication %s on remote %s/%s: %w - this may consume space on remote cluster",
    						humanize.Ordinal(attempts), res.UploadID, tgtBucket, tgtObject, aerr))
    				attempts++
    				time.Sleep(time.Second)
    			}
    		}
    	}()
    
    	var (
    		hr    *hash.Reader
    		pInfo PartInfo
    	)
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 08 14:11:38 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    		Endpoints:    make(map[string]madmin.ItemState, len(stat.Endpoints)),
    	}
    	for _, endpoint := range stat.Endpoints {
    		status.Endpoints[endpoint] = madmin.ItemOnline // TODO(aead): Implement an online check for mTLS
    	}
    
    	resp, err := json.Marshal(status)
    	if err != nil {
    		writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), err.Error(), r.URL)
    		return
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  9. cmd/prepare-storage.go

    	// Return error when quorum unformatted disks - indicating we are
    	// waiting for first server to be online.
    	unformattedDisks := quorumUnformattedDisks(sErrs)
    	if unformattedDisks && !firstDisk {
    		return nil, nil, errNotFirstDisk
    	}
    
    	// Return error when quorum unformatted disks but waiting for rest
    	// of the servers to be online.
    	if unformattedDisks && firstDisk {
    		return nil, nil, errFirstDiskWait
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 11.1K bytes
    - Viewed (0)
  10. cmd/metrics-v3-cache.go

    		clusterDriveMetrics: newClusterStorageInfoCache(),
    		nodesUpDown:         newNodesUpDownCache(),
    	}
    }
    
    type nodesOnline struct {
    	Online, Offline int
    }
    
    func newNodesUpDownCache() *cachevalue.Cache[nodesOnline] {
    	loadNodesUpDown := func() (v nodesOnline, err error) {
    		v.Online, v.Offline = globalNotificationSys.GetPeerOnlineCount()
    		return
    	}
    	return cachevalue.NewFromFunc(1*time.Minute,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 7.9K bytes
    - Viewed (0)
Back to top