codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.55k stars 343 forks source link

immudb replica uses too much RAM #1889

Open SimoneLazzaris opened 9 months ago

SimoneLazzaris commented 9 months ago

What happened

Immudb asynchronous replica uses much more RAM than primary instance (nearly double the amount) in Trustcenter Installation

What you expected to happen

immudb replica should use very low RAM amount when it is not used for queries. Worst case, it shouldn't use more than the primary instance.

How to reproduce it (as minimally and precisely as possible)

We have an example in our CI/CD trustcenter installation, we can dump the DB if needed.

image

Environment

# run "immu* version" and copy/paste the output here

Additional info (any other context about the problem)