Argo CDãSyncããªãã¿ãããªç¶æ³ã«ãªã£ããã©ç´ã£ãä¸é¨å§çµ
ã¾ã¨ã
- argocd-application-controllerã¯1podãããã¦ã¦ã¯ãããªã
- ãªããSyncããããããªã£ããargocd-application-controllerã®æ®éª¸ãæ®ã£ã¦ãªãã確èªãã
ä¸é¨å§çµ
ããæ¥ãæ¥åã§æ¥ã 使ã£ã¦ããArgo CDã®æ§åããããããªã£ã¦ãOutOfSyncãå¢ãã¦ãSync Statusãè¦ã¦ã1æ¥ä»¥ä¸syncingã¿ãããªç¶æ³ã§Syncããã«ã¯ãç»é¢ããä½åãSynchorizeããã¨ããããsyncããã¿ãããªç¶æ³ã«ãªã£ãã
argocdã®ã³ã³ãã¼ãã³ãã®è² è·ã®åé¡ããªã¨æã£ã¦ãargocd-application-controllerã®resourceãè¦ã¦ã¿ãã¨ãCPUã2ã³ã¢ãã3ã³ã¢ããããã£ã¦ããããªã«ããããããã¨issueãæ¼ã£ã¦ã¿ãã¨ãCPUãç°å¸¸ã«é£ã£ã¦ãã¿ããã®ããã£ãã
I also realized that the application controller Pod is completely hogging the CPU while this is happening.
verupããã°ç´ãã¿ããã®ããã£ãã®ã§ãã¨ããããverupãã¦ã¿ããç´ããªãã£ãã redisããªããããããã®ãã¨æã£ã¦ãflushDBãã¦ã¿ããããããã¡ã ã£ãã
ã¡ãªã¿ã«ããã®ã¨ããargocd-application-controllerã ãªãã2å°ç«ã£ã¦ãã ããããããã®ã ã¨æãã¹ã«ã¼ãã¦ãããï¼ãããããåå ã ã£ãã¨ãããã¨ããã¨ããåãã£ãï¼
NAME READY STATUS RESTARTS AGE argocd-application-controller-6847958cc6-4ssdm 1/1 Running 0 15m argocd-application-controller-6847958cc6-vjzwg 1/1 Running 0 15m
æ¹ãã¦ãArgoCDã§HAæ§æããã«ã¯ãargocd-application-controllerã®èµ·åãªãã·ã§ã³ãå¤æ´ãããããã¨ããã¨ãããã¨ãåãããããã試ãã¦ã¿ãããç¹ã«å¤ãããã
ç¸å¤ãããargocd-application-controllerã®CPUãç°å¸¸ã«é«ãã®ã§ãreplicasã10åã¨ãã«å¢ããã¦ã¿ããããã¯ããã¡ã ã£ãã
ããã¦ããªããissueãªãããªã¨æã£ã¦ãè¦ã¦ããã¨ããããªissueãã»ã»
controllerã®replicaså¢ããã¡ããã¡ãããï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼
ã¨ãããã¨ã§ãargocd-application-controllerã®æ°ã1ã¤ã«ããããç¡äºç´ãã¾ããã
Leader Electionã®è©±
ãã®åé¡ã¯ãå¥ã®é¨ç½²ã®ååãæ¢ã«æ°ã¥ãã¦ãããissueã«ããªã£ã¦ãã¦ãæãã¦ãããã¾ãããpodé©å½ã«å¢ããã°ããã ãã£ã¦æã£ã¦ããã©ãè£ã§ã¯ãããããLeader Electionã®ä»çµã¿ã§æ´åæ§ãä¿ããã¦ãããã§ãããå種controlleræ§ã«ã¯é ãä¸ããã¾ããã
ãã®issueã ã¨ãLeader Electionãã¦ãã1podã ãããå¦çã§ããªããããã©ãããªããåæ£ãã¦å¦çãåãåãã¿ãããªæ¹åããããªã¼ã¿ãããªæµãã«ãªã£ã¦ããã¨ç解ãã¾ããã