Elasticache 已更新,可支持 Redis 集群的多个节点。在控制台中,可以为同一复制组创建多个节点,但使用 boto 时,如果选项 num_cache_nodes 设置为大于 1,则 API 会抛出错误,指出无法创建多个节点。 boto 库不是最新的还是还有其他问题?
最佳答案
截至 2015 年 8 月,即使在控制台中,您也不能这样做。该字段就在那里,但您不能将其设置为除 1 之外的任何值。
您可以做的是创建一个包含各种 Redis 缓存集群(每个缓存集群大小为 1)的复制组,其中一个充当读/写主节点,其余充当只读副本。
At this time, ElastiCache supports single-node Redis clusters.
http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/CacheNode.Redis.html
关于python - 如何在Redis中创建一个具有多个节点的Elasticache?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26852556/