'Redis slave is not able to connect to the Master in AWS EC2 Kubernetes Cluster
When I allow particular port in AWS security Groups, Slaves are not connecting to the master but when I allow all traffic in security groups it's connecting and working fine.
Please help me on this, I want to allow only particular port in the security group and slaves(replics) should run .
Thank you.
--------------------log of REDIS-CLUSTER
1:C 29 Apr 2022 10:09:04.890 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
1:C 29 Apr 2022 10:09:04.890 # Redis version=6.2.6, bits=64, commit=00000000, modified=0, pid=1, just started
1:C 29 Apr 2022 10:09:04.890 # Configuration loaded
1:S 29 Apr 2022 10:09:04.891 * monotonic clock: POSIX clock_gettime
1:S 29 Apr 2022 10:09:04.891 * Running mode=standalone, port=6379.
1:S 29 Apr 2022 10:09:04.892 # Server initialized
1:S 29 Apr 2022 10:09:04.892 * Reading RDB preamble from AOF file...
1:S 29 Apr 2022 10:09:04.892 * Loading RDB produced by version 6.2.6
1:S 29 Apr 2022 10:09:04.892 * RDB age 615351 seconds
1:S 29 Apr 2022 10:09:04.892 * RDB memory usage when created 1.79 Mb
1:S 29 Apr 2022 10:09:04.892 * RDB has an AOF tail
1:S 29 Apr 2022 10:09:04.892 # Done loading RDB, keys loaded: 0, keys
expired: 0.
1:S 29 Apr 2022 10:09:04.892 * Reading the remaining AOF tail...
1:S 29 Apr 2022 10:09:04.892 * DB loaded from append only file: 0.000
seconds
1:S 29 Apr 2022 10:09:04.892 * Ready to accept connections
1:S 29 Apr 2022 10:09:04.893 * Connecting to MASTER redis-cluster-
master-0.redis-cluster-headless.redis-cluster.svc.cluster.local:6379
1:S 29 Apr 2022 10:09:24.909 # ****Unable to connect to MASTER: Resource temporarily unavailable****
1:S 29 Apr 2022 10:09:25.912 * Connecting to MASTER redis-cluster-master-0.redis-cluster-headless.redis-cluster.svc.cluster.local:6379
1:S 29 Apr 2022 10:09:45.930 # Unable to connect to MASTER: Resource temporarily unavailable
1:S 29 Apr 2022 10:09:46.934 * Connecting to MASTER redis-cluster-master-0.redis-cluster-headless.redis-cluster.svc.cluster.local:6379
1:signal-handler (1651226997) Received SIGTERM scheduling shutdown...
1:S 29 Apr 2022 10:10:06.952 # Unable to connect to MASTER: Resource temporarily unavailable
1:S 29 Apr 2022 10:10:07.054 # User requested shutdown...
1:S 29 Apr 2022 10:10:07.054 * Calling fsync() on the AOF file.
1:S 29 Apr 2022 10:10:07.054 # Redis is now ready to exit, bye bye...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
