Skip to content

Commit 033902a

Browse files
committed
valkey clustering
1 parent 2960849 commit 033902a

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
---
2+
title: Aiven for Valkey™ clustering
3+
sidebar_label: Clustering
4+
---
5+
6+
import RelatedPages from "@site/src/components/RelatedPages";
7+
8+
Aiven for Valkey™ clustering provides a managed, scalable solution for distributed in-memory data storage with built-in high availability and automatic failover capabilities.
9+
10+
## What is Valkey clustering?
11+
12+
Valkey clustering distributes your data across multiple nodes (shards) to handle larger
13+
datasets and higher traffic loads than a single-node deployment can support. Each shard
14+
contains a portion of your data, and the cluster automatically routes requests to the
15+
appropriate shard.
16+
17+
## Key features
18+
19+
### High availability
20+
21+
- **Automatic failover**: If a primary node fails, a replica is automatically promoted to
22+
maintain service availability
23+
- **Read replicas**: Each shard includes at least one read replica for redundancy and
24+
improved read performance
25+
- **Minimal downtime**: Designed to handle both expected maintenance and unexpected
26+
failures with minimal service interruption
27+
28+
### Scalability
29+
30+
- **Horizontal scaling**: Add or remove nodes to handle changing workload requirements
31+
- **Online resharding**: Increase the number of shards without downtime as your data grows
32+
- **Flexible sizing**: Supports various instance sizes, including smaller 4 GB RAM
33+
instances for cost optimization
34+
35+
### Compatibility
36+
37+
- **Cluster-enabled mode**: Fully compatible with existing Valkey/Redis cluster-aware
38+
client libraries
39+
- **Standard protocols**: Works with your current applications without code changes
40+
41+
## Architecture overview
42+
43+
### Single shard deployment
44+
45+
- **Initial configuration**: Starts with one primary node and two read replicas
46+
- **Use case**: Ideal for smaller datasets or applications with moderate traffic
47+
- **High availability**: Automatic failover to replicas if the primary fails
48+
49+
### Multi-shard deployment
50+
51+
- **Distributed data**: Data is automatically partitioned across multiple shards
52+
- **Independent replicas**: Each shard has its own set of replicas for redundancy
53+
- **Load distribution**: Requests are distributed across shards based on data location
54+
55+
## Benefits
56+
57+
### Performance
58+
59+
- **Higher throughput**: Distribute read and write operations across multiple nodes
60+
- **Lower latency**: Data locality and load distribution reduce response times
61+
- **Read scaling**: Multiple replicas per shard increase read capacity
62+
63+
### Reliability
64+
65+
- **Fault tolerance**: Service continues even if individual nodes fail
66+
- **Automatic recovery**: Failed nodes are automatically replaced and synchronized
67+
- **Data protection**: Multiple copies of your data across different nodes
68+
69+
### Operational simplicity
70+
71+
- **Managed service**: Aiven handles cluster setup, maintenance, and scaling
72+
- **Automated operations**: Node discovery, failover, and resharding happen automatically
73+
- **Monitoring included**: Built-in metrics for performance and health monitoring
74+
75+
## Use cases
76+
77+
### High-traffic applications
78+
79+
- Applications requiring more throughput than a single node can provide
80+
- Systems with high read/write ratios that benefit from multiple replicas
81+
- Services needing guaranteed uptime despite hardware failures
82+
83+
### Large datasets
84+
85+
- Data that exceeds the memory capacity of a single node
86+
- Applications requiring data partitioning for performance optimization
87+
- Systems that need to scale storage capacity horizontally
88+
89+
### Mission-critical systems
90+
91+
- Applications requiring high availability and automatic failover
92+
- Services that cannot tolerate single points of failure
93+
- Systems with strict uptime requirements
94+
95+
## Getting started
96+
97+
### Planning your deployment
98+
99+
1. **Assess your requirements**: Determine your data size, traffic patterns, and
100+
availability needs
101+
1. **Choose your configuration**: Start with a single shard for smaller workloads or
102+
multiple shards for larger datasets
103+
1. **Select instance sizes**: Choose appropriate memory and compute resources for your
104+
workload
105+
106+
### Client configuration
107+
108+
- Ensure your application uses a cluster-aware Valkey/Redis client library
109+
- Configure your client to discover and connect to cluster nodes automatically
110+
- Test failover behavior to ensure your application handles node changes gracefully
111+
112+
## Limitations and considerations
113+
114+
### Current scope
115+
116+
- Backup and restore capabilities are planned for future releases
117+
- Some advanced features may have initial limitations during the preview phase
118+
119+
### Performance factors
120+
121+
- Network latency between shards can affect cross-shard operations
122+
- Resharding operations may temporarily impact performance
123+
- Client library choice can affect cluster performance and behavior
124+
125+
<RelatedPages/>
126+
127+
- [Get started with Aiven for Valkey](/docs/products/valkey/get-started)
128+
- [High availability concepts](/docs/products/valkey/concepts/high-availability)
129+
- [Performance monitoring](/docs/products/valkey/howto/monitor-performance)

0 commit comments

Comments
 (0)