Skip to main content

Scale a Redis cluster

A Redis Managed Database cluster can be scaled. For example:

  • increase RAM to improve cluster performance;
  • change the fixed node configuration to another fixed one — the disk size and RAM must be larger than in the previous configuration, the number of vCPUs can be decreased or increased.

See the list of node configurations.

The configuration change process depends on whether there are replicas.

How it works

The configuration change process depends on whether there are replicas:

  • if the cluster has no replicas — the master node will be shut down while changes are being applied, and the cluster will be temporarily unavailable for read and write operations;
  • if the cluster has replicas — the cluster will be available for read and write operations while changes are being applied. Replicas will be shut down one by one, and the configuration of each will be changed. Then the master node will switch to one of the replicas, and the configuration of the previous master node will be changed.

The time taken to change the configuration depends on the volume of data in the cluster.

Scale a cluster

  1. Scale the cluster when user activity is at its lowest.
  2. To avoid shutting down the master node in a cluster without replicas, add a replica. You can remove the replica after scaling.
  3. In the Dashboard, on the top menu, click Products and select Managed Databases.
  4. Open the Active tab.
  5. Open the cluster page → Settings tab.
  6. Click Change configuration.
  7. Select another fixed configuration. You can only select configuration with higher RAM and disk capacity. The number of vCPUs can be decreased or increased.
  8. Optional: increase the number of replicas in the cluster.
  9. Click Save.
  10. After scaling, clear the DNS cache.
  11. Check if the cluster has been scaled correctly.

Clear DNS cache

  1. Open the CLI.

  2. Clear the DNS cache:

    sudo systemctl restart systemd-resolved