Managing Redis cluster hosts
You can add hosts to your Redis cluster.
Warning
You cannot edit or delete existing hosts.
Getting a list of cluster hosts
- Go to the folder page
and select Managed Service for Redis. - Click the name of the cluster and select the Hosts tab.
If you don't have the Nebius AI command line interface yet, install and initialize 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 get a list of cluster hosts, run the command:
ncp managed-redis host list \
--cluster-name=<cluster name>
Result:
+-------------------------------------+--------------+---------+--------+---------------+
| NAME | CLUSTER ID | ROLE | HEALTH | ZONE ID |
+-------------------------------------+--------------+---------+--------+---------------+
| rc1a-...caf.mdb.nemax.nebius.cloud | c9qb2...0gg | MASTER | ALIVE | eu-north1-c |
| rc1b-...bgc.mdb.nemax.nebius.cloud | c9qb2...0gg | REPLICA | ALIVE | eu-north1-c |
+-------------------------------------+--------------+---------+---------+--------+---------------+
The cluster name can be requested with a list of clusters in the folder.
Adding a host
The number of hosts in Managed Service for Redis clusters is limited by the CPU and RAM quotas available to DB clusters in your cloud. To check the resources in use, open the quotas page in the management console and find Managed Databases.
To add a host to the cluster:
- Go to the folder page
and select Managed Service for Redis. - Click the cluster name and go to the Hosts tab.
- Click
- Specify the host parameters:
-
Availability zone.
-
Subnet.
-
If you don't have the Nebius AI command line interface yet, install and initialize 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 add a host to the cluster:
-
Request a list of cluster subnets to select one for the new host:
ncp vpc subnet list
Result:
+-----------+-----------+------------+--------------+------------------+ | ID | NAME | NETWORK ID | ZONE | RANGE | +-----------+-----------+------------+--------------+------------------+ | b0cl69... | default-c | enp6rq7... | eu-north1-c | [172.16.0.0/20] | | e2lkj9... | default-b | enp6rq7... | eu-north1-c | [10.10.0.0/16] | | e9b0ph... | a-2 | enp6rq7... | eu-north1-c | [172.16.32.0/20] | | e9b9v2... | default-a | enp6rq7... | eu-north1-c | [172.16.16.0/20] | +-----------+-----------+------------+--------------+------------------+
-
View a description of the CLI command for adding a host:
ncp managed-redis host add --help
-
Run the add host command:
ncp managed-redis host add \ --cluster-name=<cluster name> \ --host zone-id=<availability zone>,` `subnet-id=<subnet ID>,` `replica-priority=<host priority>
Where:
--cluster-name
: Name of a Managed Service for Redis cluster. You can retrieve it with a list of clusters in a folder.--host
: Host parameters:zone-id
: Availability zone.subnet-id
: Subnet ID. It must be specified if the selected availability zone includes two or more subnets.replica-priority
: Priority for selecting the host as a master if the primary master fails.