Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GetTotalCapacity (0.21 sec)

  1. cmd/notification-summary.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"github.com/minio/madmin-go/v3"
    )
    
    // GetTotalCapacity gets the total capacity in the cluster.
    func GetTotalCapacity(diskInfo []madmin.Disk) (capacity uint64) {
    	for _, disk := range diskInfo {
    		capacity += disk.TotalSpace
    	}
    	return
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 20 00:53:08 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  2. cmd/metrics-v3-cluster-health.go

    	c *metricsCache,
    ) error {
    	clusterDriveMetrics, _ := c.clusterDriveMetrics.Get()
    
    	storageInfo := clusterDriveMetrics.storageInfo
    
    	m.Set(healthCapacityRawTotalBytes, float64(GetTotalCapacity(storageInfo.Disks)))
    	m.Set(healthCapacityRawFreeBytes, float64(GetTotalCapacityFree(storageInfo.Disks)))
    	m.Set(healthCapacityUsableTotalBytes, float64(GetTotalUsableCapacity(storageInfo.Disks, storageInfo)))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Mar 10 09:15:15 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java

                append(b, "count", () -> p.getCount()).append(',');
                append(b, "used", () -> p.getUsed().getBytes()).append(',');
                append(b, "capacity", () -> p.getTotalCapacity().getBytes()).append('}');
                return b.toString();
            }).collect(Collectors.joining(",")));
            buf.append("},");
            final GarbageCollectors gc = jvmStats.getGc();
            buf.append("\"gc\":{");
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java

                jvmPoolObj.key = p.getName();
                jvmPoolObj.count = p.getCount();
                jvmPoolObj.used = p.getUsed().getBytes();
                jvmPoolObj.capacity = p.getTotalCapacity().getBytes();
                return jvmPoolObj;
            }).toArray(n -> new JvmPoolObj[n]);
            final GarbageCollectors gc = jvmStats.getGc();
            jvmObj.gc = Arrays.stream(gc.getCollectors()).map(c -> {
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 12.1K bytes
    - Viewed (0)
  5. cmd/metrics.go

    		prometheus.NewDesc(
    			prometheus.BuildFQName(minioNamespace, "capacity_raw", "total"),
    			"Total capacity online in the cluster",
    			nil, nil),
    		prometheus.GaugeValue,
    		float64(GetTotalCapacity(server.Disks)),
    	)
    
    	// Report total capacity free
    	ch <- prometheus.MustNewConstMetric(
    		prometheus.NewDesc(
    			prometheus.BuildFQName(minioNamespace, "capacity_raw_free", "total"),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  6. cmd/metrics-v2.go

    		totalDrives := onlineDrives.Merge(offlineDrives)
    
    		metrics = append(metrics, MetricV2{
    			Description: getClusterCapacityTotalBytesMD(),
    			Value:       float64(GetTotalCapacity(storageInfo.Disks)),
    		})
    
    		metrics = append(metrics, MetricV2{
    			Description: getClusterCapacityFreeBytesMD(),
    			Value:       float64(GetTotalCapacityFree(storageInfo.Disks)),
    		})
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
Back to top