Interview Prep/GitOps & Argo CD/Secrets, Controller Performance & Recovery

Reconciliation is slow for all apps; `argocd_app_reconcile` p95 is minutes and the workqueue depth keeps growing.

AdvancedTroubleshootingSecrets, Controller Performance & Recovery
Answer

Likely causes → Too few processors for the number of apps, a slow repo-server (manifest generation backlog), or one heavy cluster starving others on a single shard.

Diagnose → Check workqueue_depth, argocd_app_reconcile_bucket and argocd_git_request_duration_seconds in Prometheus; argocd admin cluster shards.

Fix → Raise controller.status.processors (for example 50) and controller.operation.processors (25) in argocd-cmd-params-cm; scale repo-server replicas; add controller shards and use the round-robin or consistent-hashing sharding algorithm.

Prevent → Capacity plan: track apps and resources per shard and scale before the queue grows.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Secrets, Controller Performance & Recovery