-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Sharding algorithm constantly evaluated waste CPU and create too many logs #14337
Comments
I'd happily quickly review a fix for this, if you have time to write one. :-) |
I think the PR above can be cherry-picked in 2.8 to fix the logging issue. I'll try to code something to cache the sharding results in another PR. @akram let me know if you were developing something around the sharding that would heavily conflict with a cached implementation of the cluster shards. |
Hi @agaudreault-jive , thanks for showing these findings. As I was working on something else, it only popped in my radar today. |
@akram Awesome, if you have questions, ping me on the cncf slack and I'll answer a bit faster, my handle is I hope my draft isn't too far-off! |
I started working on my draft PR, I am currently testing with multiple clusters all with the same server url and hitting the issue #15027. I will check if it is possible to change my implementation to use a key name/server for the cache. |
Checklist:
argocd version
.Describe the bug
On version 2.8.0, ArgoCD starts logging a lot. The principal source of logs is in the new sharding algorithm. This algorithm is evaluated on every refresh to an application. The sharding results could easily be cached and re-evaluated when a cluster changes, is added or is removed.
To Reproduce
Deploy 2.8.0-rc1
Caused by #13018
Expected behavior
Version
Logs
The text was updated successfully, but these errors were encountered: