TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

For the Love of God, Stop Using CPU Limits on Kubernetes

22 点作者 arguflow11 个月前

5 条评论

danjrslp11 个月前
I used to be on the same page as the author. But then I saw tons of application teams not setting CPU limits, and coming to rely on the bursting (in other words, their requests were too low). Thus when the system came under load their application started slowing in unexpected ways.<p>We&#x27;ve had success with CPU limits, and horizontal scaling.
评论 #40857569 未加载
jauntywundrkind11 个月前
It&#x27;s sad to me that Kubernetes doesn&#x27;t expose the excellent hierarchical system for rationing CPU that&#x27;s built into the kernel: cgroups. It has its own separate constraint system, makes its own scheduler. And it just seems not as good, not as flexible, as the hierarchical system cgroups offers.<p>Being able to make a cgroup where essential services as a whole share a pool guaranteed 30%, then further refining &amp; trading off that pool &amp; other work pools feels like such a superpower. Compared to having to manage all services in flat, absolute terms.
rcarmo11 个月前
I’d say being able to set I&#x2F;O limits can be much more useful than CPU limits regardless of platform. Less chance of bringing an entire host to a halt.
sadops11 个月前
Can&#x27;t your operating system manage your CPU resources for you already? Why does Kubernetes need to be involved in process scheduling?
评论 #40857547 未加载
gladiatr7211 个月前
Almost 2-yo post and still as wrong as it was when it was posted.
评论 #40856611 未加载
评论 #40856811 未加载