File: qrsub.1

package info (click to toggle)
gridengine 8.1.9%2Bdfsg-13.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 57,140 kB
  • sloc: ansic: 432,689; java: 87,068; cpp: 31,958; sh: 29,445; jsp: 7,757; perl: 6,336; xml: 5,828; makefile: 4,704; csh: 3,934; ruby: 2,221; tcl: 1,676; lisp: 669; yacc: 519; python: 503; lex: 361; javascript: 200
file content (319 lines) | stat: -rw-r--r-- 10,044 bytes parent folder | download | duplicates (6)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
'\" t
.\"___INFO__MARK_BEGIN__
.\"
.\" Copyright: 2004 by Sun Microsystems, Inc.
.\"
.\"___INFO__MARK_END__
.\"
.\" Some handy macro definitions [from Tom Christensen's man(1) manual page].
.\"
.de SB		\" small and bold
.if !"\\$1"" \\s-2\\fB\&\\$1\\s0\\fR\\$2 \\$3 \\$4 \\$5
..
.\"
.de T		\" switch to typewriter font
.ft CW		\" probably want CW if you don't have TA font
..
.\"
.de TY		\" put $1 in typewriter font
.if t .T
.if n ``\c
\\$1\c
.if t .ft P
.if n \&''\c
\\$2
..
.\" "
.de M		\" man page reference
\\fI\\$1\\fR\\|(\\$2)\\$3
..
.TH QRSUB 1 "2011-05-20" "xxRELxx" "xxQS_NAMExx User Commands"
.SH NAME
qrsub   \- Submit an Advance Reservation (AR) to xxQS_NAMExx.
.\"
.\"
.SH SYNTAX
.B qrsub
.RB [ \-a
.IR date_time ]
.RB [ \-A
.IR account_string ]
.RB [ \-ckpt
.IR ckpt_name ]
.RB [ \-d
.IR time ]
.RB [ \-e
.IR date_time ]
.RB [ \-he
.IR yes | no ]
.RB [ \-help ]
.RB [ \-l
.IR resource_list ]
.RB [ \-now ]
.RB [ \-M
.IR user [@ host ],...]
.RB [ \-N
.IR ar_name ]
.RB [ \-w
.IR e|v ]
.RB [ \-pe
.IR "pe_name slot_range" ]
.RB [ \-q
.IR wc_queue_list ]
.RB [ \-u
.IR wc_user_list ]
.\"
.SH DESCRIPTION

