-
Notifications
You must be signed in to change notification settings - Fork 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
Constant git requests on v1.8.0-rc1 #4926
Comments
Hello @servo1x , The initial spike of Git checkout, Found a bug that causes |
Hi @alexmt, that's correct we are using cluster names instead of URL. For the git checkout spike, we would expect the spike to be no more than the number of applications we have (~500), but it is almost 5 times as much and eventually it continues to checkout at a rate of ~60. |
thank you for response @servo1x . Trying to find reason of increased checkout rate. |
Another possibility is that the shared controller just reconciles applications more frequently and sends more requests to the repo server. Repo server is supposed to cache manifests but it does cache two types manifest generation errors (path specified in app source is missing or commit verification fails). Prepared PR that fixes it: #4947 |
Hello @servo1x , We've published v1.8.0-rc2 with several fixes that hopefully solve that problem. Can you give it a try please? Thanks, |
Thanks @alexmt, I will give it a try and report back! Will test this over the weekend to not impact our users. |
Hi @alexmt, the issue appears to be resolved. Git requests both ls-remote and checkout do not exceed the # of applications. The number of requests gradually increases and the spike was from the git webhook triggering a refresh on everything. Eventually we can see as the refreshes complete, the requests drop to 0. Thanks for investigating and fixing the issue! 🎉 🎉 🎉 |
Great news! Thanks a lot for reporting it and help with debugging! |
If you are trying to resolve an environment-specific issue or have a one-off question about the edge case that does not require a feature then please consider asking a question in argocd slack channel.
Checklist:
argocd version
.Describe the bug
After upgrading to v1.8.0-rc1, we noticed that git requests (ls-remote / checkout) continues to increase, this is hammering our git server.
We have a mono repo with 500 helm chart applications and have included
.argocd-allow-concurrency
, we then scaled the application-controller with 5 replicas and setARGOCD_CONTROLLER_REPLICAS=5
.To Reproduce
# argo application controller argocd-application-controller --status-processors 50 --operation-processors 25 --repo-server-timeout-seconds 900 --app-resync 86400 --app-state-cache-expiration 1h0m0s --self-heal-timeout-seconds 5 --loglevel info --sentinel argocd-redis-master-0.argocd-redis-headless.argocd.svc:26379 --sentinel argocd-redis-slave-0.argocd-redis-headless.argocd.svc:26379 --sentinel argocd-redis-slave-1.argocd-redis-headless.argocd.svc:26379 --sentinelmaster argocd
Expected behavior
Application controller to not be constantly causing git-requests.
Screenshots
The end of the 26th is when we deployed v1.8.0-rc1 (where the huge spike is).
Here's a chart of the metrics for repo server for the last 7 days, the spikes are the
--app-resync
, otherwise the syncs are 0 (ARGOCD_CONTROLLER_REPLICAS=5
):We deployed
v1.8.0-rc1
on the 26th, where we can see a huge spike in git requests (ARGOCD_CONTROLLER_REPLICAS=5
):After that huge spike, the requests become constant at ~60 (
ARGOCD_CONTROLLER_REPLICAS=5
):Here's a chart going from 0 application controllers to 1 to demonstrate the rise in syncing (
ARGOCD_CONTROLLER_REPLICAS=1
):Version
Logs
We notice this in the application logs:
Could this be causing the constant git checkouts?
The text was updated successfully, but these errors were encountered: