Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPlacement ¶
func GetPlacement(balancer *v1alpha1.Balancer, summaries map[string]pods.Summary) (ReplicaPlacement, PlacementProblems, error)
GetPlacement calculates the placement for the given balancer and pod summary information for individual balancer targets.
Types ¶
type PlacementProblems ¶
type PlacementProblems struct { // MissingReplicas is the number of replicas that had to be added // on top of the desired count to match the constraint and policy. MissingReplicas int32 // OverflowReplicas is the number of replicas that could not be placed // due to constraints and policy. OverflowReplicas int32 }
PlacementProblems contains information about replicas that were problematic when applying placement policy and constraints.
type ReplicaPlacement ¶
ReplicaPlacement defines the number of replicas for each of the BalancerTargets.
Click to show internal directories.
Click to hide internal directories.