Expander Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. containerservice. models. Expander
- com.
- com.
public final class Expander
extends ExpandableStringEnum<Expander>
The expander to use when scaling up. If not specified, the default is 'random'. See [expanders](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/FAQ.md\#what-are-expanders) for more information.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final Expander |
LEAST_WASTE
Selects the node group that will have the least idle CPU (if tied, unused memory) after scale-up. |
| static final Expander |
MOST_PODS
Selects the node group that would be able to schedule the most pods when scaling up. |
| static final Expander |
PRIORITY
Selects the node group that has the highest priority assigned by the user. |
| static final Expander |
RANDOM
Used when you don't have a particular need for the node groups to scale differently. |
Constructor Summary
| Constructor | Description |
|---|---|
| Expander() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Expander value. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Expander |
fromString(String name)
Creates or finds a Expander from its string representation. |
| static Collection<Expander> |
values()
Gets known Expander values. |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
LEAST_WASTE
public static final Expander LEAST_WASTE
Selects the node group that will have the least idle CPU (if tied, unused memory) after scale-up. This is useful when you have different classes of nodes, for example, high CPU or high memory nodes, and only want to expand those when there are pending pods that need a lot of those resources.
MOST_PODS
public static final Expander MOST_PODS
Selects the node group that would be able to schedule the most pods when scaling up. This is useful when you are using nodeSelector to make sure certain pods land on certain nodes. Note that this won't cause the autoscaler to select bigger nodes vs. smaller, as it can add multiple smaller nodes at once.
PRIORITY
public static final Expander PRIORITY
Selects the node group that has the highest priority assigned by the user. It's configuration is described in more details [here](https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/expander/priority/readme.md).
RANDOM
public static final Expander RANDOM
Used when you don't have a particular need for the node groups to scale differently.
Constructor Details
Expander
@Deprecated
public Expander()
Deprecated
Creates a new instance of Expander value.
Method Details
fromString
public static Expander fromString(String name)
Creates or finds a Expander from its string representation.
Parameters:
Returns:
values
public static Collection<Expander> values()
Gets known Expander values.
Returns: