How to install multiple node servers

This document explains how to install a second node.js server (for scalability purposes) on an existing installation. The additional server shares the same MongoDB repository.

This procedure describes a Windows installation, but the information can be used for any operating system on which the X3 web server is usable.

Example

Operation on X3ServerA

cd syracuse
cd certs_tools
certgen.bat
The last command requires you to enter data and answer some questions:

The following operation will run:

Generate key pair ...
Generate certificate ...
Write private key output/testserver.key ...
Write certificate output/testserver.crt ...
Write public key output/testserver.pem ...
Transfer data to xxxserver:8124 ...
Cannot connect to xxserver: java.net.UnknownHostException: X3ServerB
Press RETURN to continue
Finished

Now you can return to your cmd window and type:

cd output

First, check that x3serverb.crt, x3serverb.key and x3serverb.pem were generated.
Then:

Operation on X3ServerB

Server name X3SERVERB
Error: Nanny already installed Error: Nanny already installed
  at start (C:\Sage\Syracuse\syracuse\bin\node_modules\syracuse-load\lib\balancer.js:512:12)
  at __streamline$run (C:\Sage\Syracuse\syracuse\bin\node_modules\streamline\lib\fibers-fast\runtime.js:56:14)
Disregard this error.

Your are now able to connect to your additional server.