Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckerFunc ¶
type CheckerFunc func(*core.RegionsInfo) bool
CheckerFunc checks if the scheduler is finished.
type Conf ¶
type Conf struct {
Stores []Store
Regions []Region
MaxID uint64
RegionSplitSize int64
RegionSplitRows int64
Events []EventInner
Checker CheckerFunc // To check the schedule is finished.
}
Conf represents a test suite for simulator.
type EventInner ¶
type EventInner interface {
Type() string
}
EventInner is a detail template for custom events
type ReadFlowOnRegionInner ¶
ReadFlowOnRegionInner reads bytes in some region
func (*ReadFlowOnRegionInner) Type ¶
func (w *ReadFlowOnRegionInner) Type() string
Type implements the EventInner interface
type Store ¶
type Store struct {
ID uint64
Status metapb.StoreState
Labels []metapb.StoreLabel
Capacity uint64
Available uint64
LeaderWeight float32
RegionWeight float32
}
Store is the config to simulate tikv.
type WriteFlowOnRegionInner ¶
WriteFlowOnRegionInner writes bytes in some region
func (*WriteFlowOnRegionInner) Type ¶
func (w *WriteFlowOnRegionInner) Type() string
Type implements the EventInner interface
type WriteFlowOnSpotInner ¶
WriteFlowOnSpotInner writes bytes in some range
func (*WriteFlowOnSpotInner) Type ¶
func (w *WriteFlowOnSpotInner) Type() string
Type implements the EventInner interface
Click to show internal directories.
Click to hide internal directories.