|
SAS/IntrNet 8.2: Application Dispatcher |
|
Numerous changes have been made to SAS/IntrNet services on Microsoft Windows for Release 8.2. The following documentation applies only to Release 8.2 and later. If you are using an earlier release of SAS/IntrNet, refer to the documentation for that release.
To create a service for an Application Server running under a Windows environment, perform the following steps:
The SAS System
IntrNet
Create a New IntrNet Service.
The default value for this field is default. Create this as your first service because this is what is used when you run the samples. Select Next to continue.
# This service contains one server (port 5801) on yourserv.yyy.com.
|
LaunchService service-name "brief-text-desc"
|
# Start up to 2 servers on the same node as the Load Manager. No
|
# Start up to 5 servers on node yourserv.yyy.com using the spawner started
|
Socket services must be started manually. From the Start menu, select
Programs
The SAS System (or your Version 8 SAS program group)
IntrNet. Select the entry for the service you just created, and then select Start Interactively.
Launch services are started automatically by the Application Broker. Pool services are started automatically by the Application Load Manager. See Using the Load Manager for more details.
After a service is started, you can test it from a Web browser. The URL depends on the platform and path where your Application Broker is installed. For typical installations, the URL to test (or ping) a service is one of the following:
http://yourserver/scripts/broker.exe?_service=service-name&_program=ping http://yourserver/cgi-bin/broker?_service=service-name&_program=ping http://yourserver/sasweb/htbin/broker.cgi?_service=service-name&_program=ping Specify your Web server name in place of yourserver and your service name in place of service-name. You might need to use a different URL path if you chose a different path when you installed the Application Broker. If the service is running, an HTML page is returned stating that the Application Server is functioning.
Socket or pool services can be stopped from a Web browser. The URL depends on the platform and path where your Application Broker is installed. For typical installations, the URL to stop a service is one of the following:
http://yourserver/scripts/broker.exe?_service=service-name&_program=stop http://yourserver/cgi-bin/broker?_service=service-name&_program=stop http://yourserver/sasweb/htbin/broker.cgi?_service=service-name&_program=stop Specify your Web server name in place of yourserver and your service name in place of service-name. You might need to use a different URL path if you chose a different path when you installed the Application Broker.
Service configuration and log files are kept in a service directory tree. The service root directory can be accessed from the Windows Start menu. From the Start menu, select Programs
The SAS System (or your Version 8 SAS program group)
IntrNet. Select the entry for the service you just created, and then select Service Directory. This directory contains an appstart.sas file with the SAS code used to start the Application Servers for this service. Other scripts and configuration files for this service are also located in this directory.
Log files are placed in the logs directory under the service root directory and are named <day>_<port>.log. For example, Mon_5001.log or Tue_5001.log. By default, logs are kept for one week (six full days and one partial day) and then overwritten.
Socket services can be installed as Windows NT or Windows 2000 services. Installing as a Windows service enables the service to run automatically whenever the Windows system is booted, even if a user is not logged into the system. As noted above, install the SAS Service Configuration Utility before you create any service that will be installed as a Windows service. Instructions for installing the SAS Service Configuration Utility are located in an appendix of the SAS System Installation Instructions for Microsoft Windows.
From the Start menu, select Programs
The SAS System (or your Version 8 SAS program group)
IntrNet. Select the entry for the service you just created, and then select Install as Windows Service. This step does not start the service. Once the service has been installed as a Windows service, each time the system reboots the service is started automatically. You can manually start and stop the Windows service by using the Start Windows Service and Stop Windows Service menu selections. Note that you can still run this service interactively by using the Start Interactively menu selection, but only if the Windows service has been stopped.
A Windows service can also be uninstalled from the Uninstall Windows Service menu selection. This only uninstalls the Windows service. The SAS/IntrNet service remains and can still be run interactively.
The Services icon in the Windows Control Panel enables you to see the current status of all Windows services. Each SAS/IntrNet service display name begins with SAS App Server. Note that a separate Windows service is created for each server in a multiple server socket service. Individual servers can be started and stopped from the Services Control Panel. You can use the Start menu selections to start or stop all servers in the service.
You can remove a service by deleting the service directory and removing the associated Start menu entry. Follow these steps:
The SAS System (or your Version 8 SAS program group)
IntrNet. Select the entry for the service, and then select Uninstall as a Windows Service. Perform this step even if you are not sure if this service is installed as a Windows service.
The SAS System (or whatever program
group under which you installed Version 8 of SAS software)
IntrNet. Select the entry for the service, and then select Service Directory.
|
SAS/IntrNet 8.2: Application Dispatcher |
|