question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ambassador upgrade caused an increase in memory use(x8)

See original GitHub issue

Describe 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:

  1. 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:open
  • Created 2 years ago
  • Reactions:13
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
guongle-ssensecommented, May 13, 2021

@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

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

1reaction
SimonOlenikcommented, May 13, 2021

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found