Update Specification
Resource allocation adjustments are essential for maintaining optimal Redis performance as your data volumes grow. Proactively scaling your Redis instances before reaching storage or performance thresholds ensures continuous service availability and prevents degraded performance.
TOC
Operational Constraints
-
Scheduling Configuration Compatibility: When scaling replica counts, ensure the requested number complies with any existing node scheduling constraints (labels, taints, tolerations) configured for the instance.
-
Sentinel Mode Storage Consistency: In Sentinel deployments, all nodes (primary and replicas) must maintain identical storage capacity allocations to ensure proper replication and failover capabilities.
-
Cluster Mode Scaling Flexibility: In Cluster deployments, individual shards can be scaled independently, but within each shard, all replica nodes must maintain storage capacity parity with their primary node.
-
Resource Allocation Considerations: When modifying CPU and memory allocations:
- Analyze historical usage patterns and projected growth
- Verify cluster resource availability before scaling
- Consider Redis memory overhead requirements (~30% above dataset size)
- Implement gradual scaling for production environments
Inadequate resource allocation may cause instance instability, while excessive allocation leads to inefficient resource utilization.
Procedure
Instance specifications are controlled through the spec.resources field in the Redis custom resource (see API documentation for comprehensive parameter details).
To monitor the scaling operation progress:
The system will apply the configuration changes progressively to minimize service disruption. The topology view will reflect the updated specifications once the scaling operation completes successfully.
Performance Tip: For instances with large datasets, consider performing scaling operations during periods of lower traffic to minimize potential impact on client operations.