Documentation ¶
Index ¶
- func AllocNodeShards(shardTotal uint32, minNodeCount uint32, allNodes []cluster.RegisteredNode, ...) ([]storage.ShardNode, error)
- func NewProcedure(dispatch eventdispatch.Dispatch, cluster *cluster.Cluster, id uint64, ...) procedure.Procedure
- func Prepare(t *testing.T) (cluster.Manager, *cluster.Cluster)
- type Procedure
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocNodeShards ¶
func AllocNodeShards(shardTotal uint32, minNodeCount uint32, allNodes []cluster.RegisteredNode, shardIDs []storage.ShardID) ([]storage.ShardNode, error)
AllocNodeShards Allocates shard ids across the registered nodes, and caller should ensure `minNodeCount <= len(allNodes)`.
func NewProcedure ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.