adamant-kite-43734
01/22/2024, 7:05 PMancient-pizza-13099
01/23/2024, 8:06 AMrequest
and limited
, the request
will be treated as reserved
.ancient-pizza-13099
01/23/2024, 8:07 AMused
is the actual running statisticsancient-pizza-13099
01/23/2024, 8:08 AMdeployment
, if there are parent objects of deployment
, you need to set until the root objectancient-pizza-13099
01/23/2024, 8:16 AMwhat is the meaning of Storage Scheduled
?loud-summer-33688
01/23/2024, 4:29 PMancient-pizza-13099
01/23/2024, 4:49 PMancient-pizza-13099
01/23/2024, 4:53 PMkubectl get pvc -A
loud-summer-33688
01/23/2024, 5:00 PMancient-pizza-13099
01/23/2024, 5:08 PMstorage-class
(select replica 1), and set this one as the default.ancient-pizza-13099
01/23/2024, 5:09 PMancient-pizza-13099
01/23/2024, 5:10 PMancient-pizza-13099
01/23/2024, 5:10 PMancient-pizza-13099
01/23/2024, 5:11 PMfunc (rcs *ReplicaScheduler) IsSchedulableToDisk(size int64, requiredStorage int64, info *DiskSchedulingInfo) bool {
// StorageReserved = the space is already used by 3rd party + the space will be used by 3rd party.
// StorageAvailable = the space can be used by 3rd party or Longhorn system.
// There is no (direct) relationship between StorageReserved and StorageAvailable.
return info.StorageMaximum > 0 && info.StorageAvailable > 0 &&
info.StorageAvailable-requiredStorage > int64(float64(info.StorageMaximum)*float64(info.MinimalAvailablePercentage)/100) &&
(size+info.StorageScheduled) <= int64(float64(info.StorageMaximum-info.StorageReserved)*float64(info.OverProvisioningPercentage)/100)
}
loud-summer-33688
01/23/2024, 5:42 PM