Queues Example

This section illustrates the interaction of Allocator with FlexNet Publisher. The setup consists of two Accelerator installations, one in Santa Clara, California, and one in Bangalore, India. We use the Allocator product to allocate resources among the two sites.

In this example we monitor the resource License:lic_sim. Upon querying Monitor, Allocator learns that we currently have a license to run up to 7 concurrent jobs using this resource. Under idle conditions, this license is distributed to the two Accelerator sites as per the specified default weights for the sites.
# Fragment of vovlad/config.tcl
LA::AddSite vncsc@santaclara "SC" { 
} -port 6229 -version 2016.09 -defaultweight 50

LA::AddSite vncblr@bangalore "BL" { 
} -port 6335 -version 2016.09 -defaultweight 20
Using these default weights, Allocator will determine that the Santa Clara office gets access to 5 licenses, while the remote Bangalore office gets 2.


Figure 1.
When a user submits a large batch of jobs in Santa Clara, the licenses get quickly migrated from Bangalore to Santa Clara.


Figure 2.

Now Bangalore also requests to use the same resource. The system therefore wants to send 2 licenses back to Bangalore. This is done incrementally: as the jobs in Santa Clara complete, the license is moved to Bangalore.

The first picture shows allocation to Santa Clara reduced to 5, but since 7 jobs are still running, the 2 licenses cannot yet be moved to Bangalore until running jobs release them, so those 2 are shown in the "Moving" column.


Figure 3.
Once the running jobs in Santa Clara drop to 5, the 2 freed up licenses are now moved to Bangalore and jobs start running in Bangalore.


Figure 4.
The Bangalore workload is now zero, but a user in Bangalore (john@sile) is using one of the licenses outside of Accelerator, so the system needs to throttle down the number of licenses available for Santa Clara from 7 to 6.


Figure 5.

By navigating the browser interface, we can view the historical plots for the utilization, unmet demand (queued), and allocation for this resource, say for the past 4 hours.