3060 Worker Queues Process High Activity Triggers¶
10 Minutes advanced
Ensure timely trigger processing by creating a dynamic pool of workers to handle requests
From this lab, the user will use a cluster of workers to handle a set of WorkOrders in parallel. Business ROI: Dynamic job processing provideds a scalable, general purpose way to automate routine tasks
Prerequisites¶
Additional Labs:
Concepts¶
- trigger
- contexts
- clusters
Summary¶
Create Cluster of workers¶
- From the Clusters view, click
Add
SetName
tolab3060
Set `Required Params` `broker/name` to `context-broker` Click `Save`
- Wait for cluster to complete building
Put Cluster Machines in WorkOrder mode¶
- Go to the Machines view
- Select all machines that start with "
lab3060-
" - Hover over the
Actions
dropdown and selectWork Order Mode
All machines should enter WorkOrder mode and show pending/running Work Orders in the table.
Update lab3010 Trigger¶
- Go to lab3010 editor
- Change
Filter
tocluster/tags:In:lab3060
- Set
Queue Requests
tofalse
- Under
Work Order Config
, add a parameter,dev/wait-time
with a value of1
Click a white space area to make sure all items are saved
Distribute and Run Work Orders¶
- Go to the Machines view
- Click the
lab3010
Trigger Button at least 10 times quickly -
Notice the
lab3060-*
machines having pending and running work orders The Work Orders are distributed across the workers in an even fashion and the workers will run the Work Orders taking their next pending Work Order once finished with the current one.In the Queue Requests `false` mode for the trigger, the Work Orders are assigned when they are created.
-
Let the Work Orders complete All machines should have '0's showing for pending and running Work Orders.
Convert to Queue Mode for the Trigger.¶
- Go to lab3010 editor
- Set
Queue Requests
totrue
Queue Work Orders to the Machines¶
- Go to the Machines view
- Click the
lab3010
Trigger Button at least 10 times quickly -
Noitce the
lab3060-*
machines having pending and running work orders The Work Orders are distributed to all machines and each machine will run a Work Order order from the queue when it can. This cause lets the work distribute to the machines based upon their availablity. -
Let the Work Orders complete All machines should have '0's showing for pending and running Work Orders.