If you write jobs to automatically provision virtual machines, you set the following facts in the job policy:
resoure.provision.maxcount resource.provision.maxpending resource.provision.hostselection resource.provision.maxnodefailures resource.provision.rankby
These are the job facts to enable and configure the usage of virtual machines for resource allocation. These facts can be set in a job’s policy.
For example, setting the provision.maxcount to greater than 0 allows for virtual machines to be included in resource allocation.
<job> <fact name="provision.maxcount" type="Integer" value="1" /> <fact name="provision.maxpending" type="Integer" value="1" /> </job>
The following figure shows the job Orchestrator console settings to use VMs:
Figure 9-4 Job Settings for VM Provisioning
When using automatic provisioning, the provisioned resource is reserved for the job requesting the resource. This prevents another job requiring reesources from obtaining the provisioned resource.
When the job that reserved the resource has finished its work (joblet has completed) on the provisioned resoruce, then the reservation is relaxed allowing other jobs ot use the provisioned resource.
Using JDL, the reservation can be specified to reserve by JobID and also user. This is done using the ProvisionSpec class.