This repository has been archived by the owner on Jan 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
94 lines (72 loc) · 2.86 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Condor (>= 7.0.2-4) will need to be configured in order to use these job
hooks (ie the low-latency feature). To configure condor, add the following
lines to your configuration:
# 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 = ifThenElse(State == "Claimed" && Activity == "Idle", 0, 10)
STARTER_UPDATE_INTERVAL = 30
CAROD = $(SBIN)/carod
CAROD_LOG = $(LOG)/CaroLog
MAX_CAROD_LOG = 1000000
CAROD_BROKER_IP = <broker ip>
CAROD_BROKER_PORT = 5672
CAROD_BROKER_QUEUE = grid
CAROD_IP = 127.0.0.1
CAROD_PORT = 10000
CAROD_QUEUED_CONNECTIONS = 5
CAROD_LEASE_TIME = 35
CAROD_LEASE_CHECK_INTERVAL = 30
DAEMON_LIST = $(DAEMON_LIST), CAROD
The AMQP translation daemon (carod) will first look for its configuration
in condor's configuration files. The following parameters can be placed in
a condor configuration file to configure carod:
CAROD:
Type: String
Desc: The carod binary
CAROD_LOG:
Type: String
Desc: The location of the file carod should use for logging
MAX_CAROD_LOG:
Type: Integer
Desc: The maximum size of the carod log file before being rotated
CAROD_BROKER_IP:
Type: IP Address
Desc: The IP address of the broker that carod should talk to
CAROD_BROKER_PORT:
Type: Integer
Desc: The port on $(CAROD_BROKER_IP) the broker is listening to
CAROD_BROKER_QUEUE:
Type: String
Desc: The queue on the broker for condor jobs
CAROD_IP:
Type: IP Address
Desc: The IP address of the interface carod use for connections
CAROD_PORT:
Type: Integer
Desc: The port carod should use to listen for connections
CAROD_QUEUED_CONNECTIONS:
Type: Integer
Desc: The number of allowed outstanding connections
CAROD_LEASE_TIME:
Type: Integer
Desc: The maximum amount of time a job is allowed to run without providing
an update. This must be larger than what is set for
STARTER_UPDATE_INTERVAL.
CAROD_LEASE_CHECK_INTERVAL:
Type: Integer
Desc: How often to check for lease expiration
If the configuration is not found in condor's configuration files, then
carod will look in /etc/condor/carod.conf.
Then edit the job hook configuration file to communicate with carod.
See /usr/share/doc/condor-job-hooks-<ver>/INSTALL for details.
Once the configuration is complete, restart condor.
To use the low-latency feature, configure condor as mention aboved, ensure
qpid is running, and start carod. To submit jobs, send AMQP messages to the
AMQP queue in the configuration file, with the classad information stored
as headers in the application_headers field.