-
Notifications
You must be signed in to change notification settings - Fork 33
/
default-config.yaml
371 lines (319 loc) · 11 KB
/
default-config.yaml
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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# The name of the active server database backend
# Available backends: boltdb, badger, datastore, dynamodb, elastic, mongodb
Database: boltdb
# The name of the active compute backend
# Available backends: local, htcondor, slurm, pbs, gridengine, manual, aws-batch
Compute: local
# The name of the active event writer backend(s).
# Available backends: log, boltdb, badger, datastore, dynamodb, elastic, mongodb, kafka
EventWriters:
- boltdb
- log
Logger:
# Logging levels: debug, info, error
Level: info
# Write logs to this path. If empty, logs are written to stderr.
OutputFile: ""
Server:
# Hostname of the Funnel server.
HostName: localhost
# Port used for HTTP communication and the web dashboard.
HTTPPort: 8000
# Port used for RPC communication.
RPCPort: 9090
# Require basic authentication for the server APIs using a password.
# If used, make sure to properly restrict access to the config file
# (e.g. chmod 600 funnel.config.yml)
# BasicAuth:
# - User: user1
# Password: abc123
# - User: user2
# Password: foobar
# Include a "Cache-Control: no-store" HTTP header in Get/List responses
# to prevent caching by intermediary services.
DisableHTTPCache: true
RPCClient:
# RPC server address
ServerAddress: localhost:9090
# Credentials for Basic authentication for the server APIs using a password.
# If used, make sure to properly restrict access to the config file
# (e.g. chmod 600 funnel.config.yml)
# User: funnel
# Password: abc123
# connection timeout.
Timeout: 60s
# The maximum number of times that a request will be retried for failures.
# Time between retries follows an exponential backoff starting at 5 seconds
# up to 1 minute
MaxRetries: 10
# The scheduler is used for the Manual compute backend.
Scheduler:
# How often to run a scheduler iteration.
ScheduleRate: 1s
# How many tasks to schedule in one iteration.
ScheduleChunk: 10
# How long to wait between updates before marking a node dead.
NodePingTimeout: 1m
# How long to wait for a node to start, before marking the node dead.
NodeInitTimeout: 5m
Node:
# If empty, a node ID will be automatically generated.
ID: ""
# If the node has been idle for longer than the timeout, it will shut down.
# -1 means there is no timeout. 0 means timeout immediately after the first task.
Timeout: -1s
# A Node will automatically try to detect what resources are available to it.
# Defining Resources in the Node configuration overrides this behavior.
Resources:
# CPUs available.
# Cpus: 0
# RAM available, in GB.
# RamGb: 0.0
# Disk space available, in GB.
# DiskGb: 0.0
# For low-level tuning.
# How often to sync with the Funnel server.
UpdateRate: 5s
Worker:
# Files created during processing will be written in this directory.
WorkDir: ./funnel-work-dir
# For low-level tuning.
# How often to poll for cancel signals
PollingRate: 5s
# For low-level tuning.
# How often to send stdout/err task log updates to the Funnel server.
# Setting this to 0 will result in these fields being updated a single time
# after the executor exits.
LogUpdateRate: 5s
# Max bytes to store for stdout/err in the task log.
LogTailSize: 10000 # 10 KB
# Normally the worker deletes its working directory after executing.
# This option disables that behavior.
LeaveWorkDir: false
# Limit the number of concurrent downloads/uploads
MaxParallelTransfers: 10
#-------------------------------------------------------------------------------
# Databases and/or Event Writers/Handlers
#-------------------------------------------------------------------------------
BoltDB:
# Path to the database file
Path: ./funnel-work-dir/funnel.db
DynamoDB:
# Basename to use for dynamodb tables
TableBasename: funnel
# AWS region
Region: ""
# AWS Access key ID
Key: ""
# AWS Secret Access Key
Secret: ""
Elastic:
# Prefix to use for indexes (task, events, nodes)
IndexPrefix: funnel
# URL of the elasticsearch server.
URL: http://localhost:9200
# Google Cloud Datastore task database.
Datastore:
Project: ""
# Path to account credentials file.
# Optional. If possible, credentials will be automatically discovered
# from the environment.
CredentialsFile: ""
MongoDB:
# Addrs holds the addresses for the seed servers.
Addrs:
- mongodb://localhost
# Database is the database name used within MongoDB to store funnel data.
Database: funnel
# Timeout is the amount of time to wait for a server to respond when
# first connecting and on follow up operations in the session. If
# timeout is zero, the call may block forever waiting for a connection
# to be established.
Timeout: 5m
# Username and Password inform the credentials for the initial authentication
# done on the database defined by the Database field.
Username: ""
Password: ""
Kafka:
Servers:
- ""
Topic: funnel
#-------------------------------------------------------------------------------
# Compute Backends
#-------------------------------------------------------------------------------
HTCondor:
# Turn off task state reconciler. When enabled, Funnel communicates with the HPC
# scheduler to find tasks that are stuck in a queued state or errored and
# updates the task state accordingly.
DisableReconciler: true
# ReconcileRate is how often the compute backend compares states in Funnel's backend
# to those reported by the backend
ReconcileRate: 10m
TemplateFile: ""
Template: |
universe = vanilla
getenv = True
executable = {{.Executable}}
arguments = worker run --config {{.Config}} --task-id {{.TaskId}}
log = {{.WorkDir}}/condor-event-log
error = {{.WorkDir}}/funnel-stderr
output = {{.WorkDir}}/funnel-stdout
should_transfer_files = YES
when_to_transfer_output = ON_EXIT_OR_EVICT
{{if ne .Cpus 0 -}}
{{printf "request_cpus = %d" .Cpus}}
{{- end}}
{{if ne .RamGb 0.0 -}}
{{printf "request_memory = %.0f GB" .RamGb}}
{{- end}}
{{if ne .DiskGb 0.0 -}}
{{printf "request_disk = %.0f GB" .DiskGb}}
{{- end}}
queue
PBS:
# Turn off task state reconciler. When enabled, Funnel communicates with the HPC
# scheduler to find tasks that are stuck in a queued state or errored and
# updates the task state accordingly.
DisableReconciler: true
# ReconcileRate is how often the compute backend compares states in Funnel's backend
# to those reported by the backend
ReconcileRate: 10m
TemplateFile: ""
Template: |
#!bin/bash
#PBS -N {{.TaskId}}
#PBS -o {{.WorkDir}}/funnel-stdout
#PBS -e {{.WorkDir}}/funnel-stderr
{{if ne .Cpus 0 -}}
{{printf "#PBS -l nodes=1:ppn=%d" .Cpus}}
{{- end}}
{{if ne .RamGb 0.0 -}}
{{printf "#PBS -l mem=%.0fgb" .RamGb}}
{{- end}}
{{if ne .DiskGb 0.0 -}}
{{printf "#PBS -l file=%.0fgb" .DiskGb}}
{{- end}}
{{.Executable}} worker run --config {{.Config}} --taskID {{.TaskId}}
GridEngine:
TemplateFile: ""
Template: |
#!bin/bash
#$ -N {{.TaskId}}
#$ -o {{.WorkDir}}/funnel-stdout
#$ -e {{.WorkDir}}/funnel-stderr
#$ -l nodes=1
{{if ne .Cpus 0 -}}
{{printf "#$ -pe mpi %d" .Cpus}}
{{- end}}
{{if ne .RamGb 0.0 -}}
{{printf "#$ -l h_vmem=%.0fG" .RamGb}}
{{- end}}
{{if ne .DiskGb 0.0 -}}
{{printf "#$ -l h_fsize=%.0fG" .DiskGb}}
{{- end}}
{{.Executable}} worker run --config {{.Config}} --taskID {{.TaskId}}
Slurm:
# Turn off task state reconciler. When enabled, Funnel communicates with the HPC
# scheduler to find tasks that are stuck in a queued state or errored and
# updates the task state accordingly.
DisableReconciler: true
# ReconcileRate is how often the compute backend compares states in Funnel's backend
# to those reported by the backend
ReconcileRate: 10m
TemplateFile: ""
Template: |
#!/bin/bash
#SBATCH --job-name {{.TaskId}}
#SBATCH --ntasks 1
#SBATCH --error {{.WorkDir}}/funnel-stderr
#SBATCH --output {{.WorkDir}}/funnel-stdout
{{if ne .Cpus 0 -}}
{{printf "#SBATCH --cpus-per-task %d" .Cpus}}
{{- end}}
{{if ne .RamGb 0.0 -}}
{{printf "#SBATCH --mem %.0fGB" .RamGb}}
{{- end}}
{{if ne .DiskGb 0.0 -}}
{{printf "#SBATCH --tmp %.0fGB" .DiskGb}}
{{- end}}
{{.Executable}} worker run --config {{.Config}} --taskID {{.TaskId}}
# AWSBatch describes the configuration for the AWS Batch compute backend.
AWSBatch:
# Turn off task state reconciler. When enabled, Funnel communicates with AWS Batch
# to find tasks that never started and updates task state accordingly.
DisableReconciler: true
# ReconcileRate is how often the compute backend compares states in Funnel's backend
# to those reported by AWS Batch
ReconcileRate: 10m
# JobDefinition can be either a name or the Amazon Resource Name (ARN).
JobDefinition: "funnel-job-def"
# JobQueue can be either a name or the Amazon Resource Name (ARN).
JobQueue: "funnel-job-queue"
# AWS region of the specified job queue and to create the job definition in
Region: ""
Key: ""
Secret: ""
# Kubernetes describes the configuration for the Kubernetes compute backend.
Kubernetes:
# Turn off task state reconciler. When enabled, Funnel communicates with Kubernetes
# to find tasks that are stuck in a queued state or errored and
# updates the task state accordingly.
DisableReconciler: true
# ReconcileRate is how often the compute backend compares states in Funnel's backend
# to those reported by the backend
ReconcileRate: 10m
# Kubernetes Namespace to spawn jobs within
Namespace: ""
# Batch job template. See: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.17/#job-v1-batch
Template: ""
# TemplateFile is the path to the job template.
TemplateFile: ""
#-------------------------------------------------------------------------------
# Storage
#-------------------------------------------------------------------------------
# If possible, credentials will be automatically discovered
# from the environment.
# Local file system.
LocalStorage:
# Whitelist of local directory paths which Funnel is allowed to access.
AllowedDirs:
- ./
# HTTPStorage is used to download public files on the web via a GET request.
HTTPStorage:
# Timeout for http(s) GET requests.
Timeout: 30s
AmazonS3:
Disabled: false
# The maximum number of times that a request will be retried for failures.
MaxRetries: 10
# AWS Access key ID
Key: ""
# AWS Secret Access Key
Secret: ""
# Configure storage backends for S3 providers such as Minio and/or Ceph
# GenericS3:
# - Disabled: true
# Endpoint: ""
# Key: ""
# Secret: ""
GoogleStorage:
Disabled: false
# Path to account credentials file.
# Optional. If possible, credentials will be automatically discovered
# from the environment.
CredentialsFile: ""
Swift:
Disabled: false
UserName: ""
Password: ""
AuthURL: ""
TenantName: ""
TenantID: ""
RegionName: ""
# 500 MB
ChunkSizeBytes: 500000000
FTPStorage:
Disabled: false
Timeout: 10s
User: "anonymous"
Password: "anonymous"