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

[BUG] Unexpected memory usage for kando #3036

Open
lsoica opened this issue Aug 19, 2024 · 2 comments
Open

[BUG] Unexpected memory usage for kando #3036

lsoica opened this issue Aug 19, 2024 · 2 comments
Assignees

Comments

@lsoica
Copy link

lsoica commented Aug 19, 2024

Describe the bug
When handling large database dump files (hundreds of megabytes or gigabytes), the kando push command's memory usage increases linearly, eventually leading to the process being killed by the OOM killer in case it reaches its limit or there's no more available memory on the host.

To Reproduce
Use the MongoDB example blueprint (v1) on a MongoDB database with at least 1 GB in collection size.

Monitor the execution of

mongodump | kando location push -
  • The kando process starts with approximately 60 MB of RSS memory.
  • When the dump reaches 100 MiB, the RSS memory usage grows to 280 MB.
  • When the dump reaches 300 MiB, the RSS memory usage grows to 870 MB.
  • When the dump reaches 500 MiB, the RSS memory usage grows to 1400 MB.

and so on. The pipe is monitored with the pv tool.
By comparison, using MinIO's mc client instead of kando, it reaches 600MB and stays there, regardless of the dump size.

Expected behavior
Memory usage should remain constant throughout the execution of the upload, or there should be an option to limit the maximum memory usage.

@lsoica lsoica added the bug label Aug 19, 2024
Copy link
Contributor

Thanks for opening this issue 👍. The team will review it shortly.

If this is a bug report, make sure to include clear instructions how on to reproduce the problem with minimal reproducible examples, where possible. If this is a security report, please review our security policy as outlined in SECURITY.md.

If you haven't already, please take a moment to review our project's Code of Conduct document.

@xiwenc
Copy link

xiwenc commented Sep 1, 2024

We also have this issue. Any suggestion or fix would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Be Triaged
Development

No branches or pull requests

4 participants