-
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
Timeouts in argocd-repo-server after github webhook notification #9017
Comments
I suspect that the controller is initiating a lot of GenerateManifest repo-server calls at the same time, causing a bunch of ls-remote calls before the cache can be populated. GitHub is throttling the calls, causing refreshes to fail. I added some logging and I think demonstrated this problem:
I think we need a mechanism to "group" these simultaneous requests so that there are fewer ls-remote calls to the SCM. |
any update on this please? we are also getting timeouts on webhooks, seems from argo side. Also is there any setting that we can put at argo to increase the timeout? |
Describe the bug
Whenever we push to our github repository, we see a spike in
git ls
, several of them timing out. Most likely due to github rate limiting us.Full slack conversation here: https://cloud-native.slack.com/archives/C01TSERG0KZ/p1648534989348809
To Reproduce
Create roughly 100 applications pointing at the main branch of a single github repository and update it.
Expected behavior
git ls
calls for the same branch/repo combination are cached until the next webhook call, or hard refreshVersion
argocd: v2.3.3+07ac038.dirty BuildDate: 2022-03-30T05:20:22Z GitCommit: 07ac038a8f97a93b401e824550f0505400a8c84e GitTreeState: dirty GoVersion: go1.18 Compiler: gc Platform: darwin/amd64 WARN[0000] Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web. argocd-server: v2.3.3+07ac038 BuildDate: 2022-03-30T00:06:18Z GitCommit: 07ac038a8f97a93b401e824550f0505400a8c84e GitTreeState: clean GoVersion: go1.17.6 Compiler: gc Platform: linux/amd64 Ksonnet Version: v0.13.1 Kustomize Version: v4.4.1 2021-11-11T23:36:27Z Helm Version: v3.8.0+gd141386 Kubectl Version: v0.23.1 Jsonnet Version: v0.18.0
Logs
The text was updated successfully, but these errors were encountered: