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

Abnormal memory usage #267

Open
mornyx opened this issue Sep 27, 2024 · 1 comment
Open

Abnormal memory usage #267

mornyx opened this issue Sep 27, 2024 · 1 comment
Assignees

Comments

@mornyx
Copy link
Collaborator

mornyx commented Sep 27, 2024

Phenomenon

We found that ng-monitoring sometimes uses unexpected amounts of memory, up to tens of GiB (on a cluster with a medium number of nodes). It may even cause OOM.

Troubleshooting

By observing the buffer/cache usage of memory, it is found that a large amount of memory usage comes from badger. It is worth noting that whenever there is high memory usage, it is usually accompanied by abnormal disk space usage of the
docdb directory. The docdb directory is maintained by badger. In particular, whenever the problem occurs, there will be a large number of .sst files (hundreds to thousands) in the docdb directory. It seems that badger's LSM-tree compaction did not work as expected. Combined with the buffer/cache usage, we infer that the abnormal memory usage is caused by abnormal disk files.

Purpose

  1. Fix the problem of large number of .sst files in badger and the abnormal memory usage caused by it through upgrading or other means.
  2. Try using another storage engine, such as SQLite. (genjidb vs sqlite? #116)
@mornyx
Copy link
Collaborator Author

mornyx commented Sep 27, 2024

/assign

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

1 participant