yum to install these components:
# yum install condor-low-latency # yum install condor-job-hooks # yum install condor-job-hooks-common
condor_config file in your preferred text editor and adding the following lines:
# Startd hooks LOW_LATENCY_HOOK_FETCH_WORK = $(LIBEXEC)/hooks/hook_fetch_work.py LOW_LATENCY_HOOK_REPLY_FETCH = $(LIBEXEC)/hooks/hook_reply_fetch.py # Starter hooks LOW_LATENCY_JOB_HOOK_PREPARE_JOB = $(LIBEXEC)/hooks/hook_prepare_job.py LOW_LATENCY_JOB_HOOK_UPDATE_JOB_INFO = $(LIBEXEC)/hooks/hook_update_job_status.py LOW_LATENCY_JOB_HOOK_JOB_EXIT = $(LIBEXEC)/hooks/hook_job_exit.py STARTD_JOB_HOOK_KEYWORD = LOW_LATENCY
FetchWorkDelay setting. This setting controls how often the condor-low-latency feature will look for jobs to execute, in seconds:
FetchWorkDelay = 10 * (Activity == "Idle") STARTER_UPDATE_INTERVAL = 30
caro daemon. It can be configured by editing the file located at /etc/opt/grid/carod.conf. This file controls the active broker other options such as the exchange name, message queue and IP information.
/etc/opt/grid/job-hooks.conf. This file specifies the port and IP information that the job hooks can use to contact the caro daemon. The IP and port information in this file must match the information used in the carod configuration file.
# service qpidd start Starting qpidd daemon: [ OK ]
# service condor-low-latency start Starting condor-low-latency service: [ OK ]
condor_submit command with the -dump option:
$ condor_submitThis command would produce a file namedmyjob.submit-dumpoutput_file
output_file. This file contains the information contained in the myjob.submit in a format suitable for placing directly into the the application header of a message. This method only works when queuing a single message at a time.
myjob.submit should only have one queue command with no arguments. For example:
executable = /bin/echo arguments = "Hello there!" queue
reply-to field set, or the jobs will not run. They must also include a unique message ID.