We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42892ac commit ff46636Copy full SHA for ff46636
server/src/main/java/com/cloud/server/StatsCollector.java
@@ -1364,6 +1364,14 @@ public boolean imageStoreHasEnoughCapacity(DataStore imageStore) {
1364
return false;
1365
}
1366
1367
+ public boolean imageStoreHasEnoughCapacity(DataStore imageStore, Double storeCapThreshold) {
1368
+ StorageStats imageStoreStats = _storageStats.get(imageStore.getId());
1369
+ if (imageStoreStats != null && (imageStoreStats.getByteUsed() / (imageStoreStats.getCapacityBytes() * 1.0)) <= storeCapThreshold) {
1370
+ return true;
1371
+ }
1372
+ return false;
1373
1374
+
1375
/**
1376
* Sends VMs metrics to the configured graphite host.
1377
*/
0 commit comments