Resource specification options

The Streams Console and the streamtool mkinstance command provide several options for specifying the static resources in a Teracloud® Streams instance.

To specify the static resources in a Teracloud® Streams instance, you can use one of the following streamtool mkinstance command options:
  • --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.
If you do not specify static resources when you create the instance and if dynamic resource allocation is not enabled, the following resource specification is created when the instance starts: --numresources 1.

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.

Attention: The preferred configuration for optimal performance is to reserve some resources exclusively for Teracloud® Streams management services and some resources exclusively for running applications by tagging them appropriately. Sharing resources across multiple instances can also affect performance.

By default, Teracloud® Streams assigns the required instance services to the resources you configure for your instance. For most configurations, this distribution is sufficient.