Resizing Nodes for a Cluster
OCI Cache supports changing the number of nodes for an existing cluster if you need to scale up or down to meet your requirements.
For reliability purposes, we recommend a minimum three node cluster configuration. Reliability isn't guaranteed for one to two node cluster configurations.
- 99 shards, with 1 node per shard.
- 25 shards, with 4 nodes per shard.
- 33 shards, with 3 nodes per shard.
You can only resize one configuration setting at a time, and you need to wait for a resize operation to complete before you can start a new resize operation.
Open the navigation menu and click Databases. Under OCI Cache, click Clusters.
- Under List scope, select the compartment that contains the cluster.
-
In the Clusters list, click the name of the cluster you want to adjust the number of nodes for.
- On the cluster details page, click Resize nodes
-
Specify a number between one and five for Number of nodes and then click Resize.
You can increase or decrease the number of nodes for a cluster or shard.
Use the oci redis redis-cluster update command and required parameters to resize the nodes per cluster for a non-sharded cluster or the nodes per shard for a sharded cluster:
oci redis redis-cluster update --redis-cluster-id cluster_ocid --node-count node_count [OPTIONS]
For information about using the CLI, see Command Line Interface (CLI). For a complete list of flags and options available for CLI commands, see the CLI Command Reference.- For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.
Run the UpdateRedisCluster operation to resize the nodes for a non-sharded cluster or resize the nodes per shard for a sharded cluster.