3
/*___INFO__MARK_BEGIN__*/
4
/*************************************************************************
6
* The Contents of this file are made available subject to the terms of
7
* the Sun Industry Standards Source License Version 1.2
9
* Sun Microsystems Inc., March, 2001
12
* Sun Industry Standards Source License Version 1.2
13
* =================================================
14
* The contents of this file are subject to the Sun Industry Standards
15
* Source License Version 1.2 (the "License"); You may not use this file
16
* except in compliance with the License. You may obtain a copy of the
17
* License at http://gridengine.sunsource.net/Gridengine_SISSL_license.html
19
* Software provided under this License is provided on an "AS IS" basis,
20
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
21
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
22
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
23
* See the License for the specific provisions governing your rights and
24
* obligations concerning the Software.
26
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
28
* Copyright: 2001 by Sun Microsystems, Inc.
30
* All Rights Reserved.
32
************************************************************************/
33
/*___INFO__MARK_END__*/
36
# define DEFAULT_EDITOR "notepad.exe"
38
# define DEFAULT_EDITOR "vi"
41
#define MAX_SEQNUM 9999999
43
/* template/global/default/queue names */
44
#define SGE_TEMPLATE_NAME "template"
45
#define SGE_UNKNOWN_NAME "unknown"
46
#define SGE_DEFAULT_NAME "default"
47
#define SGE_GLOBAL_NAME "global"
48
#define SGE_QUEUE_NAME "queue"
49
#define SGE_HOST_NAME "host"
50
#define SGE_RQS_NAME "resource_quota"
52
/* sge object names */
53
#define SGE_OBJ_QUEUE "queue"
54
#define SGE_OBJ_CQUEUE "queue"
55
#define SGE_OBJ_HGROUP "hostgroup"
56
#define SGE_OBJ_EXECHOST "exechost"
57
#define SGE_OBJ_PE "pe"
58
#define SGE_OBJ_CKPT "ckpt"
59
#define SGE_OBJ_CALENDAR "calendar"
60
#define SGE_OBJ_USER_MAPPING "usermapping"
61
#define SGE_OBJ_RQS "resource_quota"
62
#define SGE_OBJ_PROJECT "project"
63
#define SGE_OBJ_USER "user"
64
#define SGE_OBJ_USERSET "userset"
65
#define SGE_OBJ_COMPLEXATTR "complex_attribute"
66
#define SGE_OBJ_JOB "job"
67
#define SGE_OBJ_AR "advance_reservation"
69
/* attribute names of sge objects */
70
#define SGE_ATTR_LOAD_FORMULA "load_formula"
71
#define SGE_ATTR_DYNAMICAL_LIMIT "dynamical_limit"
72
#define SGE_ATTR_LOAD_SCALING "load_scaling"
73
#define SGE_ATTR_PE_LIST "pe_list"
74
#define SGE_ATTR_HOST_LIST "hostlist"
75
#define SGE_ATTR_CKPT_LIST "ckpt_list"
76
#define SGE_ATTR_COMPLEX_VALUES "complex_values"
77
#define SGE_ATTR_LOAD_VALUES "load_values"
78
#define SGE_ATTR_PROCESSORS "processors"
79
#define SGE_ATTR_USER_LISTS "user_lists"
80
#define SGE_ATTR_XUSER_LISTS "xuser_lists"
81
#define SGE_ATTR_PROJECTS "projects"
82
#define SGE_ATTR_RQSRULES "resource_quota_rules"
83
#define SGE_ATTR_XPROJECTS "xprojects"
84
#define SGE_ATTR_USAGE_SCALING "usage_scaling"
85
#define SGE_ATTR_SEQ_NO "seq_no"
86
#define SGE_ATTR_LOAD_THRESHOLD "load_thresholds"
87
#define SGE_ATTR_SUSPEND_THRESHOLD "suspend_thresholds"
88
#define SGE_ATTR_NSUSPEND "nuspend"
89
#define SGE_ATTR_SUSPEND_INTERVAL "suspend_interval"
90
#define SGE_ATTR_PRIORITY "priority"
91
#define SGE_ATTR_MIN_CPU_INTERVAL "min_cpu_interval"
92
#define SGE_ATTR_PROCESSORS "processors"
93
#define SGE_ATTR_QTYPE "qtype"
94
#define SGE_ATTR_RERUN "rerun"
95
#define SGE_ATTR_SLOTS "slots"
96
#define SGE_ATTR_TMPDIR "tmpdir"
97
#define SGE_ATTR_SHELL "shell"
98
#define SGE_ATTR_SHELL_START_MODE "shell_start_mode"
99
#define SGE_ATTR_PROLOG "prolog"
100
#define SGE_ATTR_EPILOG "epilog"
101
#define SGE_ATTR_STARTER_METHOD "starter_method"
102
#define SGE_ATTR_SUSPEND_METHOD "suspend_method"
103
#define SGE_ATTR_RESUME_METHOD "resume_method"
104
#define SGE_ATTR_TERMINATE_METHOD "terminate_method"
105
#define SGE_ATTR_NOTIFY "notify"
106
#define SGE_ATTR_OWNER_LIST "owner_list"
107
#define SGE_ATTR_CALENDAR "calendar"
108
#define SGE_ATTR_INITIAL_STATE "initial_state"
109
#define SGE_ATTR_FSHARE "fshare"
110
#define SGE_ATTR_OTICKET "oticket"
111
#define SGE_ATTR_QNAME "qname"
112
#define SGE_ATTR_QTYPE "qtype"
113
#define SGE_ATTR_SUBORDINATE_LIST "subordinate_list"
114
#define SGE_ATTR_MAIL_LIST "mail_list"
115
#define SGE_ATTR_QUEUE_LIST "queue_list"
116
#define SGE_ATTR_HOSTNAME "hostname"
117
#define SGE_ATTR_HOSTLIST "hostlist"
118
#define SGE_ATTR_PE_NAME "pe_name"
119
#define SGE_ATTR_CKPT_NAME "ckpt_name"
120
#define SGE_ATTR_HGRP_NAME "group_name"
121
#define SGE_ATTR_RQS_NAME "name"
122
#define SGE_ATTR_CALENDAR_NAME "calendar_name"
123
#define SGE_ATTR_YEAR "year"
124
#define SGE_ATTR_WEEK "week"
125
#define SGE_ATTR_CKPT_NAME "ckpt_name"
126
#define SGE_ATTR_INTERFACE "interface"
127
#define SGE_ATTR_CKPT_COMMAND "ckpt_command"
128
#define SGE_ATTR_MIGR_COMMAND "migr_command"
129
#define SGE_ATTR_RESTART_COMMAND "restart_command"
130
#define SGE_ATTR_CLEAN_COMMAND "clean_command"
131
#define SGE_ATTR_CKPT_DIR "ckpt_dir"
132
#define SGE_ATTR_SIGNAL "signal"
133
#define SGE_ATTR_WHEN "when"
134
#define SGE_ATTR_H_FSIZE "h_fsize"
135
#define SGE_ATTR_S_FSIZE "s_fsize"
136
#define SGE_ATTR_H_RT "h_rt"
137
#define SGE_ATTR_S_RT "s_rt"
138
#define SGE_ATTR_H_CPU "h_cpu"
139
#define SGE_ATTR_S_CPU "s_cpu"
140
#define SGE_ATTR_H_DATA "h_data"
141
#define SGE_ATTR_S_DATA "s_data"
142
#define SGE_ATTR_H_STACK "h_stack"
143
#define SGE_ATTR_S_STACK "s_stack"
144
#define SGE_ATTR_H_CORE "h_core"
145
#define SGE_ATTR_S_CORE "s_core"
146
#define SGE_ATTR_H_RSS "h_rss"
147
#define SGE_ATTR_S_RSS "s_rss"
148
#define SGE_ATTR_H_VMEM "h_vmem"
149
#define SGE_ATTR_S_VMEM "s_vmem"
151
/* attribute values for certain object attributes */
152
#define SGE_ATTRVAL_ALL "all"
153
#define SGE_ATTRVAL_MIN "min"
154
#define SGE_ATTRVAL_MAX "max"
155
#define SGE_ATTRVAL_AVG "avg"
158
#define TMP_ERR_FILE_SNBU "/tmp/sge_messages"
159
#define TMP_ERR_FILE_EXECD "/tmp/execd_messages"
160
#define TMP_ERR_FILE_QMASTER "/tmp/qmaster_messages"
161
#define TMP_ERR_FILE_SCHEDD "/tmp/schedd_messages"
162
#define TMP_ERR_FILE_SHADOWD "/tmp/shadowd_messages"
163
#define TMP_ERR_FILE_QIDLD "/tmp/qidl_messages"
165
#define COMMON_DIR "common"
166
#define SPOOL_DIR "spool"
167
#define QMASTER_DIR "qmaster"
168
#define QSI_DIR "qsi"
170
#define QMASTER_PID_FILE "qmaster.pid"
171
#define EXECD_PID_FILE "execd.pid"
172
#define SCHEDD_PID_FILE "schedd.pid"
173
#define SHADOWD_PID_FILE "shadowd_%s.pid"
175
#define DEFAULT_ACCOUNT "sge"
176
#define DEFAULT_CELL "default"
177
#define SHARETREE_FILE "sharetree"
178
#define ACTIVE_DIR "active_jobs"
179
#define OSJOBID "osjobid"
180
#define ADDGRPID "addgrpid"
182
/* These files exist in the qmaster spool directory. These files may be
183
* accessed directly, since they are used after chdir() of qmaster/execd
184
* to their spool directory
186
#define EXECHOST_DIR "exec_hosts"
187
#define ADMINHOST_DIR "admin_hosts"
188
#define SUBMITHOST_DIR "submit_hosts"
189
#define ACCESS_DIR "access_lists"
190
#define CQUEUE_DIR "cqueues"
191
#define QINSTANCES_DIR "qinstances"
193
#define UME_DIR "usermapping"
194
#define HGROUP_DIR "hostgroups"
195
#define CENTRY_DIR "centry"
196
#define CKPTOBJ_DIR "ckpt"
197
#define CAL_DIR "calendars"
198
#define ZOMBIE_DIR "zombies"
199
#define RESOURCEQUOTAS_DIR "resource_quotas"
200
#define AR_DIR "advance_reservations"
202
#define MAN_FILE "managers"
203
#define OP_FILE "operators"
204
#define SEQ_NUM_FILE "jobseqnum"
205
#define ARSEQ_NUM_FILE "arseqnum"
206
#define ALIAS_FILE "host_aliases"
207
#define ACT_QMASTER_FILE "act_qmaster"
209
/* These files exist in the qmaster and execd spool area */
210
#define EXEC_DIR "job_scripts"
211
#define JOB_DIR "jobs"
212
#define ERR_FILE "messages"
213
#define LIC_INFO_FILE "lic_information"
214
#define USER_DIR "users"
215
#define USERSET_DIR "usersets"
216
#define PROJECT_DIR "projects"