Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] dynamic port number
- Date: Thu, 26 Mar 2009 14:18:12 -0500
- From: Todd Tannenbaum <tannenba@xxxxxxxxxxx>
- Subject: Re: [Condor-users] dynamic port number
Debolina Ray wrote:
Hi,
The port number of the host keeps changing as it it allocate
dynamically. IS it possible to get information about the current port
number using BirdBath and Axis?
Thanks
D
You mean the port of the schedd service, correct?
1) You can get the port of the schedd service by querying the collector
via SOAP, using the methods in condor_collector.wsdl, to retrieve the
ClassAd representing the schedd you want to talk to. One of the
attributes in this classad will contain the IP address and port of the
schedd. This is the equal of doing "condor_status -schedd -l" for a
given schedd.
2) Or, alternatively, in your condor_config can specify
SCHEDD_ADDRESS_FILE = /some/path/to/some/file
if it is not specified already. If your java client is running on the
same machine as the schedd (2-tier), then you could just look in the
file specified by SCHEDD_ADDRESS_FILE to discover the port.
3) Or alternatively, you can run the schedd on a well-known port by
specifying
SCHEDD_ARGS = -p XXX
in the condor_config file where XXX is the port you want the schedd to
use (instead of the default of the schedd picking a dynamic port).
regards,
Todd
p.s. I just entered a ticket to add documentation to the Condor Manual
about using the methods in condor_collector.wsdl. :)