java.lang.Object | |
↳ | org.apache.helix.controller.rebalancer.util.ConstraintBasedAssignment |
Collection of functions that will compute the best possible state based on the participants and the rebalancer configuration of a resource.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
compute best state for resource in SEMI_AUTO and FULL_AUTO modes
| |||||||||||
compute best state for resource in CUSTOMIZED rebalancer mode
| |||||||||||
Get a mapping for a partition for the current state participants who have been dropped or
disabled for a given partition.
| |||||||||||
Get a set of disabled participants for a partition
| |||||||||||
Get an ordered list of participants that can serve a partition
| |||||||||||
Get a map of state to upper bound constraint given a cluster
| |||||||||||
Get the number of replicas that should be in each state for a partition
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
compute best state for resource in SEMI_AUTO and FULL_AUTO modes
upperBounds | map of state to upper bound |
---|---|
liveParticipantSet | set of live participant ids |
currentStateMap | : participant->state for each partition |
compute best state for resource in CUSTOMIZED rebalancer mode
Get a mapping for a partition for the current state participants who have been dropped or disabled for a given partition.
currentStateMap | current map of participant id to state for a partition |
---|---|
participants | participants selected to serve the partition |
disabledParticipants | participants that have been disabled for this partition |
initialState | the initial state of the resource state model |
Get a set of disabled participants for a partition
participantMap | map of all participants |
---|---|
partitionId | the partition to check |
Get an ordered list of participants that can serve a partition
cluster | cluster snapshot |
---|---|
partitionId | the partition to look up |
Get a map of state to upper bound constraint given a cluster
stateModelDef | the state model definition to check |
---|---|
resourceId | the resource that is constraint |
cluster | the cluster the resource belongs to |
Get the number of replicas that should be in each state for a partition
upperBounds | map of state to upper bound |
---|---|
stateModelDef | StateModelDefinition object |
liveNodesNb | number of live nodes |