frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

For the love of god stop using CPU limits in Kubernetes

https://github.com/inevolin/k8s-cpu-limits-analyzed
34•iljanevo•57m ago

Comments

callamdelaney•44m ago
Hilarious, another kubernetes footgun - the gift that keeps on giving.
websap•41m ago
For the love of god - care about other pods on the node, especially in a multi-tenant setup.

Sorry for the cheeky response.

CPU Limits have a place, you don't want a bad change for 1 deployment object affect all neighbors by taking all the CPU. You need to be able to constrain the blast radius. This doc gives me strong AI vibes. Setting CPU limits isn't free. You still need to care about how the programming language that you use discovers those limits, and correctly handles them. For e.g. if you spin up a 100 Java threads, but only have 1 cpu as the limit, that's bad design.

inigyou•33m ago
That's what CPU requests are for.
websap•24m ago
CPU requests are cgroup weights.
crymer11•31m ago
I don’t think you understand how CPU limits and the Linux CPU scheduler work. CPU limits don’t protect you from something taking all the CPU; that’s what CPU requests do. Limits throttle your pods even if the CPU is idle/free to do work.
websap•23m ago
Hahaha! Thanks for the laugh.
da_chicken•15m ago
That's literally not what the documentation says.

https://kubernetes.io/docs/concepts/configuration/manage-res...

rimworld•39m ago
tbh I've never known search a 'feature' as limits and requests coupled with health probes to cause more problems in production than anything else.....
aairey•39m ago
How is this “news”?

It was already the case in 2018.

Also, no mention of the scheduler overhead. And the maintenance overhead is the worst.

websap•35m ago
Scheduler overhead for CPU limits? Are you talking about the Linux Scheduler or the k8s scheduler?
acuteaura•6m ago
It's not as much an "overhead" as it will mess up your latency. Limits don't stop you from using available resources until you hit the relative allowance in a CFS window, so a 1 CPU limit on a 32 CPU machine at worst gives you 32 cores for 3.3ms every 100ms.
ofjcihen•22m ago
Many orgs are just now discovering K8s at scale. Seriously.

I’m not sure why that is but a large number of the F100s I contract with are suddenly deploying 4 times the number of containers they had before.

conradludgate•36m ago
While I agree that CPU limits tend to make your performance worse, I don't think the delivery of the post is all too convincing (and is pretty heavy on the LLM-isms that it's putting me off from reading).

It mentions that a cpu request is a guarantee, but how is that enforced? If I have 32 pods running on a 32 core machine, each with 1cpu requested, what stops one of those pods using an unfair share? I assume we just rely on the Linux scheduler. If I have 16 pods with 1cpu and 1 pod with 16cpu, does the Linux scheduler make sure to give the 16cpu pod more time? Or are we back to using cgroups.

croemer•5m ago
Requests are guaranteed no matter what.

> If I have 16 pods with 1cpu and 1 pod with 16cpu, does the Linux scheduler make sure to give the 16cpu pod more time?

Yes if there's CPU pressure the 16cpu will get 16x more than 1cpu.

tbrownaw•24m ago
Limits are what give consistency when your pod gets scheduled on nodes with different amounts of load.
sjbzbeiks•20m ago
This always sounds good on paper and this is very common lore, but then when you get into production escalations a very common problem is a lot of software depends on limits for autoconfiguration of thread pools and even several runtimes (go and java for example, at least .net is mentioned in the article), yes you can usually set them with a flag but people have to know this, communicate it, enforce it. Basically replace adhoc what limits is doing for you automatically configuration wise

So this just all assumes you have a setup where all teams communicate the necessary information perfectly.. what happens in practice is workloads degrade at edge cases because there are 256 threads running for a thread pool instead of 4.

barrkel•12m ago
Go is particularly hilarious because it will just go and create a thread for every hardware thread in your system (my home system has 192 hardware threads), just in case it needs to scale up. So tiny utilities, little network proxies and the like add up to thousands of threads + stacks etc. for very little load.
inigyou•16m ago
AI wrote most of this
dwedge•14m ago
Just give me the prompt
teliskr•12m ago
I would expect the impact of cpu limits to be different between K8s providers. I have only used memory limits. If I had a pod that tended to be very cpu intensive, I would schedule it on it's own node group.
fortuitous-frog•4m ago
If you want the slop-free inspiration (2022): https://home.robusta.dev/blog/stop-using-cpu-limits

(The title of this was also stolen for this HN post, although the GitHub repo makes no mention of it...)

Curl Performance

https://daniel.haxx.se/blog/2026/08/14/curl-performance-2/
1•gpi•48s ago•0 comments

My Anti AI Computer

https://punkx.org/jackdoe/home.html
1•birdculture•1m ago•0 comments

Model Context Protocol (MCP) Explained: How AI Agents Connect to Any Tool

https://stikastudio.com/blog/what-is-model-context-protocol/
1•hamidze•2m ago•0 comments

The Global Humanoid Robotics Ecosystem Is Broader Than Robot Makers

https://humanoidanalytics.com/2026/08/13/the-global-humanoid-robotics-ecosystem-is-broader-than-r...
1•rinatmirzaitov•3m ago•0 comments

Singapore's Sound Card SoundBlaster Hero [video]

https://www.youtube.com/watch?v=VTPa6wRECw0
1•Bluestein•4m ago•0 comments

Tailwind CSS: Rapidly build modern websites without ever leaving your HTML

https://tailwindcss.com/
1•doener•4m ago•0 comments

Dashboard tracking math problems being solved by AI

https://vibemathed.com
1•lnrd•5m ago•0 comments

Hackers On Planet Earth begins today

https://www.hope.net/
1•aestetix•7m ago•1 comments

Show HN: AgentsKit – A full software team and growth team in one command

https://agentskit.co
1•mohitvaswani•7m ago•0 comments

Tech, agentic coding, and whatever else I'm building

https://dev.profullstack.com/~anthony/blog/
1•buffer_overlord•8m ago•0 comments

Show HN: LinkGravity – chat and voice bridge for AI coding agents

https://github.com/dev-sseul/linkgravity
1•sseul•10m ago•0 comments

Alphabet's SpaceX bet grows 100-fold over a decade to $94B

https://www.reuters.com/business/finance/alphabets-spacex-bet-grows-100-fold-over-decade-94-billi...
2•andsoitis•10m ago•0 comments

Vite: The Build Tool for the Web

https://vite.dev
1•doener•11m ago•0 comments

YC Self-Maintaining APIs but Open-Source

https://github.com/diyanbogdanov/emend
1•bogdiyan•11m ago•0 comments

AI companies destroy physical books. Help scan rare books, with rewards

https://fr.annas-archive.gl/blog/physical-destruction.html
1•ALLTaken•16m ago•0 comments

Cards Against Humanity Elon Musk Monument

https://www.cardsagainsthumanity.com/elonhasnofriends
1•hermitcrab•18m ago•1 comments

Philosophy Journal Publishes Largely AI-Authored Article – On Purpose

https://dailynous.com/2026/08/13/philosophy-journal-publishes-largely-ai-authored-article-on-purp...
1•theanonymousone•18m ago•0 comments

Ask HN: Does AI watermarking present a new attack vector?

2•nathanfig•18m ago•0 comments

Just sit in silence for a moment and see what happens. You might like it

http://www.wowwwman.com
1•vektormemory•19m ago•7 comments

Self Study in the Age of LLMs

https://archcloudlabs.com/projects/selfstudy/
1•DLLCoolJ•19m ago•0 comments

Open-Sourced It

1•hamzabinmubeen•26m ago•1 comments

Send postcard online little web app no subscriptions or upselling

https://postcard-pigeon.com
1•wajerrr•27m ago•0 comments

Show HN: Open Vibe Coded Elite – Harmless

https://github.com/atomic14/harmless
1•iamflimflam1•30m ago•0 comments

Ask HN: Can I make a living making diagrams?

1•roschdal•30m ago•0 comments

SquashImage

https://squashimage.com
1•archemistz•30m ago•0 comments

Reed Hastings on life after Netflix and the coming 'creative destruction'

https://www.semafor.com/article/08/13/2026/reed-hastings-ceo-signal
1•andsoitis•30m ago•0 comments

Manjhi – The Mountain Man

https://en.wikipedia.org/wiki/Manjhi_%E2%80%93_The_Mountain_Man
1•thunderbong•31m ago•0 comments

Pokemon Bank shuts down, cutting off the only transfer path from older games

https://www.gamesradar.com/games/pokemon/pokemon-bank-shuts-down-next-year-cutting-off-the-only-t...
2•haunter•31m ago•1 comments

We've flown a radiation-blocking vest to the Moon and back, and it worked

https://arstechnica.com/science/2026/08/weve-flown-a-radiation-blocking-vest-to-the-moon-and-back...
1•rbanffy•33m ago•0 comments

TDD inside the agent loop – theater or actual value?

https://martinfowler.com/articles/exploring-gen-ai/tdd-in-the-agent-loop.html
1•Garbage•36m ago•0 comments