简体   繁体   English

GKE kubernetes上的节点大小

[英]Node size on GKE kubernetes

We run our cluster with two nodes of type standard 2: 7.5Gb and 2vCPU 我们使用标准2类型的两个节点运行我们的集群:7.5Gb和2vCPU

are there any recommended minimum size for a cluster on GKE. 在GKE上是否有任何建议的群集最小大小。 I assume there is no real master as this is a managed "service"? 我认为没有真正的主人,因为这是一个托管的“服务”?

I'm struggling to deal with resource limits. 我正在努力应对资源限制。

There is no recommended minimum size. 没有建议的最小尺寸。 However, pods have both CPU and memory requests and limits. 但是,pod具有CPU和内存请求和限制。

Requests define how much free CPU/memory there must be on a node so a pod can be scheduled there; 请求定义节点上必须有多少空闲CPU /内存,以便可以在那里安排pod; that amount is then reserved for that pod and won't be considered 'free' for scheduling of a next pod. 然后,该金额将保留给该广告连播,并且不会被视为“免费”用于安排下一个广告连播。
On the other hand, limits define the maximum amount a pod can ask for - these can be overcommitted. 另一方面,限制定义了pod可以要求的最大数量 - 这些可以过量使用。

Try looking at your kubectl describe nodes output, which lists all pods and their requests and limits. 尝试查看您的kubectl describe nodes输出,其中列出了所有pod及其请求和限制。 By default, the requests are 100m (10% of a core) - if you know that some of your pods don't need that much, set this lower. 默认情况下,请求是100米(核心的10%) - 如果您知道某些pod不需要那么多,请将其设置为较低。 Then you will be able to schedule more pods on a node or at least work out the number of nodes you need. 然后,您将能够在节点上安排更多pod,或者至少计算出您需要的节点数。

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

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