frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Experienced the counter-intuitive cost reduction by increasing CPU?

1•rudderdev•1h ago
Wanted to share the insights I learned while working on RudderStack. It was counter-intuitive to see this much cost saving by vertical scaling, by increasing CPU. Have you experienced something similar? In my story, the Kubernetes Vertical Pod Autoscaler (VPA) is the hero.

Anyone thinking about vertical scaling or using VPA in production, I hope my experience helps you learn a thing or two. Do share your experience as well for a well-rounded discussion.

-----

Background (The challenge and the subject system)

My goal was to improve performance/cost ratio for my Kubernetes cluster. For performance, the focus was on increasing throughput.

The operations in the subject system were primarily CPU-bound, we had a good amount of spare memory available at our disposal. Horizontal scaling was not possible architecturally. If you want to dive deeper, here's the code for key components of the system (and architecture in readme) -

* rudder-server - https://github.com/rudderlabs/rudder-server

* rudder-transformer - https://github.com/rudderlabs/rudder-transformer

* rudderstack-helm - https://github.com/rudderlabs/rudderstack-helm

For now, all you need to understand is that the Network IO was the key concern in scaling as the system's primary job was to make API calls to various destination integrations. Throughput was more important than latency.

------

Solution

Increasing CPU when needed. Kuberenetes Vertical Pod Autoscaler (VPA) was the key tool that helped me drive this optimization. VPA automatically adjusts the CPU and memory requests and limits for containers within pods.

------

What I liked about VPA

* I like that VPA right-sizes from live usage and—on clusters with in-place pod resize—can update requests without recreating pods, which lets me be aggressive on both scale-up and scale-down improving bin-packing and cutting cost.

* Another thing I like about VPA is that I can run multiple recommenders and choose one per workload via spec.recommenders, so different usage patterns (frugal, spiky, memory-heavy) get different percentiles/decay without per-Deployment knobs.

------

My challenge with VPA

One challenge I had with VPA is limited per-workload tuning (beyond picking the recommender and setting minAllowed/maxAllowed/controlledValues), aggressive request changes can cause feedback loops or node churn; bursty tails make safe scale-down tricky; and some pods (init-heavy etc) still need carve-outs.

------

That's all for today. Happy to hear your thoughts, questions, and probably your own experience with tools like VPA, and dealing with challenges of scale.

ErnieApp – Privacy Knowledge Manager

https://ernieapp.com/
1•eustoria•1m ago•0 comments

A blog about the Cedar Policy Language

https://cedarland.blog/
1•mooreds•5m ago•2 comments

What did your pre-launch site look like?

1•not_your_mentat•5m ago•0 comments

The Larger a Company Gets, the Harder It Is for Anyone to Know What's Happening

https://twitter.com/hnshah/status/1968393736196624521
1•westi•5m ago•0 comments

Sunscreen for the Planet

https://worksinprogress.co/issue/sunscreen-for-the-planet/
1•atalanta•6m ago•0 comments

How weak passwords and other failings led to catastrophic breach of Ascension

https://arstechnica.com/security/2025/09/how-weak-passwords-and-other-failings-led-to-catastrophi...
2•voxadam•6m ago•0 comments

Science Needs Outsiders

https://worksinprogress.co/issue/why-science-needs-outsiders/
2•dionysou•6m ago•1 comments

Unpickable Lock (Functional and 3D Printed)

https://makerworld.com/en/models/1804723-unpickable-lock-functional-and-fully-3d-printed
2•austinallegro•7m ago•0 comments

Hi No Youjin

https://aethermug.com/posts/hi-no-youjin
1•mrcgnc•7m ago•0 comments

An entrepreneur's path to building a voice-guided cooking assistant

https://www.viam.com/post/gambit-robotics
1•mooreds•7m ago•0 comments

Few of Waymo's most serious crashes were Waymo's fault

https://www.understandingai.org/p/very-few-of-waymos-most-serious-crashes
2•vinnyglennon•8m ago•0 comments

Render Hell 2.0

https://simonschreibt.de/gat/renderhell/
1•uncircle•9m ago•0 comments

The simple essence of overloading: making ad-hoc polymorphism more algebraic wit [pdf]

https://se.informatik.uni-tuebingen.de/publications/benes2025overloading.pdf
1•fanf2•10m ago•0 comments

World Record for Typing Numbers in Words

https://www.recordholders.org/en/records/typing.html
1•thunderbong•10m ago•0 comments

PlayCanvas Open Sources SOG Format for Gaussian Splatting

https://blog.playcanvas.com/playcanvas-open-sources-sog-format-for-gaussian-splatting/
1•ovenchips•11m ago•0 comments

High-throughput synaptic connectivity mapping w optogenetics&compressive sensing

https://www.nature.com/articles/s41593-025-02024-y
2•bookofjoe•11m ago•0 comments

Show HN: Built an idle text RPG for Android

https://play.google.com/store/apps/details?id=com.naughtyslot.textadventure&hl=en_US
2•syshackbot•12m ago•0 comments

Usage limits for Deno Deploy is confusing

https://node.school/blog/usage-limits-for-deno-deploy-is-confusing/
2•sagolikasoppor•13m ago•0 comments

Shuttle Cobra: Making Python Deployments Easy

https://www.shuttle.dev/blog/2025/09/18/introducing-shuttle-cobra
1•dcodes•14m ago•0 comments

DX Is Joining Atlassian

https://getdx.com/blog/dx-is-joining-atlassian/
1•bobbiechen•15m ago•0 comments

TernFS – An exabyte scale, multi-region distributed filesystem

https://www.xtxmarkets.com/tech/2025-ternfs/
19•rostayob•15m ago•0 comments

Show HN: Make smarter decisions about the open source projects you depend on

https://insights.linuxfoundation.org/
3•jerawaj740•17m ago•0 comments

Rowboat – A fast tool for understanding large datasets

https://rowboat.xyz/
2•haraball•17m ago•0 comments

Read-only Guest tmux Sessions

https://brianmckenna.org/blog/guest_tmux
1•PaulHoule•18m ago•0 comments

Meta Ray-Ban Display, Why Less Is More, Price and the Neural Band

https://stratechery.com/2025/meta-ray-ban-display-why-less-is-more-price-and-the-neural-band/
1•feross•18m ago•0 comments

Fitts's Law

https://en.wikipedia.org/wiki/Fitts%27s_law
2•yagizdegirmenci•23m ago•0 comments

The Reports of UBI's Death Are Greatly Exaggerated

https://scottsantens.substack.com/p/the-reports-of-ubis-death-are-greatly
2•2noame•24m ago•0 comments

Show HN: OYS Bitnami Builder – Build your own Bitnami containers

https://github.com/tzahifadida/oys-bitnami-builder
1•tzahifadida•24m ago•0 comments

The ONLY guide you'll need for GitHub Spec Kit [video]

https://www.youtube.com/watch?v=a9eR1xsfvHg
1•ibobev•24m ago•0 comments

Security concern as tens of thousands of phone locations for sale

https://www.rte.ie/news/primetime/2025/0918/1534034-data-for-sale/
1•austinallegro•26m ago•0 comments