3

Kubernetes 资源限制要不要限制 CPU

 1 year ago
source link: https://www.v2ex.com/t/931432
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Kubernetes

Kubernetes 资源限制要不要限制 CPU

  seagull7558 · 52 分钟前 · 319 次点击
硬件资源: 一台超融合服务器 虚拟了很多很多非常多 CPU 出来,作为某个 node 节点

问题 1: 所有应用不限制 CPU,但是 springboot 应用启动的非常慢 我本地 docker --cpuset-cpus="1" 测试了下 只需要一分钟 但是服务器上需要三分钟才能运行起来

解决: 没解决

问题 2: 所有应用不限制 CPU 调度的时候死摁着某一个配置较好的 node 薅

解决: 应用添加 CPU 限制 node 节点配置 CPU 限制 并配置预留资源

问题 3: 所有应用在限制 CPU 之后 整个节点的 CPU 利用率较低 20% 这也是我感觉矛盾的一个点 配置了限制就会有浪费 不配置限制 就会造成调度不均衡

注: 我是开发 k8s 只用在开发和测试环境方便我们使用 helm 随时拉起来一套环境并在不需要的时候随时回收 没有很深入学习过

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK