SAS/IntrNet 9.1: Application Dispatcher |
To create a service for an Application Server running in a UNIX environment, perform the following steps:
SASROOT/utilities/bin/inetcfg.pl
where SASROOT
is the path to the SAS root directory.
As the configuration utility runs, you are prompted for information about the service that you are creating.
If there is only one server, press Return. If you plan to have multiple servers, type the number, and then press Return.
If the information is correct, press Return. The utility creates the service. Read the messages printed by the utility to determine if the service was created correctly. One of these messages contains the path for the service directory created by the utility. You should note this path for use later in this process.
If you want to change the information, type N and press Return. The script exits and you can rerun the script.
# 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
|
Socket services must be started with the start.pl script created by the configuration utility. To start the service, change to the service root directory created by the utility. Then submit the following:
./start.pl
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.
Once a service is started, you can test it from a Web browser. The URL will depend on the platform and path where your Application Broker is installed. For typical installs, the URL to test (or "ping") a service will be one of the following:
http://yourserver/cgi-bin/broker?_service=service-name&_program=ping
http://yourserver/scripts/broker.exe?_service=service-name&_program=ping
You must 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 will be returned stating that the Application Server is functioning.
Socket or pool services can be stopped from a Web browser. The URL will depend on the platform and path where your Application Broker is installed. For typical installs, the URL to stop a service will be one of the following:
http://yourserver/cgi-bin/broker?_service=service-name&_program=stop
http://yourserver/scripts/broker.exe?_service=service-name&_program=stop
You must 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.
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.
SAS 9 has implemented a set of % codes that can be used in the -log parameter. You must add a -logparm option in order to get the codes translated into the log. For example adding
-log '/full-service-root-path/service-name/logs/appsrv_%v.log' -logparm rollover=auto
creates log files with unique log filenames. The rollover=auto option causes an automatic "rollover" of the log when the directives in the value of the LOG option change. This is particularly useful for generating log files for pool or launch services. This example creates log filenames such as appsrv_1.log, appsrv_2.log, and appsrv_3.log.
Note: You must use a full path to specify the log file because there is limited control over what path the Load Manager or spawner will use as the current directory for each Application Server.
For more information, see the documentation on the LOGPARM= system option in SAS Language Elements.
A service can be removed by deleting the service root directory and its contents. Any active servers must be stopped before deleting this directory.
SAS/IntrNet 9.1: Application Dispatcher |