'Redis Master/Slave connection breaks intermittently
I have a Redis master slave cluster (1 master 2 slave) in a K8 cluster, redis cluster is handled by sentinel as a StatefulSet.
But after some time our redis connection cluster breaks between master and slave with below error.
Error condition on socket for SYNC: Connection reset by peer
below is the error in sentinel same time
1:X 23 May 2022 07:23:42.330 # +sdown sentinel 443057a099717ff138d37eb016e608fa5ecffd36 172.20.129.98 26379 @ mymaster 172.20.129.98 6379
1:X 23 May 2022 07:23:42.531 # +sdown master mymaster 172.20.129.98 6379
1:X 23 May 2022 07:23:42.607 # +odown master mymaster 172.20.129.98 6379 #quorum 2/2
and in most cases it come backs online again without any restart in pod and container, but in some cases slave pods are terminated.
there is no changes in any infra metrics(Cpu,Mem)
what could be the issue.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
