Resource specification options
The Streams Console and the streamtool mkinstance command provide several options for specifying the static resources in a Teracloud® Streams instance.
- --host: Specifies one or more host identifiers. A host identifier can be a host name or IP address.
- --numresources: Specifies to get the designated number of available resources from the domain. You can also specify optional resource selection criteria.
- --hfile: Specifies the path to a file, which can contain host identifiers and --numresources specifications.
When you use the --numresources option, you can specify optional resource selection criteria. For example, you can specify tags, which provide you with more explicit control over resource selection. You can use tags to customize how Teracloud® Streams distributes instance and application services on your resources. You can also specify the resource sharing mode: shared or exclusive. Resources are shared by default. If you use the exclusive sharing mode, the instance obtains resources that are not used by any other instance in the domain.
By default, Teracloud® Streams assigns the required instance services to the resources you configure for your instance. For most configurations, this distribution is sufficient.