Assigning tags to resources in a domain
About this task
Teracloud® Streams dynamically responds to tag changes. It makes automatic adjustments to the location of Teracloud® Streams services, which are based on changes to the tags.
For better control of the placement of domain management services, instead of using the management tag, tag your resources with the specific service tags. For example, use the audit, authentication, jmx, rest, and sws tags. To control the placement of instance management services, use the data, view, and management tags. To control the placement of the application services and processing elements, use the application tag.
If you created extra tags for use by your stream applications, assign them to resources that also have the application tag. The application manager service considers these tags when it matches resources against the requirements that are specified in your applications.
Procedure
-
To add tags to a Teracloud® Streams resource when you create a domain, use the --hfile option on the
streamtool mkdomain command. Specify host identifiers and tags for each
resource in the host file.
-
To add tags to a Teracloud® Streams resource when it is added to a domain, use the --tags option on the
streamtool registerdomainhost command.
-
To change the tags that are associated with Teracloud® Streams resources in a domain, use the Streams Console or the streamtool chhost command.
Use the Streams Console or the streamtool setdomainproperty and streamtool setproperty commands to update these properties. For more information about these properties, run streamtool man domainproperties and streamtool man properties.