SAS Safety Scalable Performance Data Server 4.5 Manual Do Utilizador

Página de 271
asiacpu
a data store for the company's Asia department, which uses the data to generate reports,
analysis, and so on.
namecpu
the machine that runs the name server.
Because data for worldwide operations is stored in an SPD Server table on worldcpu, the
Asia department periodically must access worldcpu. The Asia users want to extract
worldcpu data to create SPD Server tables that will reside on their own departmental server,
asiacpu. The Asia users can then access tables which contain only Asia data, and transfer
that information to their desktops for further analysis.
The SPD Server system administrator runs the name server on the namecpu machine.
Consequently, namecpu must be accessed by every machine in the network that wants to
locate an SPD Server table. Additionally, the administrator must run a data server on the
worldcpu and asiacpu machines. The following section discusses how the administrator
should configure the servers in order to distribute the processing load.
Running the Name Server on Machine Namecpu
Invoke the name server by using the 
-listenport
 option. The value that you specify for
the option should be a valid TCP/IP port number. You will use the same port number when
you invoke SPD Server on the worldcpu and asiacpu servers.
Configuring SPD Server on Worldcpu
The libname.parm file that resides on the worldcpu server contains the following line:
libname=world pathname=/spds; 
This code instructs SPD Server to register the combination
(world, worldcpu, /spds) 
with the name server. Thereafter, when a SAS LIBNAME statement contains the domain
name 'world' in combination with the appropriate name server, it will locate SPD Server
tables in the directory 
/spds
 on the worldcpu server. The SAS LIBNAME statement that
invokes the SPD Server engine and makes this association is
libname worldlib sasspds 'world' server=namecpu.spdsname; 
When your network uses an SPD Server name server, the users do not have to remember
which machine houses a particular domain. Users only need to remember that the SAS
domain named 'world' contains the tables that they need. The machine that stores the domain
can even change without the users' knowledge and the users' SAS programs will continue
to run as before.
Invoke SPD Server, specifying namecpu as the value for the 
-nameserver
 option. The
value for the "nameserverport" must match the port number that you used to start the name
server on that machine.
Setting Up asiacpu, the Asia Departmental Server
The libname.parm file that resides on asiacpu contains the line of code:
libname=asia pathname=/spds; 
This line instructs the SPD Server running on asiacpu to register the combination
(asia, asiacpu, /spds) 
68
Chapter 6 • Using the SPD Server Name Server to Manage Resources