Using Multiple Application Server Contexts

Using multiple queues enables you to control the workflow of jobs that are processed on the grid. For example, you can set up queues to handle jobs based on priority, type, or SAS application. However, using multiple queues requires you to specify the queue name each time you submit a job to the queue. By creating multiple application server contexts, you can create a separate logical grid server for each queue, making it easier to process the job using the proper set of resources. By sending the job to the appropriate application server, you automatically send it to the appropriate queue.
For example, you might use this capability to set up a grid where each department has its own queue. You might want to specify different parameters depending on which department is submitting a job. Once you create a queue definition for each type of processing, you can create a SAS application server and logical grid server for each type of processing, specifying the appropriate queue definition on each one. Because you specify the same grid command on each server definition, all jobs are processed by the same grid (although you can specify different SAS start-up commands with each command). However, jobs sent to the dept2 application server are processed using the dept2 queue definition, and jobs sent to the dept3 server are processed using the dept3 queue definition. See Multiple Application Servers for Multiple Departments for a diagram of this configuration.
Multiple Application Servers for Multiple Departments
multi app server, multi departments
You can also use this capability to set up queues based on the applications that send jobs to the grid. For example, you might have one queue for jobs that are sent to the grid from SAS Enterprise Guide and another for jobs sent from SAS Enterprise Miner. You would still create a queue, a SAS application server, and a logical grid server for each queue that you define. However, because jobs from these applications require a workspace server to process them, you would also need to add a workspace server component to each SAS application server definition. See Multiple Application Servers for Application Processing for a diagram of this configuration.
Multiple Application Servers for Application Processing
multi app server, eg, and em processing
To set up an environment with multiple application server contexts, follow these steps:
  1. Install and configure the grid normally. As part of the installation and configuration process, you configure a grid control server and a logical grid server. Note the value that you specify in the Grid Command field when configuring the grid control server.
  2. Define the queues that you want to use or a grid command that is specific to the application or business group that will be using this application server context. See Using Queues for more information.
  3. When the installation and configuration process is complete, start SAS Management Console.
  4. Expand the Server Manager node, and then expand both the SAS Application server node and the Logical Grid Server node.
  5. Select the Grid Server node and then select Actionsthen selectProperties.
  6. In the Properties window, select the Options tab and record the values for all of the fields on the tab.
  7. Close the Properties window and then select the connection associated with the grid server. Select Actionsthen selectProperties.
  8. In the Properties window, select the Options tab and record the values for all of the fields on the tab. Close the Properties window.
  9. Select the Server Manager node, select Actionsthen selectNew Server, and then select SAS Application Server as the server type.
  10. Follow the New Server wizard to create the SAS application server. Specify a name for the server that identifies what the server is used for (for example, SASApp_test_grid or SASApp_EM_grid). When the wizard asks you to select the type of SAS server to add, select Grid Server.
  11. Use the values that you recorded in steps 6 through 8 from the first logical grid server definition when defining this server. Specify the queue name in the Options field using the format queue=queue_name.
  12. Complete the New Server wizard.
  13. If the application that will be using the queue requires a SAS workspace server in order to process jobs, select the SAS application server that you just created and then select Actionsthen selectNew Server.
  14. Follow the New Server wizard to add a new server component. Use the values that you recorded in steps 6 through 8 when defining this server. Select Workspace Server as the type of SAS server to add to the SAS application server.
  15. Repeat steps 9 through 14 for each application server context that you need to add.