API for gLite Service Discovery

The API returns a list of service descriptors matching search criteria. Information about the individual services can be obtained from the descriptors if it is desired to rank the services returned or produce a web page of some subset of services.

In order to issue a Service Discovery query you must use a node with the Service Discovery client installed that is correctly configured, as is the case on worker nodes, user interfaces and VO box. You must also have a valid grid certificate.

Retrieving a list of services via the gLite Service Discovery

This can be done via one of the Service Discovery APIs or the Service Discovery CLI. For these examples we will use the CLI.

Setting the order of Service Discovery plugins

You can specify the type/order of service discovery implementation to be used. This is done with the environment variable GLITE_SD_PLUGIN. It takes a comma separated list of the available plugins (rgma,bdii,file).

$ export GLITE_SD_PLUGIN=rgma,bdii,file

Obtaining a list of SRMs

You can search for services of a specific type using the -t option

$ glite-sd-query -t srm

Obtaining a list of services running on a host

You can see what services are running on a host by using the --host option.

$ glite-sd-query --host srm-atlas.cern.ch