31
The Top Four User Requested Grid Features Delivered With SAS Grid Manager 9.4 Doug Haigh Doug Haigh SAS Institute SAS Institute

The Top Four User Requested Grid Features Delivered With SAS Grid Manager 9.4

Embed Size (px)

DESCRIPTION

The Top Four User Requested Grid Features Delivered With SAS Grid Manager 9.4. Doug Haigh SAS Institute. Summary of New Features. Option Sets Workspace Servers launched using the grid Logging SASGSUB enhanced wait. Grid Options Sets. Managing users and grid applications in 9.3. - PowerPoint PPT Presentation

Citation preview

Page 1: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

The Top Four User Requested Grid Features Delivered With SAS Grid Manager 9.4

Doug HaighDoug HaighSAS InstituteSAS Institute

Page 2: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Summary of New Features Option Sets

Workspace Servers launched using the grid

Logging

SASGSUB enhanced wait

Page 3: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Grid Options Sets

Page 4: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Managing users and grid applications in 9.3

Specific users

using specific applications

needing specific grid options

+One set of grid options per SAS application server context

=Multiple SAS application server contexts

Page 5: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

An example…

Page 6: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

What is needed

DIS

SASGSUB

SASGSUB

DIS

SAS Options:SAS Options: -memsize 256-memsize 256Resources:Resources: <none><none>Grid Options:Grid Options: queue=normalqueue=normal

DIS GRID OPTIONSDIS GRID OPTIONS

SAS Options: -memsize 0Resources: GSUBGrid Options: queue=night

SASGSUB OPTIONSSASGSUB OPTIONS

Risk

Finance

Page 7: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Same deployment in 9.4

Using Grid Options Sets

Page 8: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Grid Options Sets Grouping of options commonly used by grid

Mapped in a grid server to a grid application for a user

Can be mapped multiple times

Override default options

Page 9: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Logical Grid Server Metadata

Default options

Page 10: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Grid Options Set Mapping Wizard

Where grid options sets are managed

Page 11: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Grid Options Set Editor

Page 12: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

How it is used New gridoptset option on grdsvc_enable

grdsvc_enable(_All_,

"server=SASApp;

gridoptset='MyAppGridOpts'")

Client applications that generate grid code

Client applications that submit to grid

Object Spawner

Page 13: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Grid-launched Workspace Servers

Page 14: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

In 9.3, using the grid in EG

EGWorkspace

Server

GRID

Grid

Server

EG/AMO Grid macros

Page 15: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Now in 9.4…

EGWorkspace

ServerGRID

Page 16: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

New workspace server load balancing option

Page 17: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Logging Enhancements

Page 18: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

In 9.3, debugging involved…

Different debug options TCPDEBUG CNTDEBUG SAS_GRID_DEBUG STDOUTPUT VERBOSE SAS Logging Facility

Different debug output TCPDFILE CNTDFILE SAS LOG SPAWNER.DAT SASGRID.STDOUT SASGRID.STDERR SAS Logging Facility

Page 19: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Now in 9.4, debugging is standardized SAS Logging Facility

SASGRID script log file

Page 20: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

SASGSUB Wait Enhancements

Page 21: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

In 9.3, waiting for grid job using SASGSUB

sasgsub –gridsubmitpgm MyProgram.sas

–gridwait

<parse output to get job-id & job-dir>

sasgsub –gridgetresults <job-id>

<copy log & output from job-dir>

<parse job.info file for job rc>

<return job rc as script rc>

Page 22: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Now in 9.4, the script is…

sasgsub –gridsubmitpgm MyProgram.sas –gridwaitresults –gridwaittimeout 3600

rc=$?

(or rc=%ERRORLEVEL% for Windows)

Page 23: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Summary of New Features

Option Sets

Workspace Servers launched using the grid

Logging

SASGSUB enhanced wait

Page 24: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4
Page 25: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

How does it work?

Default ValuesSAS Options -memsize 256M -DBCSRequired Resources SASAppGrid Options queue=normal

Options Set ValuesSAS Options -memsize 0Required Resources TeradataGrid Options queue=priority

Merged Option ValuesSAS Options -memsize 256M –DBCS –memsize 0Required Resources SASApp TeradataGrid Options queue=normal queue=priority

Resulting Option ValuesSAS Options -DBCS -memsize 0Required Resources SASApp TeradataGrid Options queue=priority

Page 26: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Where Options Sets live

Page 27: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Application Names in Mapping Wizard Name of folder in /System/Applications

Configuration set property indicating application was grid capable

Page 28: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Grid Workspace Servers & Options Sets For Object Spawner to get Options Set, it needs client

application name

New client connection (6) accepted from server port 8594 for user

...

for APPNAME=SAS Data Integration Studio.

Application name must match folder name

Page 29: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

What about Old Applications? Create a folder under /System/Applications

Set isGridCapable keyword

If name is different, set name on isGridCapable keyword isGridCapable:SAS Enterprise Miner Mid-Tier isGridCapable:*SAS Enterprise Miner isGridCapable:SAS Enterprise Miner* isGridCapable:*SAS Enterprise Miner*

Page 30: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Keywords

Page 31: The Top Four User Requested Grid Features Delivered With  SAS Grid Manager 9.4

Helping the match-making process Make sure application sends APPNAME to spawner

Make sure APPNAME matches Folder name isGridCapable pattern

Make sure a mapping exists for app server and user