Defining resources enables
you to specify where jobs are run on the grid. You can define resource
names on grid nodes, and then specify those same resource names on
jobs that are sent to the grid. The resource names that are specified
on grid machines indicate a specific program or resource that the
grid job might need (for example, a machine that has
SAS/STAT installed
on it or a machine that has access to a Teradata machine), so you
can direct specific types of work to the nodes that are most appropriate
for processing them.
By default, when a job
is sent to the grid, the name of the SAS Application Server is sent
as a resource name along with the job. You can further specify the
type of machine used to run a job by specifying the WORKLOAD= parameter
on the GRDSVC_ENABLE call.
For example, assume
that you have installed and configured a grid that uses the application
server name of SASApp. You now want to specify that SAS Data Integration
Studio jobs should run on certain machines in the grid. To make this
happen, follow these steps:
-
Create a resource name
of DI for SAS Data Integration Studio jobs. (DI is only an example;
you can use any user-defined string.)
-
Assign the resource
names DI and SASApp to the machines that you want to use for processing
SAS Data Integration Studio jobs.
-
Add the value DI to
the
Required Resources field for a grid options
set definition that also specifies SAS Data Integration Studio in
the
SAS Application field.
-
When you send a job
to the grid using SAS Data Integration Studio, the job is automatically
sent to the DI workload, which sends the job to one of the machines
with SASApp as a resource name and DI as a resource name. If there
are no grid servers with resource names that match the value on the
job, the job is not processed.
If you did not use a
grid options set, you would have to manually choose the workload named
DI in the
Loop Properties window in SAS Data
Integration Studio.