Documentation ¶
Index ¶
- type Disk
- type DiskSchedulingInfo
- type ReplicaScheduler
- func (rcs *ReplicaScheduler) GetDiskSchedulingInfo(disk types.DiskSpec, diskStatus types.DiskStatus) (*DiskSchedulingInfo, error)
- func (rcs *ReplicaScheduler) IsSchedulableToDisk(size int64, info *DiskSchedulingInfo) bool
- func (rcs *ReplicaScheduler) ScheduleReplica(replica *longhorn.Replica, replicas map[string]*longhorn.Replica) (*longhorn.Replica, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiskSchedulingInfo ¶
type ReplicaScheduler ¶
type ReplicaScheduler struct {
// contains filtered or unexported fields
}
func NewReplicaScheduler ¶
func NewReplicaScheduler(ds *datastore.DataStore) *ReplicaScheduler
func (*ReplicaScheduler) GetDiskSchedulingInfo ¶
func (rcs *ReplicaScheduler) GetDiskSchedulingInfo(disk types.DiskSpec, diskStatus types.DiskStatus) (*DiskSchedulingInfo, error)
func (*ReplicaScheduler) IsSchedulableToDisk ¶
func (rcs *ReplicaScheduler) IsSchedulableToDisk(size int64, info *DiskSchedulingInfo) bool
Click to show internal directories.
Click to hide internal directories.