Skip to content

Conversation

@robacourt
Copy link

CubDB can be configured with the hibernate_after option to reduce memory usage when idle. However, this option is currently only applied to the main CubDB process. Other processes started by CubDB can also accumulate memory, and applying hibernate_after to them can further minimise memory usage when they are idle.

This PR applies the hibernate_after option to all applicable processes started by CubDB:
1. CubDB.Store.File: This process can hold references to large binaries that have been written to file and may not be garbage collected while idle.
2. CubDB.CleanUp: Although I have not seen this process holding significant memory, hibernate_after has been applied just in case it does, and to maintain consistency with other CubDB processes.
3. Task.Supervisor: Supervisors do not support the hibernate_after option, so this option is not applied to this process.

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

Successfully merging this pull request may close these issues.

1 participant