Changing cluster settings
After creating a cluster, you can:
- Change the host class.
- Increase the storage size (available only for network storage,
network-hdd
, andnetwork-ssd
). - Change SQL Server settings according to the SQL Server documentation.
- Move the cluster to another folder.
Change the host class
- Go to the folder page and select Managed Service for SQL Server.
- Select the cluster and click Edit cluster in the top panel.
- Select a new host class. When you change the host class for the cluster, the characteristics of all existing hosts change, too.
- Click Save changes.
To change the host class for the cluster, use the update method and pass the following in the request:
- The cluster ID, in the
clusterId
parameter. To find out the cluster ID, get a list of clusters in the folder. - New host class, in the
configSpec.resources.resourcePresetId
parameter. To find out the list of supported values, use thelist
method forResourcePreset
. - List of cluster configuration fields to be changed (in this case,
configSpec.resources.resourcePresetId
), in theupdateMask
parameter.
Warning
This API method resets any cluster settings that aren't passed explicitly in the request to their defaults. To avoid this, in the updateMask
parameter, list the settings you want to change (in a single line, separated by commas).
Increasing storage size
- Go to the folder page and select Managed Service for SQL Server.
- Select the cluster and click Edit cluster in the top panel.
- Under Storage size, specify the required value.
- Click Save changes.
To change the storage size for a cluster, use the update API method and pass the following in the request:
- The cluster ID, in the
clusterId
parameter. To find out the cluster ID, get a list of clusters in the folder. - Required storage size (in bytes), in the
configSpec.resources.diskSize
parameter. - List of user configuration fields to be changed (in this case,
configSpec.resources.diskSize
), in theupdateMask
parameter.
Warning
This API method resets any cluster settings that aren't passed explicitly in the request to their defaults. To avoid this, in the updateMask
parameter, list the settings you want to change (in a single line, separated by commas).
Changing SQL Server settings
- Go to the folder page and select Managed Service for SQL Server.
- Select the cluster and click Edit cluster in the top panel.
- Under DBMS settings, click Settings.
- Edit the settings and click Save.
- Click Save changes.
Use the update API method and pass the following in the request:
- The cluster ID, in the
clusterId
parameter. To find out the cluster ID, get a list of clusters in the folder. - The relevant values in the
configSpec.sqlserverConfig_2016sp2
parameter. - List of user configuration fields to be changed (in this case,
configSpec.sqlserverConfig_2016sp2
), in theupdateMask
parameter.
Warning
This API method resets any cluster settings that aren't passed explicitly in the request to their defaults. To avoid this, in the updateMask
parameter, list the settings you want to change (in a single line, separated by commas).
Moving a cluster
To move a cluster to another folder:
- Go to the folder page and select Managed Service for SQL Server.
- Click to the right of the row of the cluster that you want to move.
- Click Move.
- Select the folder you want to move the cluster to.
- Click Move.
To move a cluster from the current folder to a different one, use the move API method and pass the following in the request:
- The cluster ID, in the
clusterId
parameter. To find out the cluster ID, get a list of clusters in the folder. - The ID of the destination folder in the
destinationFolderId
parameter.