你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AutoScaleExpander Enum

Definition

If not specified, the default is 'random'. See expanders for more information.

public enum AutoScaleExpander
type AutoScaleExpander = 
Public Enum AutoScaleExpander
Inheritance
AutoScaleExpander

Fields

Name Value Description
LeastWaste 0

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.

MostPods 1

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 2

Selects the node group that has the highest priority assigned by the user. It's configuration is described in more details here.

Random 3

Used when you don't have a particular need for the node groups to scale differently.

Applies to