LoginSignup
5
3

More than 5 years have passed since last update.

Amazon ElastiCache Redis ClusterにPythonからアクセスする

Last updated at Posted at 2017-12-18

Amazon ElasticCache Redis Clusterにredis-py-clusterで接続する際に、
hostとportだけではダメで、

ここに書いてある通り、
skip_full_coverage_check=True のフラグを立てると

r = StrictRedisCluster(host="xxx.cache.amazonaws.com", port=6379, skip_full_coverage_check=True)

アクセス出来る。


error内容

r = StrictRedisCluster(host="xxx.cache.amazonaws.com", port=6379)
redis.exceptions.ResponseError: unknown command 'CONFIG'

ちなみに

redis-pyはredis-clusterには対応しなさそう。 ソース

5
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
3