How can I configure my application to only accept resources/hosts that match a particular requirement?

There are two areas where you can specify a resource requirements for your application:

  • In the SOAM > SSM section of the application profile, which specifies the requirements for the Session Manager host for your application.

  • In the Consumer section of the application profile, which specifies the requirements for the compute hosts that will run the workload units for your application.

To check and modify your resource requirement and resource group for the Session Manager host:

In the SOAM > SSM section of the application profile, make sure the resReq and resourceGroupName attributes are configured to the values that you expect. Modify the values, if necessary. The default configuration should work without modification, if you have not made any major changes the cluster. By default:

  • resourceGroupName="ManagementHosts", which specifies that the host should be selected from among those in the "ManagementHosts" resource group.

  • resReq="", which specifies that there is no specific requirement for host selection within the resource group specified in the resourceGroupName attribute.

To check and modify your resource requirement and resource group for the compute hosts:

In the Consumer section of the application profile, make sure the resReq and resourceGroupName attributes are configured to the values that you expect. Modify the values, if necessary. The default configuration should work without modification, if you have not made any major changes the cluster. By default:

  • resourceGroupName="", which specifies that the host should be selected from any resource group.

  • resReq="select(!mg)", which specifies that only hosts that do not have the resource attribute "mg" should be selected from within the resource group specified in the resourceGroupName attribute.

For more details about how to specify a resource requirement string, refer to the "Administering and Using Platform EGO" link in the Knowledge Center. Look under the "Create a resource group by resource requirement" topic and view the table of resource requirements to possible resource criteria and the syntax used to specify them. The table is documented in the context of resource groups, but the syntax also applies to the resReq string in your application profile.