vertical pod autoscaler 只适用于资源请求还是它也改变了限制?
Does vertical pod autoscaler only works with resource requests or it also changes the limits too?
Vertical Pod autoscaling frees you from having to think about what
values to specify for a container’s CPU requests and limits and
memory requests and limits. The autoscaler can recommend values
for CPU and memory requests and limits, or it can automatically update
the values
然而open source vertical pod autoscaler documentation中有两个看似矛盾的说法:
VPA is capable of setting container resources (CPU & memory
request/limit) at Pod submission time.
VPA only controls the resource request of containers. It sets the
limit to infinity. The request is calculated based on analysis of the
current and previous runs
我很困惑哪一个最终是正确的,如果有能力获得限制建议,我该如何将其添加到我的 VPA?到目前为止,我只设法获得请求建议。
当您设置 controlledValues
到 RequestAndLimits
选项时,VPA 能够设置限制。但是,它不建议限制应该是多少。使用此请求是根据实际值计算的,其中限制是根据当前 pod 的请求和限制关系计算的。这意味着,如果您启动具有 2CPU 请求并将限制设置为 10CPU 的 Pod,那么 VPA 将始终将限制设置为 1:5。这意味着第二个数量(限制)将始终是第一个数量的 5 倍。
你也明白 limits
不被调度程序使用,那些只是为了让 Kubelet 杀死 pods 如果他超过那些
至于您的 VPA 工作不正常,我们需要查看一些配置示例以通过 Internet 提供更多建议。
Vertical Pod autoscaling frees you from having to think about what values to specify for a container’s CPU requests and limits and memory requests and limits. The autoscaler can recommend values for CPU and memory requests and limits, or it can automatically update the values
然而open source vertical pod autoscaler documentation中有两个看似矛盾的说法:
VPA is capable of setting container resources (CPU & memory request/limit) at Pod submission time.
VPA only controls the resource request of containers. It sets the limit to infinity. The request is calculated based on analysis of the current and previous runs
我很困惑哪一个最终是正确的,如果有能力获得限制建议,我该如何将其添加到我的 VPA?到目前为止,我只设法获得请求建议。
controlledValues
到 RequestAndLimits
选项时,VPA 能够设置限制。但是,它不建议限制应该是多少。使用此请求是根据实际值计算的,其中限制是根据当前 pod 的请求和限制关系计算的。这意味着,如果您启动具有 2CPU 请求并将限制设置为 10CPU 的 Pod,那么 VPA 将始终将限制设置为 1:5。这意味着第二个数量(限制)将始终是第一个数量的 5 倍。
你也明白 limits
不被调度程序使用,那些只是为了让 Kubelet 杀死 pods 如果他超过那些
至于您的 VPA 工作不正常,我们需要查看一些配置示例以通过 Internet 提供更多建议。