Discussion about this post

User's avatar
Garv Arora's avatar

The line about developers hesitating to touch a service that already works is the organisational problem hiding in here. A PR that saves 8.8% CPU still asks the owning team to take on the risk of a change, while the savings usually land in a shared infrastructure bill. Shifting left helps partly because it removes that trade. It's much easier to accept a fix before the code has ever carried production traffic.

mengzhu's avatar

One thing I'd love more detail on: the article says the reactive path profiles production services "on a recurring schedule or on demand", but doesn't say how the profiling overhead itself is budgeted. CPU sampling at 100 Hz is cheap (JFR targets ~1% out of the box), but allocation/lock/native-memory modes are not - async-profiler's own docs advise against running --all continuously in production - and dynamic attach also costs a short safepoint pause. So: what's the sampling mode and window per service, how many instances are profiled at once, and is the trigger a fixed schedule or driven by anomaly detection? That choice matters a lot for whether this can be always-on across the fleet or only on a canary pair.

16 more comments...

Ready for more?