Scale the Number of Workers
Currently, when installing the ThingWorx Analytics Server, three workers are provided. However, the number of workers can be scaled up or down after the installation is complete. Keep in mind that multiple workers will allow more job requests to be processed simultaneously, but will not increase the speed with which any given job is handled.
To scale the number of workers:
1. Open the Windows PowerShell, or the Command Prompt window, in Administrator mode.
2. Navigate to the bin folder of the ThingWorx Analytics Server installation directory.
For example: C:\Program Files (x86)\ThingWorxAnalytics\Thingworx_Analytics_Server\bin
If your installation directory is different, for example because you’ve upgraded from a previous release, adjust your navigation accordingly. For more information, see Upgrade from an Earlier Version.
3. Execute one of the following commands:
In Windows PowerShell: worker-util.ps1 start <number of workers>
In Command Prompt: powershell -Command "worker-util.ps1 start <number of workers>"
For example, to run a total of 5 workers, enter:
worker-util.ps1 start 5
If 5 workers is more than the number running previously, new workers are started. If 5 is less than the number running previously, some workers will be removed.
Was this helpful?