vRULE ENGINE WORKER THREAD CONFIGURATION
-
vRule Engine deploys a number of worker threads to handle Application data traffic. The default value is typically configured to two threads. Each worker thread requires 1 vCPU
-
However, if an Application requires more throughput, then it is recommended to increase the number of worker threads in vRule
-
The number of worker threads and memory can be configured by executing the commands below:
-
Modify the number of threads:
-
vsp-cli config ae edit numWorker <1-16> --persist
-
-
Disable auto-scaling feature:
-
vsp-cli config ae edit autoscaling false
-
-
-
When the application throughput requirement is more than the supported value, it creates a congestion in the vRule Engine and as a result, packets are dropped by vRule’s flow controls. The number of packets dropped are logged in the vRule stats file
-
vRule stats are available in the file: /vspstats/vrule/vrule_stats. The below diagram depicts a part of vRule stats file
-
If drop count increases continuously, then it is a clear indication that more worker threads are needed
NOTE:
There should be a continuous increase in the drop count
-
Received M indicates the accumulated number of data plane messages. The rate of increase of these messages indicates the overall throughput rate at which vRule Engine is processing data packets
-
The average packet size and throughput can also be obtained from the VSP CMS dashboard