You can add additional index servers to a TREX host on which an index server is already running. You do this to distribute large indexes over multiple index servers.
Each index server can use a maximum of 2GB of memory. Do not configure more index servers than can be supported by the memory on your host.
Open the TREXDaemon configuration file in a text editor.
This file is located in the <TREX_DIR>/<trex_host_name> directory.
In the [daemon] section, add one or more index servers beneath the programs parameter: programs=nameserver,preprocessor1,indexserver1, indexserver<next_number>, queueserver,alertserver.
Depending on the hardware of your host, one or two index servers are entered in the file by default.
Copy the [indexserver1] section and rename the copied section as [indexserver<next_number>].
Repeat this procedure for each of the index servers that you want to add. Choose a new value for the port number of the additional index server ( arguments=-port <index_server_port> parameter).
Determine the port of the first index server according to the following convention: <index_server_port>=3<TREX_instance_number>03. Increase the values for the port numbers in steps of ten to avoid conflicts.
If your TREX instance number is 47:
[indexserver1]
arguments=-port 34703
...
[indexserver2]
arguments=-port 34713
...
[indexserver3]
arguments=-port 34723
...
[indexserver4]
arguments=-port 34733
...
Stop and start TREX so that your changes take effect.