.I Qrsub
provides a means for operators, managers or users referenced in the ACL (see
.M access_list 5 )
"\fBarusers\fP" to create an Advance Reservation (AR) in the
xxQS_NAMExx queuing system. ARs allow reserving particular consumable resources for
future use. These reserved resources are only available for jobs requesting
the AR, and the scheduler ensures the availability of the resources when the
start time is reached. Jobs requesting the AR can only use the reserved consumable
resources.
.PP
During AR submit time the xxQS_NAMExx queuing system selects the best suited 
queues for the AR request and then reserves the desired amount of resources.
For a reservation, all queues that are not in orphaned state are considered as
suited. Only if the AR request can be fulfilled will the AR be granted.
.PP
ARs will be deleted either automatically when the end time is reached, or
manually using
.M qrdel 1 .
In both cases, first all jobs requesting the AR will be removed and
then the AR itself. Already granted ARs can be shown with
.M qrstat 1 .
.sp 1
Note: To make AR behavior predictable, it is necessary to have reserved
resources available at the time of AR start. This is done by keeping jobs with
a unlimited runtime limit separated from ARs, and not considering resources used by
such jobs for reservation.
.sp 1
Note: Resource Quotas are not considered for AR queue selection, nor for
jobs requesting an AR.
.PP
When an AR was successfully added to the xxQS_NAMExx queuing system \fIqrsub\fP
returns a unique integer ID referring to the the newly created AR. The highest
AR ID is 9999999. If the highest ID is reached, a wraparound happens and the
next unused ID, starting with 1, will be used.
.PP
For \fIqrsub\fP, the administrator and the user may define default request files 
(analogous to xxQS_NAMExx_request for qsub), which can contain any of 
the possible command line options. 
.br
A cluster wide default request file is optional.
If such a default request file is used, it must be placed under 
.br
$xxQS_NAME_Sxx_ROOT/$xxQS_NAME_Sxx_CELL/common/sge_ar_request (global defaults file).
.br
A user private default request file is optional. If it is used, it must be
placed under 
.br
$HOME/.sge_ar_request (user private defaults file).
.\"
.\"
.SH OPTIONS
.\"
.IP "\fB\-a\fP \fIdate_time\fP"
Defines the activation (start) date and time of an AR.
The option is not mandatory. If omitted, the current date_time is
assumed. Either a duration or end \fIdate_time\fP must also be specified. For details
of the \fIdate_time\fP definition please see
.M sge_types 5 .
.\"
.IP "\fB\-A\fP \fIaccount_string\fP"
Identifies the account to which the resource reservation of the AR should be
charged. For "\fIaccount_string\fP" value
details please see the "\fBname\fP" definition in 
.M sge_types 5 .
In the absence of this parameter xxQS_NAMExx 
will place the default account string "xxqs_name_sxx" in the accounting record
of the AR.
.\"
.IP "\fB\-ckpt\fP \fIckpt_name\fP"
Selects the checkpointing environment (see
.M checkpoint 5 )
the AR jobs may request. Using this option guarantees that only queues
providing this checkpoint environment will be reserved.
.\"
.IP "\fB\-d\fP \fIdate_time\fP"
Defines the duration of the AR. The use of "\fB\-d\fP" is optional if
"\fB\-e\fP \fIdate_time\fP" is requested.
For details of the "\fIdate_time\fP" definition please see
.M sge_types 5 .
.\"
.IP "\fB\-e\fP \fIdate_time\fP"
Defines the end date and time of an AR. The use of "\fB\-e date_time\fP" is optional if
"\fB\-d time\fP" is requested.
For details about "\fBdate_time\fP" definition please see
.M sge_types 5 .
.\"
.IP "\fB\-he y\fP[\fBes\fP]|\fBn\fP[\fBo\fP]"
Specifies the behavior when the AR goes into an error state. The AR goes into
error state when a reserved host goes into unknown state, a queue error happens,
or when a queue is disabled or suspended.
.sp 1
A hard error, "\fB\-he yes\fP", means as long as the AR is in error state no jobs
using the AR will be scheduled. 
If soft error, "\fB\-he no\fP", is specified the AR stays usable with the
remaining resources.
.br
By default soft error handling is used.
.br

.\"
.IP "\fB\-help\fP"
Prints a list of all options.
.\"
.IP "\fB\-l\fP \fIresource\fP\fB=\fP\fIvalue\fP\fB,\fP..."
Creates an AR in a xxQS_NAMExx queue, providing the given resource request list.
.M complex 5
describes how a list of available resources and their
associated valid value specifiers can be obtained.
.br
There may be multiple \fB\-l\fP switches in a single
command.
.\"
.IP "\fB\-m b\fP|\fBe\fP|\fBa\fP|\fBn\fP"
Defines or redefines under which circumstances mail is to be sent
to the AR owner or to the users defined with the
\fB\-M\fP option described below. The option arguments
have the following meaning:
.sp 1
.nf
.ta \w'|b|  'u
\fBb\fP     Mail is sent at the beginning of the AR
\fBe\fP     Mail is sent at the end of the AR
\fBa\fP     Mail is sent when the AR goes into error state
\fBn\fP     No mail is sent, default for \fIqrsub\fP
.fi
.\"
.IP "\fB\-M\fP \fIuser\fP[\fB@\fP\fIhost\fP]\fB,\fP..."
Defines or redefines the list of users to which the qmaster
sends mail.
.\"
.IP "\fB\-masterq\fP \fIwc_queue_list\fP"
Only meaningful for a parallel AR request together with the \-pe option.
.sp 1
This option is used to reserve the proper queues to match this request if it
would be requested by a qsub.
A more detailed description of \fIwc_queue_list\fP 
can be found in
.M sge_types 5 .
.\"
.IP "\fB\-now y\fP[\fBes\fP]|\fBn\fP[\fBo\fP]"                        
This option affects the queue selection for reservation.
.br
With the "\fB\-now y\fP" option, only queues with the qtype "INTERACTIVE"
assigned will be considered for reservation.
"\fB\-now n\fP" is the default for \fIqrsub\fP.
.\"
.IP "\fB\-N\fP \fIname\fP"
.\" fixme: job/AR name, not name
The name of the AR. The name, if requested, must conform to "\fIname\fP" as
defined in 
.M sge_types 5 .
Invalid names will be denied at submit time.
.\"
.IP "\fB\-w e\fP|\fBv\fP"
Specifies the validation level applied to the AR request.
.sp 1
The specifiers e and v define the following validation modes:
.sp 1
.nf
.ta \w'|b|  'u
\fBv\fP	verify \- does not submit the AR but prints
	an extensive validation report
