Alauda Cache Service for Redis OSS offers two distinct deployment architectures, each designed to address specific performance, scalability, and high-availability requirements.
Sentinel Mode: A high-availability configuration consisting of a primary Redis instance and configurable replica nodes. The replicas provide read scalability and maintain synchronization with the primary node to ensure data consistency. Redis Sentinel monitors instance health and orchestrates automatic failover when necessary.
Cluster Mode: A distributed architecture that implements horizontal scaling through data sharding across multiple Redis nodes. This configuration provides enhanced read/write throughput, automatic failover capabilities, and intelligent data partitioning for optimal performance and availability in high-scale environments.
Sentinel Mode implements a high-availability solution based on Redis's native master-replica replication. The Redis Sentinel subsystem continuously monitors the health of all Redis instances and automatically promotes a replica to primary status during failure scenarios, maintaining service continuity. Key characteristics include:
Cluster Mode represents Redis's comprehensive distributed solution. Through Redis Cluster protocol, the system achieves horizontal scalability by distributing data across multiple nodes using hash slot allocation and consistent hashing algorithms for automatic data partitioning and rebalancing. Key characteristics include:
Requirement | Sentinel Mode | Cluster Mode |
---|---|---|
Horizontal scalability beyond single-node memory limits | ❌ | ✅ |
Simplified deployment and management | ✅ | ❌ |
Support for large datasets (>8GB) | ❌ | ✅ |
High availability with automatic failover | ✅ | ✅ |
Optimized for read-heavy workloads with read replicas | ✅ | ✅ |
Support for transaction operations across multiple keys | ✅ | ❌* |
* Redis Cluster has limitations on multi-key operations when keys belong to different hash slots