Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 137 for collect (0.17 sec)

  1. cmd/erasure.go

    func (er erasureObjects) nsScanner(ctx context.Context, buckets []BucketInfo, wantCycle uint32, updates chan<- dataUsageCache, healScanMode madmin.HealScanMode) error {
    	if len(buckets) == 0 {
    		return nil
    	}
    
    	// Collect disks we can use.
    	disks, healing := er.getOnlineDisksWithHealing(false)
    	if len(disks) == 0 {
    		scannerLogIf(ctx, errors.New("data-scanner: all drives are offline or being healed, skipping scanner cycle"))
    		return nil
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 16K bytes
    - Viewed (1)
  2. cmd/metrics-v3-types.go

    	return mg.bucketLoader != nil
    }
    
    // Describe - implements prometheus.Collector interface.
    func (mg *MetricsGroup) Describe(ch chan<- *prometheus.Desc) {
    	for _, desc := range mg.Descriptors {
    		ch <- desc.toPromDesc(mg.CollectorPath.metricPrefix(), mg.ExtraLabels)
    	}
    }
    
    // Collect - implements prometheus.Collector interface.
    func (mg *MetricsGroup) Collect(ch chan<- prometheus.Metric) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  3. cmd/perf-tests.go

    	}, nil
    }
    
    // To collect RX stats during "mc support perf net"
    // RXSample holds the RX bytes for the duration between
    // the last peer to connect and the first peer to disconnect.
    // This is to improve the RX throughput accuracy.
    type netPerfRX struct {
    	RX                uint64    // RX bytes
    	lastToConnect     time.Time // time at which last peer to connect to us
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. cmd/metrics-v3-api.go

    //
    // This function currently ignores `opts`.
    func loadAPIRequestsHTTPMetrics(ctx context.Context, m MetricValues, _ *metricsCache) error {
    	// Collect node level S3 HTTP metrics.
    	httpStats := globalHTTPStats.toServerHTTPStats(false)
    
    	// Currently we only collect S3 API related stats, so we set the "type"
    	// label to "s3".
    
    	m.Set(apiRejectedAuthTotal, float64(httpStats.TotalS3RejectedAuth), "type", "s3")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  5. cmd/metrics-v3-cache.go

    }
    
    func newDataUsageInfoCache() *cachevalue.Cache[DataUsageInfo] {
    	loadDataUsage := func() (u DataUsageInfo, err error) {
    		objLayer := newObjectLayerFn()
    		if objLayer == nil {
    			return
    		}
    
    		// Collect cluster level object metrics.
    		u, err = loadDataUsageFromBackend(GlobalContext, objLayer)
    		return
    	}
    	return cachevalue.NewFromFunc(1*time.Minute,
    		cachevalue.Opts{ReturnLastGood: true},
    		loadDataUsage)
    }
    
    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)
  6. cmd/local-locker.go

    				lris, ok := l.lockMap[resource]
    				if !ok {
    					continue
    				}
    				// Collect uids, so we don't mutate while we delete
    				uids := make([]string, 0, len(lris))
    				for _, lri := range lris {
    					uids = append(uids, lri.UID)
    				}
    
    				// Delete collected uids:
    				for _, uid := range uids {
    					lris, ok := l.lockMap[resource]
    					if !ok {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 19 22:54:46 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  7. cmd/erasure-metadata-utils.go

    			continue
    		}
    		if meta.XLV1 != fi.XLV1 {
    			inconsistent++
    			continue
    		}
    		// check if erasure distribution order matches the index
    		// position if this is not correct we discard the disk
    		// and move to collect others
    		if distribution[i] != meta.Erasure.Index {
    			inconsistent++ // keep track of inconsistent entries
    			continue
    		}
    		shuffledDisks[meta.Erasure.Index-1] = disks[i]
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.StorageInfoAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	storageInfo := objectAPI.StorageInfo(ctx, true)
    
    	// Collect any disk healing.
    	healing, _ := getAggregatedBackgroundHealState(ctx, nil)
    	healDisks := make(map[string]struct{}, len(healing.HealDisks))
    	for _, disk := range healing.HealDisks {
    		healDisks[disk] = struct{}{}
    	}
    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/metacache-set.go

    		console.Debugf(format+"\n", data...)
    	}
    }
    
    func (o *listPathOptions) debugln(data ...interface{}) {
    	if serverDebugLog {
    		console.Debugln(data...)
    	}
    }
    
    // gatherResults will collect all results on the input channel and filter results according
    // to the options or to the current bucket ILM expiry rules.
    // Caller should close the channel when done.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  10. cmd/bucket-stats.go

    	//	PendingSize int64 `json:"pendingReplicationSize"`
    	// Completed size in bytes
    	ReplicatedSize int64 `json:"completedReplicationSize"`
    	// Total Replica size in bytes
    	ReplicaSize int64 `json:"replicaSize"`
    	// Collect stats for failures
    	FailStats RTimedMetrics `json:"-"`
    
    	// Total number of failed operations including metadata updates in the last minute
    	Failed madmin.TimedErrStats `json:"failed"`
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
Back to top