About Microservices
You can manage microservices in CentOS environments or in Ubuntu 18, 20, or 22 environments. You can also manage the microservices using the Composer CLI.
See the following sections:
Enable Microservices
You can also enable microservices using the CLI. See Manage Composer Microservices Using the Command Line Utility.
To enable all Composer microservices, enter the following command:
sudo systemctl enable $(systemctl list-unit-files | grep zoomdata | grep edc | awk '{print $1}')
To enable a specific Composer microservice, enter the following command:
sudo systemctl enable <service>
Replace <service> with the name of the Composer microservice. See Composer Microservice Name Reference.
Start Microservices
The list of microservices can be found in Composer Microservice Name Reference. The order in which microservices should be started is described in Microservice Startup Order.
You can also start microservices using the CLI. See Manage Composer Microservices Using the Command Line Utility.
To start all Composer microservices, enter the following command:
sudo systemctl start $(systemctl list-unit-files | grep zoomdata | grep edc | awk '{print $1}')
To start a specific Composer microservice, enter the following command:
sudo systemctl start <service>
Replace <service> with the name of the Composer microservice. See Composer Microservice Name Reference.
Restart Microservices
You can also restart microservices using the CLI. See Manage Composer Microservices Using the Command Line Utility.
To restart all Composer microservices, enter the following command:
sudo systemctl restart $(systemctl list-unit-files | grep zoomdata | grep edc | awk '{print $1}')
To restart a specific Composer microservice, enter the following command:
sudo systemctl restart <service>
Replace <service> with the name of the Composer microservice. See Composer Microservice Name Reference.
Stop Microservices
You can also stop microservices using the CLI. See Manage Composer Microservices Using the Command Line Utility.
To stop all Composer microservices, enter the following command:
sudo systemctl stop $(systemctl list-unit-files | grep zoomdata | awk '{print $1}')
To stop a specific Composer microservice, enter the following command:
sudo systemctl stop <service>
Replace <service> with the name of the Composer microservice. See Composer Microservice Name Reference.
Disable Microservices
You can also disable microservices using the CLI. See Manage Composer Microservices Using the Command Line Utility.
To disable all Composer microservices, enter the following command:
sudo systemctl disable $(systemctl list-unit-files | grep zoomdata | awk '{print $1}')
To disable a specific Composer microservice, enter the following command:
sudo systemctl disable <service>
Replace <service> with the name of the Composer microservice. See Composer Microservice Name Reference.
Microservice Startup Order
The only microservices that must be started first are the Postgres and Service Discovery microservices. The other microservices are more tolerant and can be started in any order.
Composer recommends starting microservices in the following order. You can start microservices using CentOS or Ubuntu commands or using the CLI. See Start Microservices and Manage Composer Microservices Using the Command Line Utility. A full list of Composer microservices can be found in Composer Microservice Name Reference.
The Postgres microservice (
postgresql-<version>) used for metadata storage (where<version>is the version of Postgres you have installed.The Service Discovery microservice (
zoomdata-consul) used for microservice discovery.-
The connector microservices (in the format
zoomdata-edc-<connector_name>) used to connect to different data stores. The following CentOS example starts all available connector microservices, rather than starting them individually:sudo systemctl start $(systemctl list-unit-files | grep zoomdata-edc | awk ‘{print $1}‘)
The query engine microservice (
zoomdata-query-engine) used for query engine processing.The
zoomdata-data-writer-postgresqlmicroservice.-
The following optional microservices, if they are installed.
zoomdata-admin-serverzoomdata-screenshot-service
The main Composer microservice (
zoomdata).
Comments
0 comments
Please sign in to leave a comment.