This message was deleted.
# harvester
a
This message was deleted.
a
when deploy POD in k8s, user set
request
and
limited
, the
request
will be treated as
reserved
.
and
used
is the actual running statistics
you can change them by set the params of
deployment
, if there are parent objects of
deployment
, you need to set until the root object
What do you mean
what is the meaning of Storage Scheduled
?
l
Thank you for your response, @ancient-pizza-13099. Regarding the storage scheduled, I am encountering an error on one of our servers having sufficient storage space. Could you please explain why this might be happening?
a
FYI, this KB reveals how resource usage is calculated. https://github.com/harvester/harvesterhci.io/pull/52
@loud-summer-33688 :
kubectl get pvc -A
l
Im reading about the amount of replicas in storage class, do you know how can I change the amount of replicas ? from 3 to 3, for example
a
You need to create a new
storage-class
(select replica 1), and set this one as the default.
🙌 1
Your issue is: why there is 727 G scheduled? it means you have already create some VMs with big disk, and the overall scheduled is over the https://longhorn.io/docs/archives/1.2.6/best-practices/#minimal-available-storage-and-over-provisioning
Your host have only about 439G disk available; and already scheduled with 727G , the default over-provision is 200%
✅ 1
LH complains that it cann't schedule more
the below code is hit:
Copy code
func (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)
}
l
Thanks, I'm goint to make tests, greatings !