Ambassador upgrade caused an increase in memory use(x8)
See original GitHub issueDescribe the bug
On our Ambassador API Gateway deploy we noticed a severe memory use increase(approximately 8x) when we upgraded the Helm chart version from 6.5.10
-> 6.6.2
(Ambassador version from 1.8.1
to 1.12.2
).
After we reviewed our setup and checked various changelog/docs we found the env config AMBASSADOR_LEGACY_MODE
, after setting its value to true
, the memory dropped back to “normal/before the upgrade”.
To Reproduce Steps to reproduce the behavior:
- Upgrade Ambassador to version
1.12.2
Expected behavior
Memory use shouldn’t increase if AMBASSADOR_LEGACY_MODE
remains to false
Versions (please complete the following information):
- Ambassador: 1.12.2
- Kubernetes environment: AWS KOPS setup
- Version: v1.18.14
Additional context More information about our setup can be provided as needed, but for starters:
- currently we have ~36 mappings
- pod limits are set to 1cpu & 512mb RAM (these resources are ok for “normal/expected” mem use, if the feature flag is set to “false” we had to bump ram to 2gb)
- we have auto scaling enabled, minimum 3 replicas, max 8
Issue Analytics
- State:
- Created 2 years ago
- Reactions:13
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Memory usage in Ambassador (was: Split processes ... - GitHub
We have memory issues where the ambassador container grows out of it's memory since upgrade the latest 0.50.x. It's very hard to know...
Read more >Release notes for beta Hybrid Services connectors
We document new functionality, bug fixes, and general improvements. (Use Control Hub to manage connector software upgrades and schedule when they are performed....
Read more >the low gpu usage that no one has been able to solve for a ...
No, but it does explain why it's running @8x. Upgrade your CPU and maybe some extra RAM.
Read more >Second Generation Intel® Xeon® Processor Scalable Family ...
Introduction. This paper discusses the new features and enhancements available in the second generation Intel® Xeon® processor Scalable ...
Read more >IBM zEnterprise EC12 Technical Guide
1.1.5 Increased flexibility with z/VM mode logical partition . ... 8.3.15 Dynamic LPAR memory upgrade . ... as a University Ambassador.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the input, but seeing that from the official doc it is not recommended I’m a bit iffy on it, ill keep on poking for perma solution
worse case, at least its been validated that it does help
@dzkaraka @guongle-ssense We solved our issues when we set AMBASSADOR_LEGACY_MODE env variable to TRUE. Then new version behaves the same as old version. But this is not appropriate solution, but it works for us as tmp solution.
BR