Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PlacementHelper ¶
type PlacementHelper interface { // Instances returns the list of instances managed by the PlacementHelper. Instances() []placement.Instance // CanMoveShard checks if the shard can be moved from the instance to the target isolation group. CanMoveShard(shard uint32, fromInstance placement.Instance, toIsolationGroup string) bool }
PlacementHelper helps the algorithm to place shards.
func NewPlacementHelper ¶
func NewPlacementHelper(p placement.Placement, opts placement.Options) PlacementHelper
NewPlacementHelper returns a placement helper
Click to show internal directories.
Click to hide internal directories.