Administering services

Before you can perform Teracloud® Streams tasks, Teracloud® Streams domain and instance services need to be running on resources in the domain. Domain services are started by starting the domain and instance services are started by starting the instance.

About this task

To determine whether a domain service is running, you can use the Streams Console or the streamtool command line interface. For example, you can run the streamtool getdomainstate command. The following command output shows all domain services running on host1:
domain: domain1 State: STARTED
Resource              Status    Services                                      Tags
host1.teracloud.com   RUNNING   RUNNING:aas,auditlog,controller,jmx,rest,sws

To determine whether an instance service is running, you can use the Streams console or the streamtool command line interface. For example, you can run the streamtool getresourcestate command. The following command output shows all instance services running on host2:

Instance: instance1 Started: yes State: RUNNING Resources: 1 (1/1 Management, 1/1 Application) Version: 7.2.0.0
Resource               Status  Schedulable Services                       Tags ResourceSpecId[count,tags,..]
host2.teracloud.com    RUNNING yes         RUNNING:app,data,sam,srm,view  1[1(none)[shared]]

You can access Streams functionality such as the Streams Console, REST APIs, JMX APIs, and data exchange APIs by making a connection to the domain or instance service providing the functionality. In order to establish the connection, you need to provide a URL that includes the host where the service is running and the port used to establish connections.