| DC-API Manual |
|---|
Master-worker application developed using DC-API can be run in a Condor environment. The master program must be started by hand and it submits workunits to a Condor execution pool.
All files that generated by the application including the master and the worker programs and the DC-API library itself are placed under a directory called working directory.
To execute a DC-API application using Condor version of the DC-API library you have to set up a Condor environment and have access to it.
Master program of the application must be started on a Condor submit host so it will be able to submit workunits as Condos jobs.
Working directory of the application must be accessible by the master and the worker processes too so it should be placed on a shared filesystem (e.g. NFS) which is available for the submit and the execution hosts in the Condor pool.
To compile the application using Condor version of the DC-API
library you need an additional library libcondorapi.a which is included in the
Condor installation. This library must be linked to the application
besides the DC-API library.
Do not specify Condor's lib directory for the linker when compiling the application. For example do not use the option:
Instead, copy out the libcondorapi.a file to somewhere else
and use that directory after the linker's -L option.
| InstanceUUID | REQUIRED. Identification of running instance of the application. For CONDOR backend it can be any string not just an UUID. | ||||||||||||||||||||||||||
| WorkingDirectory | REQUIRED. Name of working directory of the application. All files that are generated by the application or the DC-API library are placed under this directory. Different applications can use the same working directory because every instance has its own subdirectory there. | ||||||||||||||||||||||||||
| ClientMessageBox |
Name of the directory in workunit's working directory
where messages are placed which are sent by the client to
the master by | ||||||||||||||||||||||||||
| MasterMessageBox |
Name of the directory in workunit's working directory
where | ||||||||||||||||||||||||||
| SubresultBox |
Name of the directory in workunit's working directory
where | ||||||||||||||||||||||||||
| SystemMessageBox |
Name of the directory in workunit's working directory
where the master and client program place management
messages for example when the master asks the client to
suspend and it sends back an acknowlegde. Default value is
| ||||||||||||||||||||||||||
| SubmitFile |
Name of the file in workunit's working directory which is
generated by the master and used as submit information for
Condor when a workunit is prepared to start. Default value
is | ||||||||||||||||||||||||||
| Executable |
Name of the executable file of the client (workunit). By
default it is the | ||||||||||||||||||||||||||
| LeaveFiles | Specifies if files, directories generated in workunit's working directory should be deleted or not after workunit ends. Zero value means delete and non-zero value means not to delete. Default value is 0. | ||||||||||||||||||||||||||
| CondorLog |
Name of the file in workunit's working directory where
Condor writes records about events happen to the Condor
job. Default value is
| ||||||||||||||||||||||||||
| CheckpointFile |
Name of file in workunit's working directory where
checkpoint information is written by the
client. | ||||||||||||||||||||||||||
| SavedOutputs |
Name of directory in workunit's working directory where
workunit's standard output is saved when it is
suspended. Deafult values is
| ||||||||||||||||||||||||||
| CondorSubmitTemplate | Name of the file which is used as template when generating Condor submit file. If not specified then a built-in template will be used. % character can be used to include variable data into the generated file. Recorgnized % instructions:
|
| << Backend-specific information | Reference >> |