Updating the maximum number of worker nodes
Making updates to the Symphony configuration by using the GUI
You can make updates to your Symphony configuration by using the GUI console or through the CLI.
Configuration updates by using Symphony GUI console
For more information on how to use the Symphony GUI console, see Symphony GUI console.
After you login to the console, complete the following steps to update the maximum number of worker nodes:
-
From the cluster management console, click Menu icon
Resources > Cloud > Configuration.
-
In the Cloud Configuration page, update the HostFactory service configuration, your cloud provider's host template, or both. If your updates do not include optional parameters, the parameters default values are used.
-
To update the cloud provider's host template definition, select
ibmcloudgen2instfrom the provider list and edit your existing template definition in the templates text box. -
Modify the values for following:
a. maxNumber changes the maximum number of worker nodes.
b. imageId changes the ID of the custom image.
c. vmType changes the instance type. If you modify the instance type, you need to modify the corresponding values for ncpus and nram in the attributes section. For example, if you choose
bx2-2x8, this instance type has 2 VCPUs and 8GB of RAM. Since VCPUs includes hyper-threads, use VCPUs divided by 2, to get ncpus. Set ncpus to 1 and nram to 8192.d. postProvisionFile changes the location of the post provision script.
e. hostPrefix changes the prefix of provisioned hosts
The changes take effect automatically. There is no need to restart the HostFactory service.
Configuration updates using Symphony CLI
-
Find and edit the following file on your management node. Replace the CLUSTER value with the name of your cluster. The default value is HPCCluster:
/data/<CLUSTER>/sym731/hostfactory/conf/providers/ibmcloudgen2inst/ibmcloudgen2instprov_templates.json -
Modify the values for following:
a. maxNumber property updates the maximum number of worker nodes.
b. imageId changes the ID of the custom image.
c.vmType changes the instance type. If you modify the instance type, you will also need to modify the corresponding values for ncpus and nram in the attributes section. For example, if you choose
bx2-2x8, this instance type has 2 VCPUs and 8GB of RAM. Since VCPUs includes hyper-threads, use VCPUs divided by 2 to get ncpus. Set ncpus to 1 and nram to 8192.d. postProvisionFile changes the location of the post provision script.
e. hostPrefix changes the prefix of provisioned hosts.
-
Save the file.
-
Restart the HostFactory service by using the following commands:
egosh service stop HostFactoryegosh service start HostFactory
For more information, see Dynamically updating host factory configuration.