【问题标题】:Can redis-py reliably use AWS ElastiCache Redis cluster?redis-py 能否可靠地使用 AWS ElastiCache Redis 集群?
【发布时间】:2019-01-30 13:33:18
【问题描述】:

我正在尝试从作为 Celery 代理的单个 AWS ElastiCache (Redis) 服务器迁移到 Redis 集群。问题是 - 在 Celery 或 redis-py 文档中,我找不到连接到 AWS RedisCluster 的方法。

Celery用来与Redis服务器通信的redis-py可以配置为使用Redis Sentinel,但是AWS不支持(至少我在AWS ElastiCache文档中没有找到sentinel支持)。

那么有没有办法使用 redis-py 以某种方式与 ElastiCache Redis 集群通信,或者,有没有办法指示 Celery 使用 redis-py-cluster(一个单独的项目)?

【问题讨论】:

    标签: redis celery amazon-elasticache redis-py


    【解决方案1】:

    Elasticache 应该给你一个configuration endpoint address,你可以用它来连接到 celery。只需在broker_urlresults_backend 的设置中使用该端点。

    【讨论】:

      猜你喜欢
      • 2021-02-05
      • 1970-01-01
      • 2019-09-12
      • 2018-05-03
      • 2019-07-13
      • 2022-10-20
      • 2019-03-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多