We thought switching from Bitnami to the official MongoDB image would be a simple drop-in replacement. Instead, our CPU usage skyrocketed. We found that missing memory limits disabled per-CPU caching, causing massive CPU regression. Here's how we debugged and fixed it.
Mongo
SoftwareEngineering
PerformanceEngineering

