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

Allow configure max cache size in bytes and evict workflows when consumption exceeding configured value #671

Open
longquanzheng opened this issue May 16, 2022 · 1 comment

Comments

@longquanzheng
Copy link
Collaborator

The cacheSize is by number of workflow threads and there is no config as total size of memory consumed. This makes it very hard to manage the memory. The only way today is to monitor on avg historySize.

Also, there is no proactive pruning mechanism to evict workflows today. Ideally we should let users configure a total cache size, and evict the workflows when the memory consumption is exceeding the configured size.

@mindaugasbarcauskas
Copy link
Contributor

mindaugasbarcauskas commented Nov 30, 2022

Good suggestion @longquanzheng , will look into this when I have some time.

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

2 participants