This manual describes the sequence of actions to start server via the process manager PM2.
Install process manager PM2
Install process manager PM2 on the host with the deployed SAYMON platform using the following command:
Configuration of actors
For all of the actors in-memory mode should be set in the file. For instance:
Disabling the server
In the case if the server has been started on the host as a service, it is necessary to stop and disable the service saymon-server.
Command to stop the service:
Systemctl command to disable the service:
Init command to disable the service:
Start the server via PM2
To start the server via PM2, it is necessary to execute the following command:
In order to set automatic startup of the services when the OS is booted, execute the command:
Setting up logs
Logs for each actor are recorded to the folder.
In order to set up log rotation, create the configuration fileand add the following lines to it:
The following command cleans all log files:
Work with actors
To check statuses of the actors, execute the command:
Monitoring of work of the actors in real-time mode:
In order to stop/start/restart a set of specific actors or all of the actors it i necessary to use the following commands, respectively:
In order to scale the number of actors, execute the command:
- saymon-rest-server is the name of the actor,
- 4 is the necessary amount of actors.
Restarting the server is not required.