gitops-operator
gitops-operator copied to clipboard
fix: Redis pods are taking more time to be running in HA enabled mode
What type of PR is this?
Uncomment only one
/kindline, and delete the rest. For example,> /kind bugwould simply become:/kind bug
/kind bug
/kind cleanup /kind failing-test /kind enhancement /kind documentation /kind code-refactoring
What does this PR do / why we need it: Reported a significant startup delay, approximately 13 minutes, for HA server zero due to the config init container for Redis hanging while attempting to identify the Redis master, a problem stemming from the lack of a connection timeout flag in the current Redis version. To resolve this, proposed and demonstrated a fix involving adding a 3-second timeout command before redis-cli, which agreed to implement in both the GitOps and Argo CD operators. Have you updated the necessary documentation?
- [x] Documentation update is required by this PR.
- [ ] Documentation has been updated.
Which issue(s) this PR fixes: https://issues.redhat.com/browse/GITOPS-7608 Fixes #? https://issues.redhat.com/browse/GITOPS-7608 Test acceptance criteria:
- [ ] Unit Test
- [ ] E2E Test
How to test changes / Special notes to the reviewer:
- deploy openshift gitops operator on oc cluster with multi node
- edit the default instance of argocd from spec.ha.enabled: false to spec.ha.enabled: true
- verify the time taking for redis related ha proxy pod and ha-server pods