-
Notifications
You must be signed in to change notification settings - Fork 5k
[Feature][MasterServer] Add cache manager for Master #6963
Copy link
Copy link
Closed
Labels
Milestone
Description
Search before asking
- I had searched in the issues and found no similar feature requirement.
Description
Now when Master run a workflow, it will do many db select operation, such as processDefinition, taskDefinition, processTaskRelation, tenant, user, workGroup, project......
I think these data will not be changed easily, so if we can use cache instead of selecting from db, it will speed up the processing of workflow and improve performance.
function design:
- cache config for enable switch and other params like expire time, cache size.
- cache annotation, which can be use easily, and it's helpful to manage the unified cache logic -> use spring cache + caffeine
- cache hit rate statistics
- cache update notify, now is from api-server
sub-issue:
- [Feature][MasterServer] Add cache manager for tenant and user #6985
- [Feature][MasterServer] add cache for project, workGroup and schedule #6987
- [Feature][MasterServer] add cache manager for process and task definition #6988
Use case
No response
Related issues
No response
Are you willing to submit a PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable