[英]Different unit for Kubernetes resource memory on pods
My question is related to Kubernetes and the units of the metrics used for the HPA (autoscaling).我的问题与 Kubernetes 和用于 HPA(自动缩放)的度量单位有关。
When I run the command当我运行命令时
kubectl describe hpa my-autoscaler
I get (a part of more information) this:我得到(更多信息的一部分)这个:
...
Metrics: ( current / target )
resource memory on pods: 318067507200m / 1000Mi
resource cpu on pods (as a percentage of request): 1% (1m) / 80%
...
In this example, when you can see the metrics for the resource memory on pods , you can see that the unit for the current
value is m
, which is "millis" (as is described in the official documentation ), but the unit used for the target
value is Mi
, which is "Mebis"在此示例中,当您在 pods 上看到资源 memory的指标时,您可以看到
current
值的单位是m
,即“毫秒”(如官方文档中所述),但用于target
值为Mi
,即“Mebis”
Is there any problem with the usage of different units?使用不同的单位有什么问题吗?
Thanks!谢谢!
No, they are just different multipliers.不,它们只是不同的乘数。 The actual code is using a raw number of bytes under the hood.
实际代码在后台使用原始字节数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.