File: server_environment.cfg

package info (click to toggle)
ecflow 5.15.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 51,868 kB
  • sloc: cpp: 269,341; python: 22,756; sh: 3,609; perl: 770; xml: 333; f90: 204; ansic: 141; makefile: 70
file content (185 lines) | stat: -rw-r--r-- 8,704 bytes parent folder | download | duplicates (3)
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
## Copyright 2009- ECMWF.
## This software is licensed under the terms of the Apache Licence version 2.0 
## which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. 
## In applying this licence, ECMWF does not waive the privileges and immunities 
## granted to it by virtue of its status as an intergovernmental organisation 
## nor does it submit to any jurisdiction. 

#
# This file is used to define the standard defaults for ECF.
# Most are *variables* used in the server
# Some like ECF_TASK_THRESHOLD are used to debug job generation
 
# ******************************************************************
# Warning: Do *NOT* use quotes around the value part.
#   WRONG: ECF_MICRODEF = "%"
#   RIGHT: ECF_MICRODEF = %
# ******************************************************************

#  *******************************************************************
#  * ECF_HOME is typically the home/root for all '.ecf' files
#  * Can be overridden with a environment variable of the same name
#  *******************************************************************
ECF_HOME  = .


#  ******************************************************************
#  * The name of check point file. i.e defs file with state
#  * Can be overridden with a environment variable of the same name
#  * default: is <host>.<port>.ecf.check
#  * Note: Any settings will be prepended with <host>.<port>.
#  ******************************************************************
ECF_CHECK = ecf.check


#  ******************************************************************
#  * The name of the backup checkpoint file
#  * Can be overridden with a environment variable of the same name
#  * default: is <host>.<port>.ecf.check.b
#  * Note: Any settings will be prepended with <host>.<port>.
#  ******************************************************************
ECF_CHECKOLD = ecf.check.b


#  ******************************************************************
#  * The intervals within the server that the checkpoint file should 
#  * be saved.
#  * Can be overridden with a environment variable of the same name
#  ******************************************************************
ECF_CHECKINTERVAL = 120  


#  ******************************************************************
#  * Check point configuration:
#  * 
#  * Mode must be one of: 
#  *   CHECK_NEVER    /* No auto checkpointing                       */
#  *   CHECK_ON_TIME  /* At intervals specified by ECF_CHECKINTERVAL */
#  *   CHECK_ALWAYS   /* After any change                            */
#  * The checkpoint filenames can be configured using environment variables
#  ******************************************************************
ECF_CHECKMODE = CHECK_ON_TIME


#  ******************************************************************
#  * The port number, this must be consistent between client and server
#  * If we get "Address in use" then both client/server number should changed.
#  * Also if two servers are started on the same machine with same port
#  * then we will also get "Address in use" error and server will bomb out.
#  * Can be overridden with a environment variable of the same name
#  ******************************************************************
ECF_PORT = 3141


#  ******************************************************************
#  * The name of log file.
#  * default log file name is: <host>.<port>.ecf.log, i.e machine1.3141.ecf.log
#  * this is required since we can have multiple servers for a single
#  * machine, where each server will have a separate port number.
#  * Can be overridden with a environment variable of the same name
#  *
#  * Note: Any settings will be prepended with <host>.<port>.
#  ******************************************************************
ECF_LOG = ecf.log
 
 
#  ******************************************************************
#  * The period in second for which we should traverse dependencies
#  * and submit jobs. This should *RARELY* need changing, as it can affect
#  * correspondence with real time
#  ******************************************************************
ECF_INTERVAL = 60       
 

#  ******************************************************************
#  * The standard command use for job submission. 
#  * Provides DEFAULT can be overridden by user variable
#  ******************************************************************
ECF_JOB_CMD = %ECF_JOB% 1> %ECF_JOBOUT% 2>&1


#  ******************************************************************
#  * Define variable for killing any jobs. 
#  * Provides DEFAULT can be overridden by user variable
#  * The output of the command should be written to %ECF_JOB%.kill
#  * ecmwf: ${ECF_KILL:=/home/ma/emos/bin/ecfkill} %USER% %HOST% %ECF_RID% %ECF_JOB% > %ECF_JOB%.kill 2>&1
#  ******************************************************************
ECF_KILL_CMD = kill -15 %ECF_RID%  


#  ******************************************************************
#  * This is run by the SERVER 
#  * define variable of obtaining status. 
#  * Provides DEFAULT can be overridden by user variable
#  * The output of the command should be written to %ECF_JOB%.stat
#  * ecmwf: ${ECF_STAT:=trimurti} %USER% %HOST% %ECF_RID% %ECF_JOB% status> %ECF_JOB%.stat 2>&1
#  ******************************************************************
ECF_STATUS_CMD = ps --pid %ECF_RID% -f > %ECF_JOB%.stat 2>&1

#  ******************************************************************
#  * This is run by the CLIENT .  check from GUI
#  ******************************************************************
ECF_CHECK_CMD = ps --pid %ECF_RID% -f


#  ******************************************************************
#  * define variables used for url command. 
#  * Provides DEFAULT can be overriden by user variables
#  ******************************************************************
ECF_URL_CMD    = ${BROWSER:=firefox} -new-tab %ECF_URL_BASE%/%ECF_URL%
ECF_URL_BASE   = https://confluence.ecmwf.int 
ECF_URL        = display/ECFLOW/ecflow+home

#  ******************************************************************
#  * Defines the character used in ECF_ pre-processing. i.e identifies includes
#  * and is also used in variable substitution in '.ecf' scripts
#  ******************************************************************
ECF_MICRODEF = %

#  ******************************************************************
#  * The ECF_LISTS is used to identify a file, that lists the user 
#  * who can access the server via client commands. Each client command 
#  * (ignoring task based commands, i.e init, complete, event, meter, label)
#  * will encode the user name of the process initiating the client request
#  * This is then compared with list of users in the ecf.lists file.
#  * If this file is empty, then no authentication is done
#  * Each server can potionally have a different list.
#  * default: <host>.<port>.ecf.lists
#  * Note: Any settings will be prepended with <host>.<port>.
#  ******************************************************************
ECF_LISTS = ecf.lists

#  ******************************************************************
#  * Password file: Use when every user needs password authentication
#  * Each server can potionally have a different password file.
#  * default: <host>.<port>.ecf.passwd
#  * Note: Any settings will be prepended with <host>.<port>.
#  ******************************************************************
ECF_PASSWD = ecf.passwd


#  ******************************************************************
#  * Password file:, when only a few users need password, typically
#  * when a users UID on the remote client, does not match that on the server
#  * Each server can potionally have a different password file.
#  * default: <host>.<port>.ecf.custom_passwd
#  * Note: Any settings will be prepended with <host>.<port>.
#  ******************************************************************
ECF_CUSTOM_PASSWD = ecf.custom_passwd

# ***************************************************************************
# * ECF_TASK_THRESHOLD:
# * Report on an task taking longer than the threshold. !!
# *    export ECF_TASK_THRESHOLD=4000
# ***************************************************************************
ECF_TASK_THRESHOLD = 4000    

# ***************************************************************************
# * ECF_PRUNE_NODE_LOG:
# * Node log/edit history older than 30 days will be automatically
# * pruned when the server LOADS the checkpoint file.
# * To disable pruning, set to 0, or set the environment variable of the same
# * name to zero.
# ***************************************************************************
ECF_PRUNE_NODE_LOG = 30