Skip to main content

How to scale a cluster's resources

This guide explains how to adjust an existing MariaDB cluster from the Hikube console: disk size, version and external access.

Prerequisites​

  • An existing MariaDB cluster in your project
  • Sufficient project quotas for the new configuration

What can be changed​

ParameterCan be changed after creation
MariaDB VersionYes, to a higher version only
Disk size (GB)Yes, upwards only
External accessYes
PresetNo, "The resources preset cannot be changed after creation"
Number of replicasNo, "The mode cannot be changed after creation"

To change the preset (CPU and memory) or the number of replicas of an existing cluster, contact support.

Steps​

1. Open the edit form​

  1. Open DB & Messaging → MariaDB.
  2. Open the cluster, then click Edit (or use Actions → Edit in the list).

The Edit MariaDB cluster page displays the Cluster settings card and the impact on the project quotas.

2. Adjust the parameters​

  • Disk size (GB): enter the new capacity, at least equal to the current size. A lower value displays "The disk size cannot be reduced: N GB minimum." and is not saved.
  • MariaDB Version: select the target version. The form only offers the current version and the higher versions: MariaDB does not support downgrades.
  • External access: enable or disable exposure on the public Internet.

When you change the version, the warning "The cluster instances will restart" is displayed: the change restarts the cluster instances as soon as you save, and an upgraded version cannot be downgraded. Plan it outside peak hours.

3. Save​

Click Save. The "Cluster updated" message confirms the change. If the new configuration exceeds the project quotas, the button stays disabled.

note

The API applies the same rules: a version lower than the current one is refused with code 110203, a disk size smaller than the current one with code 110204.

tip

Increase the disk size before it is full. To measure the space used per database:

SELECT table_schema, ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) AS size_mb
FROM information_schema.tables
GROUP BY table_schema;

Verification​

The cluster page shows the new values in the MariaDB Version and Allocated Size cards, and the External Access state in the Connection and network card.

Going further​