简体   繁体   English

EKS-Fargate 上的 HPA

[英]HPA on EKS-Fargate

this is not a question about how to implement HPA on a EKS cluster running Fargate pods... It´s about if it is necessary to implement HPA along with Fargate, because as far as I know, Fargate is a "serverless" solution from AWS: "Fargate allocates the right amount of compute, eliminating the need to choose instances and scale cluster capacity. You only pay for the resources required to run your containers, so there is no over-provisioning and paying for additional servers."这不是关于如何在运行 Fargate pods 的 EKS 集群上实施 HPA 的问题......而是关于是否有必要与 Fargate 一起实施 HPA,因为据我所知,Fargate 是一种“无服务器”解决方案AWS:“Fargate 分配适当的计算量,无需选择实例和扩展集群容量。您只需为运行容器所需的资源付费,因此不会过度配置和支付额外的服务器费用。”

So I´m not sure in which cases I would like to implement HPA on an EKS cluster running Fargate but the option is there.因此,我不确定在哪些情况下我想在运行 Fargate 的 EKS 集群上实施 HPA,但可以选择。 So I would like to know if someone could give more information.所以我想知道是否有人可以提供更多信息。

Thank you in advance先感谢您

EKS/Fargate allows you to NOT run "Cluster Autoscaler" (CA) because there are not nodes you need to run your pods. EKS/Fargate 允许您不运行“集群自动缩放器”(CA),因为您不需要运行 Pod 的节点。 This is what it is referred to with "no over-provisioning and paying for additional servers."这就是所谓的“没有过度配置和支付额外的服务器费用”。

HOWEVER, you could/would use HPA because Fargate does not provide a resource scaling mechanism for your pods.但是,您可以/将使用 HPA,因为 Fargate 不为您的 pod 提供资源扩展机制。 You can configure the size of your Faragte pods via K8s requests but at that point that is a regular pod with finite resources.您可以通过 K8s 请求配置Faragte pod 的大小,但此时它是具有有限资源的常规 pod。 You can use HPA to determine the number of pods (on Fargate) you need to run at any point in time for your deployment.您可以使用 HPA 来确定在部署的任何时间点需要运行的 Pod 数量(在 Fargate 上)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM