Changing cluster settings

After creating a cluster, you can:

Change the cluster name and description

  1. Go to the folder page and select Managed Service for Redis.
  2. Select the cluster and click Edit cluster at the top of the page.
  3. Under Basic parameters, enter a new name and description for the cluster.
  4. Click Save changes.

If you don't have the Yandex.Cloud command line interface yet, install it.

The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

To change the host class for the cluster:

  1. View a description of the CLI's update cluster command:

    $ yc managed-redis cluster update --help
    
  2. Specify a new name and description in the cluster update command:

    $ yc managed-redis cluster update <cluster name> \
         --name "<new cluster name>" \
         --description "<new cluster description>"
    

To change the cluster name and description, use the API update method: pass the values in the name and description request parameters.

Changing the host class

  1. Go to the folder page and select Managed Service for Redis.
  2. Select the cluster and click Edit cluster at the top of the page.
  3. Under Host class, specify:
    • Type: Type of virtual machine that hosts are deployed on:
      • high-memory: More RAM per 1 vCPU.
      • burstable: Only a guaranteed share of vCPU performance. VMs with a guaranteed share of less than 100% ensure the specified level of performance with a possible temporary performance increase up to 100%. Clusters with such hosts are good for tasks that don't require guaranteed permanent performance (such as for testing).
    • RAM: Amount of RAM available to Redis on the host.
  4. Click Save changes.

If you don't have the Yandex.Cloud command line interface yet, install it.

The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

To change the host class for the cluster:

  1. View a description of the CLI's update cluster command:

    $ yc managed-redis cluster update --help
    
  2. Request a list of available host classes (the ZONES column specifies the availability zones where you can select the appropriate class):

    $ yc managed-redis resource-preset list
    
    +-------------+--------------------------------+----------+
    |     ID      |            ZONE IDS            |  MEMORY  |
    +-------------+--------------------------------+----------+
    | b1.nano     | ru-central1-a, ru-central1-b,  | 2.0 GB   |
    |             | ru-central1-c                  |          |
    | b1.small    | ru-central1-a, ru-central1-b,  | 4.0 GB   |
    |             | ru-central1-c                  |          |
    | hm1.nano    | ru-central1-a, ru-central1-b,  | 8.0 GB   |
    |             | ru-central1-c                  |          |
    | hm1.micro   | ru-central1-a, ru-central1-b,  | 12.0 GB  |
    | ...                                                     |
    +-----------+----------------------------------+----------+
    
  3. Specify the class in the update cluster command:

    $ yc managed-redis cluster update <cluster name>
         --resource-preset <class ID>
    

    Managed Service for Redis will run the update host class command for the cluster.

You can change the host class using the API update method: pass the necessary values in the configSpec.resources.resourcePresetId request parameter.

To request a list of supported values, use the list method for the ResourcePreset resources.

Increase the size of host disks Redis

  1. Go to the folder page and select Managed Service for Redis.
  2. Select the cluster and click Edit cluster at the top of the page.
  3. Under Host class, set the size of the Redis host disks in the Disk size field. You can only increase hard disk size.
  4. Click Save changes.

If you don't have the Yandex.Cloud command line interface yet, install it.

The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name or --folder-id parameter.

To increase the size of Redis host disks:

  1. View a description of the CLI's update cluster command:

    $ yc managed-clickhouse cluster update --help
    
  2. Make sure the cloud quota is sufficient to increase the disk size: open the Квоты page for your cloud and check that the Managed Databases section still has space available in the hddSpace line.

  3. Specify the disk size in GB in the update cluster command. The new size must be bigger than the previous one.

    $ yc managed-clickhouse cluster update <cluster name>
         --disk-size <disk size in GB>
    

    Note

    The maximum disk size depends on the host class.

    If all the criteria are met, Managed Service for Redis starts increasing the size of the Redis host disks.

You can change the Redis host disk size using the API update method: pass the appropriate values in the configSpec.resources.diskSize request parameter.

Make sure the cloud quota is sufficient to increase the disk size: open the Квоты page for your cloud and check that the Managed Databases section still has space available in the hddSpace line.

Changing settings Redis

You can change the DBMS settings of the hosts in your cluster. All supported settings are described in the API reference.

  1. Go to the folder page and select Managed Service for Redis.
  2. Select the cluster and click Edit cluster at the top of the page.
  3. Under DBMS settings, click Settings.
  4. Configure the available parameters according to the Redis documentation.
  5. Click Save.

You can change the DBMS settings for a cluster using the API update method: pass the appropriate values in the configSpec.redisConfig_5_0 request parameter.