redis - 无法访问 Redis(已启用集群模式)集群的端点

标签 redis amazon-elasticache redis-cluster redis-cli

我有 1 个 VPC - 在 1 个 EC2 实例(amazon ami)和 1 个 Redis(启用集群模式)集群下,带有 Auth(密码)和安全组 对所有 IP:Port 开放(仅用于测试) - 非常简单的设置。

telnet 在我的 EC2 实例的 6379 端口工作 - 配置端点 - 分片>每个节点端点

无法使用 Redis CLI 连接到 Redis 服务器 - 无论端点是 Config 还是 Node 端点都无关紧要;使用 v.5.0.4 的 Redis CLI;

请注意 - AWS ElastiCache Redis 集群(禁用集群)或单服务器节点,提供主终端节点,工作正常。仅当启用集群并获取 ConfigEndpoint/NodeEndPoints 时才会出现问题。

配置端点:

[root@ip-xx-xx-xx-xx src]# ./redis-cli -h clustercfg.xxxx.xxxxx.use1.cache.amazonaws.com  -p 6379

节点端点:

[root@ip-xx-xx-xx-xx src]# ./redis-cli -h xxxx-0001-0-01.xxxx.xxxxx.use1.cache.amazonaws.com  -p 6379

感谢任何帮助!

谢谢

最佳答案

在这个问题上花了几天时间后,我找到了解决方案 - 我们需要 stunnel 或任何其他创建 SSL 隧道的等效项,redis-cli 不支持 ssl 或 tls。

To access data from ElastiCache for Redis nodes enabled with in-transit encryption, you use clients that work with Secure Socket Layer (SSL). However, redis-cli doesn't support SSL or Transport Layer Security (TLS). To work around this, you can use the stunnel command to create an SSL tunnel to the redis nodes. You then use redis-cli to connect to the tunnel to access data from encrypted Redis nodes.

https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/in-transit-encryption.html

关于redis - 无法访问 Redis(已启用集群模式)集群的端点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55231851/

相关文章:

postgresql - 内存存储非常简单

amazon-web-services - 是否可以停止 AWS ElastiCache 集群中的节点

python - 是否有支持 AWS ElastiCache 的自动发现功能的 Python Memcached 库?

java - 在aws java sdk中设置端点后描述elasticache实例时出错

Redis 和 twemproxy

node.js - 带有 Node XADD 的 Redis 流

redis - 将 redis 集成到无服务器中

集群中的 Redis PubSub 消息顺序无法保证?

go - 是否有一个 golang redis 客户端可以自动检测 pubsub 的新分片?

具有自定义集群配置的 Redis 集群