\fBe\fP	error \- rejects request if requirements cannot
	be fulfilled, default for \fIqrsub\fP
.fi
.\"
.IP "\fB\-pe\fP \fIparallel_env n\fP[\fB\-\fP[\fIm\fP]]|[\fB\-\fP]\fIm\fP,..."
Parallel programming environment (PE) to select for the AR queue reservation. 
Please see the details of a PE in
.M sge_pe 5 .
.\"
.IP "\fB\-q\fP \fIwc_queue_list\fP"
Defines or redefines a list of cluster queues, queue domains or queue
instances that may be reserved by the AR. Please find a description
of \fIwc_queue_list\fP in
.M sge_types 5 .
This parameter has all the properties of a resource request and
will be merged with requirements derived from the \fB\-l\fP option
described above.
.\"
.IP "\fB\-u\fP [\fIusername\fP|\fP\fB@\fP\fIaccess_list\fP],..."
Defines the users allowed to submit jobs requesting the AR. The access is
specified by a comma-separated list containing UNIX users or ACLs (see
.M access_list 5 ).
An ACL is differentiated from a UNIX user name by
prefixing the ACL name with an '@' sign.
.br
By default only the AR owner is allowed to submit jobs requesting the AR.
.sp 1
Note: Only queues where all users specified in
the list have access are considered for reservation (see
.M queue_conf 5 ).
.\"
.SH "ENVIRONMENT VARIABLES"
.\" 
.IP "\fBxxQS_NAME_Sxx_ROOT\fP" 1.5i
Specifies the location of the xxQS_NAMExx standard configuration
files.
.\"
.IP "\fBxxQS_NAME_Sxx_CELL\fP" 1.5i
If set, specifies the default xxQS_NAMExx cell. To address a xxQS_NAMExx
cell, \fIqsub\fP, \fIqsh\fP, \fIqlogin\fP or \fIqalter\fP use (in the order of precedence):
.sp 1
.RS
.RS
The name of the cell specified in the environment 
variable xxQS_NAME_Sxx_CELL, if it is set.
.sp 1
The name of the default cell, i.e. \fBdefault\fP.
.RE
.RE
.\"
.IP "\fBxxQS_NAME_Sxx_DEBUG_LEVEL\fP" 1.5i
If set, specifies that debug information
should be written to stderr. In addition the level of
detail in which debug information is generated is defined.
.\"
.IP "\fBxxQS_NAME_Sxx_QMASTER_PORT\fP" 1.5i
If set, specifies the TCP port on which
.M xxqs_name_sxx_qmaster 8
is expected to listen for communication requests.
Most installations will use a services map entry for the
service "sge_qmaster" instead of defining the port.
.\"
.\"
.SH FILES
.nf
.ta \w'$xxQS_NAME_Sxx_ROOT/     'u
\fI$xxQS_NAME_Sxx_ROOT/$xxQS_NAME_Sxx_CELL/common/sge_ar_request\fR
	global defaults file
\fI$HOME/.sge_ar_request\fR
	user private defaults file
.fi
.\"
.\"
.SH "SEE ALSO"
.M qrdel 1 ,
.M qrstat 1 ,
.M qsub 1 ,
.M sge_types 5 ,
.M checkpoint 5 ,
.M complex 5 ,
.M queue_conf 5 ,
.M sge_pe 5 ,
.M sge_resource_quota 5 .
.\"
.\"
.SH "COPYRIGHT"
See
.M xxqs_name_sxx_intro 1
for a full statement of rights and permissions.