Installing the Adapters > Configuring Multiple Non-File Synchronization Workers on a Single Machine
  
Configuring Multiple Non-File Synchronization Workers on a Single Machine
You can configure multiple workers, each with a separate setup folder and startup script. Use this strategy when your CAD application requires a unique runtime environment and configuration for each worker process.
This procedure is relevant primarily to Non-File Synchronization enabled Windchill CAD worker configurations. The following MCAD adapters and their related CAD applications support multiple non-File Sync workers on the same machine of the same Worker type.
Creo Parametric
Autodesk Inventor
CATIA
NX
Creo Elements/Direct Modeling
The –DA option is available for the workermonitor, workerhelper, and all the adapters. Use it to create unique worker definitions on the same machine.
To configure multiple workers, perform the following steps:
1. Choose an alias for each worker required on a the machine. For example, on the worker machine proeworker, these might be proeworker_1, proeworker_2, proeworker_3, and so forth.
2. On the worker machine, use the proe2pv_config utility to create several identical configurations, one for each required worker. For example, proe1_setup, proe2_setup, proe3_setup, and so forth.
3. Edit each proeworker script and add a -DA <alias name> as the first argument after the <AdapterInstall>\x86e_win64\obj\proe2pv executable. Do so in the workermonitor (for 8.0 and greater servers) or workerhelper (for pre-8.0 servers) command line. For example:
8.0 and Greater Servers:
"<AdapterInstall>\x86e_win64\obj\workermonitor" -UH -s
"<AdapterInstall>\x86e_win64\obj\proe2pv" -DA proeworker_1 -vt -r proe2pv.rcp
Pre-8.0 Servers:
"<AdapterInstall>\x86e_win64\obj\workerhelper"
"<AdapterInstall>\x86e_win64\obj\proe2pv" -DA proeworker_1 -vc -vn worker
where <AdapterInstall> is the Adapters installation folder.
4. Configure the Windchill server so that each of the worker aliases are resolved to the worker machine host name, by editing the %SystemRoot%\System32\ drivers\etc\hosts file, and add an entry such as:
<worker-ip-addr><hostname><alias-name_1><alias-name_2><alias-name_3>.
For example:
123.456.789.1 proeworker proeworker_1 proeworker_2 proeworker_3
5. You can modify the proeworker script of each configuration to avoid any potential runtime environment conflicts. For example, setting of HOME path, TEMP areas, PTC_WF_ROOT folder, and so forth.
6. Configure a worker definition for each worker using the Worker Configuration Wizard. Add each named worker (using the alias name for the worker host name) as a separate worker with one instance.
You have now created multiple workers to run independently on one machine.
* 
Not all CAD tools support the running of multiple instances on the same machine. Some may require special configuring to correctly insulate the processes from each other.
The -DA option is primarily used for limitations of Creo local cache. However, you can use the option for any CAD application that has a potential for local data corruption.
For details of multiple Windchill File Synchronization enabled CAD worker configurations on the same machine refer to the Software Matrices at Reference Documents.