| java.lang.Object | |
| ↳ | org.apache.helix.controller.strategy.AutoRebalanceStrategy |
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| AutoRebalanceStrategy.DefaultPlacementScheme | Compute preferred placements based on a default strategy that assigns replicas to nodes as evenly as possible while avoiding placing two replicas of the same partition on any node. | ||||||||||
| AutoRebalanceStrategy.ReplicaPlacementScheme | Interface for providing a custom approach to computing a replica's affinity to a node. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Initialize this strategy for a resource
| |||||||||||
Initialize the strategy with a default placement scheme
| |||||||||||
Constructor to support logically-typed Helix components
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Determine a preference list and mapping of partitions to nodes for all replicas
| |||||||||||
Wrap
computePartitionAssignment(List, Map, List) with a function that takes concrete
types | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Initialize this strategy for a resource
| resourceName | the resource for which an assignment will be computed |
|---|---|
| partitions | the partition names for the resource |
| states | the states and the number of replicas that should be in each state |
| maximumPerNode | the maximum number of replicas any note can hold |
| placementScheme | the scheme to use for preferred replica locations. If null, this is
AutoRebalanceStrategy.DefaultPlacementScheme
|
Initialize the strategy with a default placement scheme
Constructor to support logically-typed Helix components
| resourceId | the resource for which to compute an assignment |
|---|---|
| partitions | the partitions of the resource |
| states | the states and counts for each state |
| maximumPerNode | the maximum number of replicas per node |
| placementScheme | the scheme to use for preferred replica locations. If null, this is
AutoRebalanceStrategy.DefaultPlacementScheme
|
Determine a preference list and mapping of partitions to nodes for all replicas
| liveNodes | the current list of live participants |
|---|---|
| currentMapping | the current assignment of replicas to nodes |
| allNodes | the full list of known nodes in the system |
Wrap computePartitionAssignment(List, Map, List) with a function that takes concrete
types
| liveNodes | list of live participant ids |
|---|---|
| currentMapping | map of partition id to map of participant id to state |
| allNodes | list of all participant ids |