4 Service Deployment
This page describes detailed steps to install SenseID.
This chapter describes how to deploy and activate the SenseID service, primarily installing, configuring, launching critical services and potential issues and solutions.
4.1 Confirm the installation package
The installation package should have been unzipped to place the license files. See Section 3.3.1 for more details.
Change the directory to the root folder where you unzipped the SenseID installation package.
The structure is as follows:
4.2 Deploy Go-Workers
This service is a major computing service, so it is recommended to allocate dedicated server resources if possible.
4.2.1 Adjust CPU cores
Before deploying Go-Workers, you need to get the number of physical CPU cores on your server. The command to get the physical CPU core information is as follows.
Change the directory to the Go-Workers folder, open the.env
file, and set theHANDLERS
value to the number of physical CPU cores obtained above if you are using a dedicated server. Otherwise, specify a number. Save and close the.env
file.
HANDLERS
cannot be set to a value that exceeds the number of physical CPU cores on the server. The higher theHANDLERS
value is, the higher the number of concurrent services and the higher the memory and CPU consumption.
4.2.2 Start Go-Workers service
Before you start, make sure your license has been replaced.
Start the Go-Workers service.
You only need to execute this instruction once.
A script to stop the service is also provided in the same folder. Execute it only when you want to stop the service.
4.2.3 Check Go-Workers service
To confirm whether the Go-Workers service started normally, try the following command to see the logs.
If the tail command contains Server Listen on port 50050, the service has started successfully.
Also, perform the health check with the following command.
An example is as follows (This indicates that the service started successfully).
4.3 Deploy Ruby-Cloud-API
The deployment of the following services depends on Docker. Make sure you have Docker installed on your server.
4.3.1 Load service images
Load the Ruby-Cloud-API image file.
The execution result is as follows.
4.3.2 Set Go-Workers address
Get the IP address of the Go-Workers server.
Open the .env
file in the root folder of the SenseID installation package.
Set the WORKER_IP
value in the last line to the IP address of the server where the Go-Workers service is deployed.
4.3.3 Adjust CPU cores
Sets the number of physical CPU cores on the server, the same way as Go-Workers.
Open the.env
file, and set theHANDLES
value to the number of physical CPU cores obtained if you are using a dedicated server. Otherwise, specify a number. Save and close the.env
file.
HANDLES
cannot be set to a value that exceeds the number of physical CPU cores on the server. The higher theHANDLES
value is, the higher the number of concurrent services and the higher the memory and CPU consumption.
4.3.4 Start Ruby-Cloud-API service
Start the Ruby-Cloud-API service.
The results are as follows.
Confirm that the Docker is running.
The results are as follows.
The service is now successfully deployed.
4.3.5 Check Ruby-Cloud-API service
Perform the health check with the following command.
An example is as follows (This indicates that the service started successfully).
Last updated