Direkt zum Inhalt

Not Able to connect with Redis-cluster

0

I have created the Redis-cache with the option Design by option --> After that i choose the Dev/test cluster

Creation method i choose Easy create.

But when i try to connect using the Endpoint i didn't get response. Also not getting any error.

You can see the Img.img

gefragt vor 2 Jahren480 Aufrufe
3 Antworten
0

Hello.

Try specifying the port number explicitly as shown below.

redis-cli -c -h redis-endpoint.aps1.cache.amazonaws.com -p 6379

Also, do you allow the necessary communication in the inbound rules of the Redis Cluster security group?
The default port for Redis is 6379.
https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/accessing-elasticache.html
https://repost.aws/knowledge-center/elasticache-redis-cluster-fix-connection

EXPERTE
beantwortet vor 2 Jahren
EXPERTE
überprüft vor einem Jahr
0

After change the cmd, still not connected.

Also i have checked all the ports.

when i create the Redis cluster in test mode, it's easily connected with the server.

redis

beantwortet vor 2 Jahren
0

The Easy create creation method in ElastiCache console has the default setting of In-transit encryption = Enabled. Therefore connections to TLS-enabled clusters should be done with --tls option in redis-cli, make sure the redis-cli is compiled with BUILD_TLS=yes as shown here.

Sample command:

redis-cli -c -h <endpoint> -p 6379 --tls

There is more detail available in this blog: https://repost.aws/knowledge-center/elasticache-connection-test

AWS
beantwortet vor 2 Jahren
EXPERTE
überprüft vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.