ablog

不器用で落着きのない技術者のメモ

ElastiCache(Redis) クラスターのシャード数とレプリカ数のベストプラクティス

2. Three-shard minimum Redis Cluster: Having a minimum of three shards provides improved availability by providing faster recovery during both planned and unplanned failovers. Amazon ElastiCache for Redis supports up to 500 total nodes in a cluster, inclusive of shards and replicas.
3. Set up two or more replicas across Availability Zones: Having two replicas provides improved read scalability and also read availability in scenarios where one replica is undergoing maintenance. This is important if you are not using single reader endpoint and chose to direct your read requests to read replicas only (client setting).

Configure Amazon ElastiCache for Redis for higher availability | AWS Database Blog

クラスターモードを有効にして ElastiCache for Redis をデプロイすると、キャッシュキースペースが複数のシャードに分散されます。これは、データとそのデータへの読み取り/書き込みアクセスが、複数の AZ にまたがる複数の Redis ノードに分散されることを意味します (クラスターモードが有効になっている場合は必須)。プライマリノードのロールは、読み取ったレプリカの 1 つに自動的にフェイルオーバーします。ElastiCache は透過的に処理するため、新しいプライマリノードを作成してプロビジョニングする必要はありません。このフェイルオーバーとレプリカの昇格により、昇格が完了するとすぐに新しいプライマリへの書き込みを再開できます。

よくある質問 - Amazon ElastiCache | AWS

P.24
f:id:yohei-a:20210905233122p:plain