Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory usage keeps increasing despite config for memory constrained environments #193

Open
dchancogne opened this issue Nov 10, 2021 · 2 comments

Comments

@dchancogne
Copy link

Based on the documentation here: https://github.com/salesforce/sloop#memory-consumption
I'm using this config in my helm chart:

config: |-
        {
          "badger-use-lsm-only-options": false,
          "badger-keep-l0-in-memory": false,
          "badger-sync-writes": false,
          "badger-vlog-fileIO-mapping": true,
          "badger-max-table-size": 33554432,
          "badger-number-of-compactors": 1,
          "badger-number-of-level-zero-tables": 2,
          "badger-number-of-zero-tables-stall": 3
        }

I can see these values in the ConfigMap in EKS, so I know the values are loaded.

This should limit memory usage to 5GB.

But after 24h, the Sloop container is reaching +7GB.

image

Helm chart version: 0.1.0
Sloop version: sloopimage/sloop:latest (default value in chart)

@sana-jawad
Copy link
Collaborator

@dchancogne This config value triggers garbage collection "max-disk-mb" by default it is set to 32GB. Please adjust it according to your needs.

@kartik-sareen
Copy link

@sana-jawad max-disk-mb is "Max disk storage in MB" i don't think reducing this will reduce sloop container's memory usage as it seems to be used for PVC max disk usage after that data will be deleted. Do you have any other solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants