Source : Support Need4Viz — KB #125 — Category : 1. N4V Installation
You want to run multiple instances of N4V engines on the same server.
Environment:
The N4V installer cannot be used to install multiple instances of N4V.
By default, the insatller will detect the first instance already installed on the server and will update it to the latest version.
If you want to run multiple instances of N4V on the same server, you need to configure it manually.
Follow the below steps to run multiple N4V instances :
1/ Duplicate the tomcat/webapps/N4VCustomElements folder (for instance, name it N4VCustomElementsProd )
2/ Create a new log folder (ex. Need4Viz/logsProd)
3/ Duplicate the Need4Viz/nodejs/node_modules/custom_element folder ((for instance, name it custom_elementProd )
4/ Open the config.js file in the Need4Viz/nodejs/node_modules/custom_elementProd/ce_libs folder and update the following parameters :
5/ Duplicate the \Need4Viz\nodejs\apps_need4viz.json (for instance, name it apps_need4vizProd.json ) and edit it :
Now you can start your new instance of N4V running “ pm2 start apps_need4vizProd .json ” in a PowerShell command.
To save both instances configuration (and make both of them restart after the server reboot), run a “ pm2 save” command.
In the CMC, you can configure the 13 services on the new N4V instance ports range (8301 -> 8313).