Setting up a Naming Service

A Naming Service provides a central listing of available analysis codes and pointers to where the actual codes reside. You may wish to do this for many reasons.

Typically in these situations, you would identify a single computer as your Naming Service. This computer would be running a copy of Analysis Server, but would not have any actual wrappers or codes on it. Instead, it lists the codes that are available elsewhere using .link files.

When the Analysis Server encounters a file with the '.link' extension in its analyses path or in a public_aserver directory, it automatically notifies the client of the actual location of the code using the information contained within this file. The Analysis Server can then proxy or redirect the client depending on how the link file is configured.

Contents of the link file

A file with the '.link' extension contains the single URL that points to the actual code and optionally an option specifying whether to proxy or to redirect the client. The URL should be of the form:

aserv://hostname[:port]/path/filename

For example, if you wanted to call the default msd component located in the wrappers directory on the computer mycomputer.phoenix-int.com, you would specify:

aserv://mycomputer.phoenix-int.com/wrappers/msd

By default, the client is given the option of whether it wants to redirect to the actual location or to proxy through this server. You can force a particular behavior by adding a type command to the .link file.

type: [auto|proxy|redirect]

Note, however, that not all clients are smart enough to know how to redirect. For this reason, it is best if you only use auto or proxy modes. At the time of writing, only ModelCenter v3.0 has redirect capability.

See also Analysis Server