This topic describes how to deploy workers and clients.
Background
To deploy workers and clients on servers, decompress the GZ file on the servers. If you want to deploy multiple workers on one server, decompress the GZ file to different directories on the server.
As for the deployment, only workers are persistent. Therefore, you can deploy only workers. During each replay, you can run the corresponding command to start a client.
To deploy a worker, you must go to the corresponding folder and run the commands. Sample environment:
One server acts as a client. The IP address of the server is 192.168.0.10.
Two servers act as workers. The IP addresses of the servers are 192.168.0.20 and 192.168.0.30.
The network environment does not support multicast, and allows only fixed IP addresses.
Deploy workers
Access the servers where the workers are to be deployed, decompress the oma.tar.gz file, and run the following command to start the workers.
Notice:
Make sure that the value of the
--nameparameter is unique for each worker.
48500..48520 in --ip-addresses indicates the port range. Do not modify it.
sh bin/start.sh \
# A fixed value.
--mode WORKER \
# The name of the current worker.
--name abc
# The IP addresses of two workers. 48500..48520 indicates the port range. Do not modify it.
--ip-addresses "192.168.0.20:48500..48520,192.168.0.30:48500..48520"
The workers are started after the running of the command is completed, without the need to make any other configurations.
Deploy clients
You do not need to deploy clients. Instead, you only need to run a client when you want to start a replay task. The procedure is basically the same as that in the standalone edition.