20602: Add MaxQueuedRequests config.
[arvados.git] / lib / config / config.default.yml
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 # Do not use this file for site configuration. Create
6 # /etc/arvados/config.yml instead.
7 #
8 # The order of precedence (highest to lowest):
9 # 1. Legacy component-specific config files (deprecated)
10 # 2. /etc/arvados/config.yml
11 # 3. config.default.yml
12
13 Clusters:
14   xxxxx:
15     # Token used internally by Arvados components to authenticate to
16     # one another. Use a string of at least 50 random alphanumerics.
17     SystemRootToken: ""
18
19     # Token to be included in all healthcheck requests. Disabled by default.
20     # Server expects request header of the format "Authorization: Bearer xxx"
21     ManagementToken: ""
22
23     Services:
24
25       # Each of the service sections below specifies InternalURLs
26       # (each with optional ListenURL) and ExternalURL.
27       #
28       # InternalURLs specify how other Arvados service processes will
29       # connect to the service. Typically these use internal hostnames
30       # and high port numbers. Example:
31       #
32       # InternalURLs:
33       #   "http://host1.internal.example:12345": {}
34       #   "http://host2.internal.example:12345": {}
35       #
36       # ListenURL specifies the address and port the service process's
37       # HTTP server should listen on, if different from the
38       # InternalURL itself. Example, using an intermediate TLS proxy:
39       #
40       # InternalURLs:
41       #   "https://host1.internal.example":
42       #     ListenURL: "http://10.0.0.7:12345"
43       #
44       # When there are multiple InternalURLs configured, the service
45       # process will try listening on each InternalURLs (using
46       # ListenURL if provided) until one works. If you use a ListenURL
47       # like "0.0.0.0" which can be bound on any machine, use an
48       # environment variable
49       # ARVADOS_SERVICE_INTERNAL_URL=http://host1.internal.example to
50       # control which entry to use.
51       #
52       # ExternalURL specifies how applications/clients will connect to
53       # the service, regardless of whether they are inside or outside
54       # the cluster. Example:
55       #
56       # ExternalURL: "https://keep.zzzzz.example.com/"
57       #
58       # To avoid routing internal traffic through external networks,
59       # use split-horizon DNS for ExternalURL host names: inside the
60       # cluster's private network "host.zzzzz.example.com" resolves to
61       # the host's private IP address, while outside the cluster
62       # "host.zzzzz.example.com" resolves to the host's public IP
63       # address (or its external gateway or load balancer).
64
65       RailsAPI:
66         InternalURLs: {SAMPLE: {ListenURL: ""}}
67         ExternalURL: ""
68       Controller:
69         InternalURLs: {SAMPLE: {ListenURL: ""}}
70         ExternalURL: ""
71       Websocket:
72         InternalURLs: {SAMPLE: {ListenURL: ""}}
73         ExternalURL: ""
74       Keepbalance:
75         InternalURLs: {SAMPLE: {ListenURL: ""}}
76         ExternalURL: ""
77       GitHTTP:
78         InternalURLs: {SAMPLE: {ListenURL: ""}}
79         ExternalURL: ""
80       GitSSH:
81         InternalURLs: {SAMPLE: {ListenURL: ""}}
82         ExternalURL: ""
83       DispatchCloud:
84         InternalURLs: {SAMPLE: {ListenURL: ""}}
85         ExternalURL: ""
86       DispatchLSF:
87         InternalURLs: {SAMPLE: {ListenURL: ""}}
88         ExternalURL: ""
89       DispatchSLURM:
90         InternalURLs: {SAMPLE: {ListenURL: ""}}
91         ExternalURL: ""
92       Keepproxy:
93         InternalURLs: {SAMPLE: {ListenURL: ""}}
94         ExternalURL: ""
95       WebDAV:
96         InternalURLs: {SAMPLE: {ListenURL: ""}}
97         # Base URL for Workbench inline preview.  If blank, use
98         # WebDAVDownload instead, and disable inline preview.
99         # If both are empty, downloading collections from workbench
100         # will be impossible.
101         #
102         # It is important to properly configure the download service
103         # to migitate cross-site-scripting (XSS) attacks.  A HTML page
104         # can be stored in collection.  If an attacker causes a victim
105         # to visit that page through Workbench, it will be rendered by
106         # the browser.  If all collections are served at the same
107         # domain, the browser will consider collections as coming from
108         # the same origin and having access to the same browsing data,
109         # enabling malicious Javascript on that page to access Arvados
110         # on behalf of the victim.
111         #
112         # This is mitigating by having separate domains for each
113         # collection, or limiting preview to circumstances where the
114         # collection is not accessed with the user's regular
115         # full-access token.
116         #
117         # Serve preview links using uuid or pdh in subdomain
118         # (requires wildcard DNS and TLS certificate)
119         #   https://*.collections.uuid_prefix.arvadosapi.com
120         #
121         # Serve preview links using uuid or pdh in main domain
122         # (requires wildcard DNS and TLS certificate)
123         #   https://*--collections.uuid_prefix.arvadosapi.com
124         #
125         # Serve preview links by setting uuid or pdh in the path.
126         # This configuration only allows previews of public data or
127         # collection-sharing links, because these use the anonymous
128         # user token or the token is already embedded in the URL.
129         # Other data must be handled as downloads via WebDAVDownload:
130         #   https://collections.uuid_prefix.arvadosapi.com
131         #
132         ExternalURL: ""
133
134       WebDAVDownload:
135         InternalURLs: {SAMPLE: {ListenURL: ""}}
136         # Base URL for download links. If blank, serve links to WebDAV
137         # with disposition=attachment query param.  Unlike preview links,
138         # browsers do not render attachments, so there is no risk of XSS.
139         #
140         # If WebDAVDownload is blank, and WebDAV uses a
141         # single-origin form, then Workbench will show an error page
142         #
143         # Serve download links by setting uuid or pdh in the path:
144         #   https://download.uuid_prefix.arvadosapi.com
145         #
146         ExternalURL: ""
147
148       Keepstore:
149         InternalURLs:
150           SAMPLE:
151             ListenURL: ""
152             # Rendezvous is normally empty/omitted. When changing the
153             # URL of a Keepstore service, Rendezvous should be set to
154             # the old URL (with trailing slash omitted) to preserve
155             # rendezvous ordering.
156             Rendezvous: ""
157         ExternalURL: ""
158       Composer:
159         InternalURLs: {SAMPLE: {ListenURL: ""}}
160         ExternalURL: ""
161       WebShell:
162         InternalURLs: {SAMPLE: {ListenURL: ""}}
163         # ShellInABox service endpoint URL for a given VM.  If empty, do not
164         # offer web shell logins.
165         #
166         # E.g., using a path-based proxy server to forward connections to shell hosts:
167         # https://webshell.uuid_prefix.arvadosapi.com
168         #
169         # E.g., using a name-based proxy server to forward connections to shell hosts:
170         # https://*.webshell.uuid_prefix.arvadosapi.com
171         ExternalURL: ""
172       Workbench1:
173         InternalURLs: {SAMPLE: {ListenURL: ""}}
174         ExternalURL: ""
175       Workbench2:
176         InternalURLs: {SAMPLE: {ListenURL: ""}}
177         ExternalURL: ""
178       Health:
179         InternalURLs: {SAMPLE: {ListenURL: ""}}
180         ExternalURL: ""
181
182     PostgreSQL:
183       # max concurrent connections per arvados server daemon
184       ConnectionPool: 32
185       Connection:
186         # All parameters here are passed to the PG client library in a connection string;
187         # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
188         host: ""
189         port: ""
190         user: ""
191         password: ""
192         dbname: ""
193         SAMPLE: ""
194     API:
195       # Limits for how long a client token created by regular users can be valid,
196       # and also is used as a default expiration policy when no expiration date is
197       # specified.
198       # Default value zero means token expirations don't get clamped and no
199       # default expiration is set.
200       MaxTokenLifetime: 0s
201
202       # Maximum size (in bytes) allowed for a single API request.  This
203       # limit is published in the discovery document for use by clients.
204       # Note: You must separately configure the upstream web server or
205       # proxy to actually enforce the desired maximum request size on the
206       # server side.
207       MaxRequestSize: 134217728
208
209       # Limit the number of bytes read from the database during an index
210       # request (by retrieving and returning fewer rows than would
211       # normally be returned in a single response).
212       # Note 1: This setting never reduces the number of returned rows to
213       # zero, no matter how big the first data row is.
214       # Note 2: Currently, this is only checked against a specific set of
215       # columns that tend to get large (collections.manifest_text,
216       # containers.mounts, workflows.definition). Other fields (e.g.,
217       # "properties" hashes) are not counted against this limit.
218       MaxIndexDatabaseRead: 134217728
219
220       # Maximum number of items to return when responding to a APIs that
221       # can return partial result sets using limit and offset parameters
222       # (e.g., *.index, groups.contents). If a request specifies a "limit"
223       # parameter higher than this value, this value is used instead.
224       MaxItemsPerResponse: 1000
225
226       # Maximum number of concurrent requests to process concurrently
227       # in a single service process, or 0 for no limit.
228       MaxConcurrentRequests: 64
229
230       # Maximum number of incoming requests to hold in a priority
231       # queue waiting for one of the MaxConcurrentRequests slots to be
232       # free. When the queue is longer than this, respond 503 to the
233       # lowest priority request.
234       #
235       # If MaxQueuedRequests is 0, respond 503 immediately to
236       # additional requests while at the MaxConcurrentRequests limit.
237       MaxQueuedRequests: 64
238
239       # Fraction of MaxConcurrentRequests that can be "log create"
240       # messages at any given time.  This is to prevent logging
241       # updates from crowding out more important requests.
242       LogCreateRequestFraction: 0.50
243
244       # Maximum number of 64MiB memory buffers per Keepstore server process, or
245       # 0 for no limit. When this limit is reached, up to
246       # (MaxConcurrentRequests - MaxKeepBlobBuffers) HTTP requests requiring
247       # buffers (like GET and PUT) will wait for buffer space to be released.
248       # Any HTTP requests beyond MaxConcurrentRequests will receive an
249       # immediate 503 response.
250       #
251       # MaxKeepBlobBuffers should be set such that (MaxKeepBlobBuffers * 64MiB
252       # * 1.1) fits comfortably in memory. On a host dedicated to running
253       # Keepstore, divide total memory by 88MiB to suggest a suitable value.
254       # For example, if grep MemTotal /proc/meminfo reports MemTotal: 7125440
255       # kB, compute 7125440 / (88 * 1024)=79 and set MaxKeepBlobBuffers: 79
256       MaxKeepBlobBuffers: 128
257
258       # API methods to disable. Disabled methods are not listed in the
259       # discovery document, and respond 404 to all requests.
260       # Example: {"jobs.create":{}, "pipeline_instances.create": {}}
261       DisabledAPIs: {}
262
263       # Interval (seconds) between asynchronous permission view updates. Any
264       # permission-updating API called with the 'async' parameter schedules a an
265       # update on the permission view in the future, if not already scheduled.
266       AsyncPermissionsUpdateInterval: 20s
267
268       # Maximum number of concurrent outgoing requests to make while
269       # serving a single incoming multi-cluster (federated) request.
270       MaxRequestAmplification: 4
271
272       # Maximum wall clock time to spend handling an incoming request.
273       RequestTimeout: 5m
274
275       # Websocket will send a periodic empty event after 'SendTimeout'
276       # if there is no other activity to maintain the connection /
277       # detect dropped connections.
278       SendTimeout: 60s
279
280       WebsocketClientEventQueue: 64
281       WebsocketServerEventQueue: 4
282
283       # Timeout on requests to internal Keep services.
284       KeepServiceRequestTimeout: 15s
285
286       # Vocabulary file path, local to the node running the controller.
287       # This JSON file should contain the description of what's allowed
288       # as object's metadata. Its format is described at:
289       # https://doc.arvados.org/admin/metadata-vocabulary.html
290       VocabularyPath: ""
291
292       # If true, a project must have a non-empty description field in
293       # order to be frozen.
294       FreezeProjectRequiresDescription: false
295
296       # Project properties that must have non-empty values in order to
297       # freeze a project. Example: "property_name": {}
298       FreezeProjectRequiresProperties:
299         SAMPLE: {}
300
301       # If true, only an admin user can un-freeze a project. If false,
302       # any user with "manage" permission can un-freeze.
303       UnfreezeProjectRequiresAdmin: false
304
305       # (Experimental) Use row-level locking on update API calls.
306       LockBeforeUpdate: false
307
308     Users:
309       # Config parameters to automatically setup new users.  If enabled,
310       # this users will be able to self-activate.  Enable this if you want
311       # to run an open instance where anyone can create an account and use
312       # the system without requiring manual approval.
313       #
314       # The params AutoSetupNewUsersWith* are meaningful only when AutoSetupNewUsers is turned on.
315       # AutoSetupUsernameBlacklist is a list of usernames to be blacklisted for auto setup.
316       AutoSetupNewUsers: false
317       AutoSetupNewUsersWithVmUUID: ""
318       AutoSetupNewUsersWithRepository: false
319       AutoSetupUsernameBlacklist:
320         arvados: {}
321         git: {}
322         gitolite: {}
323         gitolite-admin: {}
324         root: {}
325         syslog: {}
326         SAMPLE: {}
327
328       # When NewUsersAreActive is set to true, new users will be active
329       # immediately.  This skips the "self-activate" step which enforces
330       # user agreements.  Should only be enabled for development.
331       NewUsersAreActive: false
332
333       # Newly activated users (whether set up by an admin or via
334       # AutoSetupNewUsers) immediately become visible to other active
335       # users.
336       #
337       # On a multi-tenant cluster, where the intent is for users to be
338       # invisible to one another unless they have been added to the
339       # same group(s) via Workbench admin interface, change this to
340       # false.
341       ActivatedUsersAreVisibleToOthers: true
342
343       # The e-mail address of the user you would like to become marked as an admin
344       # user on their first login.
345       AutoAdminUserWithEmail: ""
346
347       # If AutoAdminFirstUser is set to true, the first user to log in when no
348       # other admin users exist will automatically become an admin user.
349       AutoAdminFirstUser: false
350
351       # Email address to notify whenever a user creates a profile for the
352       # first time
353       UserProfileNotificationAddress: ""
354       AdminNotifierEmailFrom: arvados@example.com
355       EmailSubjectPrefix: "[ARVADOS] "
356       UserNotifierEmailFrom: arvados@example.com
357       UserNotifierEmailBcc: {}
358       NewUserNotificationRecipients: {}
359       NewInactiveUserNotificationRecipients: {}
360
361       # Set AnonymousUserToken to enable anonymous user access. Populate this
362       # field with a random string at least 50 characters long.
363       AnonymousUserToken: ""
364
365       # If a new user has an alternate email address (local@domain)
366       # with the domain given here, its local part becomes the new
367       # user's default username. Otherwise, the user's primary email
368       # address is used.
369       PreferDomainForUsername: ""
370
371       UserSetupMailText: |
372         <% if not @user.full_name.empty? -%>
373         <%= @user.full_name %>,
374         <% else -%>
375         Hi there,
376         <% end -%>
377
378         Your Arvados account has been set up.  You can log in at
379
380         <%= Rails.configuration.Services.Workbench1.ExternalURL %>
381
382         Thanks,
383         Your Arvados administrator.
384
385       # If RoleGroupsVisibleToAll is true, all role groups are visible
386       # to all active users.
387       #
388       # If false, users must be granted permission to role groups in
389       # order to see them. This is more appropriate for a multi-tenant
390       # cluster.
391       RoleGroupsVisibleToAll: true
392
393       # If CanCreateRoleGroups is true, regular (non-admin) users can
394       # create new role groups.
395       #
396       # If false, only admins can create new role groups.
397       CanCreateRoleGroups: true
398
399       # During each period, a log entry with event_type="activity"
400       # will be recorded for each user who is active during that
401       # period. The object_uuid attribute will indicate the user's
402       # UUID.
403       #
404       # Multiple log entries for the same user may be generated during
405       # a period if there are multiple controller processes or a
406       # controller process is restarted.
407       #
408       # Use 0 to disable activity logging.
409       ActivityLoggingPeriod: 24h
410
411     AuditLogs:
412       # Time to keep audit logs, in seconds. (An audit log is a row added
413       # to the "logs" table in the PostgreSQL database each time an
414       # Arvados object is created, modified, or deleted.)
415       #
416       # Currently, websocket event notifications rely on audit logs, so
417       # this should not be set lower than 300 (5 minutes).
418       MaxAge: 336h
419
420       # Maximum number of log rows to delete in a single SQL transaction.
421       #
422       # If MaxDeleteBatch is 0, log entries will never be
423       # deleted by Arvados. Cleanup can be done by an external process
424       # without affecting any Arvados system processes, as long as very
425       # recent (<5 minutes old) logs are not deleted.
426       #
427       # 100000 is a reasonable batch size for most sites.
428       MaxDeleteBatch: 0
429
430       # Attributes to suppress in events and audit logs.  Notably,
431       # specifying {"manifest_text": {}} here typically makes the database
432       # smaller and faster.
433       #
434       # Warning: Using any non-empty value here can have undesirable side
435       # effects for any client or component that relies on event logs.
436       # Use at your own risk.
437       UnloggedAttributes: {}
438
439     SystemLogs:
440
441       # Logging threshold: panic, fatal, error, warn, info, debug, or
442       # trace
443       LogLevel: info
444
445       # Logging format: json or text
446       Format: json
447
448       # Maximum characters of (JSON-encoded) query parameters to include
449       # in each request log entry. When params exceed this size, they will
450       # be JSON-encoded, truncated to this size, and logged as
451       # params_truncated.
452       MaxRequestLogParamsSize: 2000
453
454       # In all services except RailsAPI, periodically check whether
455       # the incoming HTTP request queue is nearly full (see
456       # MaxConcurrentRequests) and, if so, write a snapshot of the
457       # request queue to {service}-requests.json in the specified
458       # directory.
459       #
460       # Leave blank to disable.
461       RequestQueueDumpDirectory: ""
462
463     Collections:
464
465       # Enable access controls for data stored in Keep. This should
466       # always be set to true on a production cluster.
467       BlobSigning: true
468
469       # BlobSigningKey is a string of alphanumeric characters used to
470       # generate permission signatures for Keep locators. It must be
471       # identical to the permission key given to Keep. IMPORTANT: This
472       # is a site secret. It should be at least 50 characters.
473       #
474       # Modifying BlobSigningKey will invalidate all existing
475       # signatures, which can cause programs to fail (e.g., arv-put,
476       # arv-get, and Crunch jobs).  To avoid errors, rotate keys only
477       # when no such processes are running.
478       BlobSigningKey: ""
479
480       # Enable garbage collection of unreferenced blobs in Keep.
481       BlobTrash: true
482
483       # Time to leave unreferenced blobs in "trashed" state before
484       # deleting them, or 0 to skip the "trashed" state entirely and
485       # delete unreferenced blobs.
486       #
487       # If you use any Amazon S3 buckets as storage volumes, this
488       # must be at least 24h to avoid occasional data loss.
489       BlobTrashLifetime: 336h
490
491       # How often to check for (and delete) trashed blocks whose
492       # BlobTrashLifetime has expired.
493       BlobTrashCheckInterval: 24h
494
495       # Maximum number of concurrent "trash blob" and "delete trashed
496       # blob" operations conducted by a single keepstore process. Each
497       # of these can be set to 0 to disable the respective operation.
498       #
499       # If BlobTrashLifetime is zero, "trash" and "delete trash"
500       # happen at once, so only the lower of these two values is used.
501       BlobTrashConcurrency: 4
502       BlobDeleteConcurrency: 4
503
504       # Maximum number of concurrent "create additional replica of
505       # existing blob" operations conducted by a single keepstore
506       # process.
507       BlobReplicateConcurrency: 4
508
509       # Default replication level for collections. This is used when a
510       # collection's replication_desired attribute is nil.
511       DefaultReplication: 2
512
513       # BlobSigningTTL determines the minimum lifetime of transient
514       # data, i.e., blocks that are not referenced by
515       # collections. Unreferenced blocks exist for two reasons:
516       #
517       # 1) A data block must be written to a disk/cloud backend device
518       # before a collection can be created/updated with a reference to
519       # it.
520       #
521       # 2) Deleting or updating a collection can remove the last
522       # remaining reference to a data block.
523       #
524       # If BlobSigningTTL is too short, long-running
525       # processes/containers will fail when they take too long (a)
526       # between writing blocks and writing collections that reference
527       # them, or (b) between reading collections and reading the
528       # referenced blocks.
529       #
530       # If BlobSigningTTL is too long, data will still be stored long
531       # after the referring collections are deleted, and you will
532       # needlessly fill up disks or waste money on cloud storage.
533       #
534       # Modifying BlobSigningTTL invalidates existing signatures; see
535       # BlobSigningKey note above.
536       #
537       # The default is 2 weeks.
538       BlobSigningTTL: 336h
539
540       # When running keep-balance, this is the destination filename for
541       # the list of lost block hashes if there are any, one per line.
542       # Updated automically during each successful run.
543       BlobMissingReport: ""
544
545       # keep-balance operates periodically, i.e.: do a
546       # scan/balance operation, sleep, repeat.
547       #
548       # BalancePeriod determines the interval between start times of
549       # successive scan/balance operations. If a scan/balance operation
550       # takes longer than BalancePeriod, the next one will follow it
551       # immediately.
552       #
553       # If SIGUSR1 is received during an idle period between operations,
554       # the next operation will start immediately.
555       BalancePeriod: 6h
556
557       # Limits the number of collections retrieved by keep-balance per
558       # API transaction. If this is zero, page size is
559       # determined by the API server's own page size limits (see
560       # API.MaxItemsPerResponse and API.MaxIndexDatabaseRead).
561       BalanceCollectionBatch: 0
562
563       # The size of keep-balance's internal queue of
564       # collections. Higher values may improve throughput by allowing
565       # keep-balance to fetch collections from the database while the
566       # current collection are still being processed, at the expense of
567       # using more memory.  If this is zero or omitted, pages are
568       # processed serially.
569       BalanceCollectionBuffers: 4
570
571       # Maximum time for a rebalancing run. This ensures keep-balance
572       # eventually gives up and retries if, for example, a network
573       # error causes a hung connection that is never closed by the
574       # OS. It should be long enough that it doesn't interrupt a
575       # long-running balancing operation.
576       BalanceTimeout: 6h
577
578       # Maximum number of replication_confirmed /
579       # storage_classes_confirmed updates to write to the database
580       # after a rebalancing run. When many updates are needed, this
581       # spreads them over a few runs rather than applying them all at
582       # once.
583       BalanceUpdateLimit: 100000
584
585       # Default lifetime for ephemeral collections: 2 weeks. This must not
586       # be less than BlobSigningTTL.
587       DefaultTrashLifetime: 336h
588
589       # Interval (seconds) between trash sweeps. During a trash sweep,
590       # collections are marked as trash if their trash_at time has
591       # arrived, and deleted if their delete_at time has arrived.
592       TrashSweepInterval: 60s
593
594       # If true, enable collection versioning.
595       # When a collection's preserve_version field is true or the current version
596       # is older than the amount of seconds defined on PreserveVersionIfIdle,
597       # a snapshot of the collection's previous state is created and linked to
598       # the current collection.
599       CollectionVersioning: true
600
601       #   0s = auto-create a new version on every update.
602       #  -1s = never auto-create new versions.
603       # > 0s = auto-create a new version when older than the specified number of seconds.
604       PreserveVersionIfIdle: 10s
605
606       # If non-empty, allow project and collection names to contain
607       # the "/" character (slash/stroke/solidus), and replace "/" with
608       # the given string in the filesystem hierarchy presented by
609       # WebDAV. Example values are "%2f" and "{slash}". Names that
610       # contain the substitution string itself may result in confusing
611       # behavior, so a value like "_" is not recommended.
612       #
613       # If the default empty value is used, the server will reject
614       # requests to create or rename a collection when the new name
615       # contains "/".
616       #
617       # If the value "/" is used, project and collection names
618       # containing "/" will be allowed, but they will not be
619       # accessible via WebDAV.
620       #
621       # Use of this feature is not recommended, if it can be avoided.
622       ForwardSlashNameSubstitution: ""
623
624       # Include "folder objects" in S3 ListObjects responses.
625       S3FolderObjects: true
626
627       # Managed collection properties. At creation time, if the client didn't
628       # provide the listed keys, they will be automatically populated following
629       # one of the following behaviors:
630       #
631       # * UUID of the user who owns the containing project.
632       #   responsible_person_uuid: {Function: original_owner, Protected: true}
633       #
634       # * Default concrete value.
635       #   foo_bar: {Value: baz, Protected: false}
636       #
637       # If Protected is true, only an admin user can modify its value.
638       ManagedProperties:
639         SAMPLE: {Function: original_owner, Protected: true}
640
641       # In "trust all content" mode, Workbench will redirect download
642       # requests to WebDAV preview link, even in the cases when
643       # WebDAV would have to expose XSS vulnerabilities in order to
644       # handle the redirect (see discussion on Services.WebDAV).
645       #
646       # This setting has no effect in the recommended configuration, where the
647       # WebDAV service is configured to have a separate domain for every
648       # collection and XSS protection is provided by browsers' same-origin
649       # policy.
650       #
651       # The default setting (false) is appropriate for a multi-user site.
652       TrustAllContent: false
653
654       # Cache parameters for WebDAV content serving:
655       WebDAVCache:
656         # Time to cache manifests, permission checks, and sessions.
657         TTL: 300s
658
659         # Block cache entries. Each block consumes up to 64 MiB RAM.
660         MaxBlockEntries: 20
661
662         # Approximate memory limit (in bytes) for session cache.
663         #
664         # Note this applies to the in-memory representation of
665         # projects and collections -- metadata, block locators,
666         # filenames, etc. -- excluding cached file content, which is
667         # limited by MaxBlockEntries.
668         MaxCollectionBytes: 100000000
669
670         # Persistent sessions.
671         MaxSessions: 100
672
673       # Selectively set permissions for regular users and admins to
674       # download or upload data files using the upload/download
675       # features for Workbench, WebDAV and S3 API support.
676       WebDAVPermission:
677         User:
678           Download: true
679           Upload: true
680         Admin:
681           Download: true
682           Upload: true
683
684       # Selectively set permissions for regular users and admins to be
685       # able to download or upload blocks using arv-put and
686       # arv-get from outside the cluster.
687       KeepproxyPermission:
688         User:
689           Download: true
690           Upload: true
691         Admin:
692           Download: true
693           Upload: true
694
695       # Post upload / download events to the API server logs table, so
696       # that they can be included in the arv-user-activity report.
697       # You can disable this if you find that it is creating excess
698       # load on the API server and you don't need it.
699       WebDAVLogEvents: true
700
701     Login:
702       # One of the following mechanisms (Google, PAM, LDAP, or
703       # LoginCluster) should be enabled; see
704       # https://doc.arvados.org/install/setup-login.html
705
706       Google:
707         # Authenticate with Google.
708         Enable: false
709
710         # Use the Google Cloud console to enable the People API (APIs
711         # and Services > Enable APIs and services > Google People API
712         # > Enable), generate a Client ID and secret (APIs and
713         # Services > Credentials > Create credentials > OAuth client
714         # ID > Web application) and add your controller's /login URL
715         # (e.g., "https://zzzzz.example.com/login") as an authorized
716         # redirect URL.
717         ClientID: ""
718         ClientSecret: ""
719
720         # Allow users to log in to existing accounts using any verified
721         # email address listed by their Google account. If true, the
722         # Google People API must be enabled in order for Google login to
723         # work. If false, only the primary email address will be used.
724         AlternateEmailAddresses: true
725
726         # Send additional parameters with authentication requests. See
727         # https://developers.google.com/identity/protocols/oauth2/openid-connect#authenticationuriparameters
728         # for a list of supported parameters.
729         AuthenticationRequestParameters:
730           # Show the "choose which Google account" page, even if the
731           # client is currently logged in to exactly one Google
732           # account.
733           prompt: select_account
734
735           SAMPLE: ""
736
737       OpenIDConnect:
738         # Authenticate with an OpenID Connect provider.
739         Enable: false
740
741         # Issuer URL, e.g., "https://login.example.com".
742         #
743         # This must be exactly equal to the URL returned by the issuer
744         # itself in its config response ("isser" key). If the
745         # configured value is "https://example" and the provider
746         # returns "https://example:443" or "https://example/" then
747         # login will fail, even though those URLs are equivalent
748         # (RFC3986).
749         Issuer: ""
750
751         # Your client ID and client secret (supplied by the provider).
752         ClientID: ""
753         ClientSecret: ""
754
755         # OpenID claim field containing the user's email
756         # address. Normally "email"; see
757         # https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
758         EmailClaim: "email"
759
760         # OpenID claim field containing the email verification
761         # flag. Normally "email_verified".  To accept every returned
762         # email address without checking a "verified" field at all,
763         # use the empty string "".
764         EmailVerifiedClaim: "email_verified"
765
766         # OpenID claim field containing the user's preferred
767         # username. If empty, use the mailbox part of the user's email
768         # address.
769         UsernameClaim: ""
770
771         # Send additional parameters with authentication requests,
772         # like {display: page, prompt: consent}. See
773         # https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
774         # and refer to your provider's documentation for supported
775         # parameters.
776         AuthenticationRequestParameters:
777           SAMPLE: ""
778
779         # Accept an OIDC access token as an API token if the OIDC
780         # provider's UserInfo endpoint accepts it.
781         #
782         # AcceptAccessTokenScope should also be used when enabling
783         # this feature.
784         AcceptAccessToken: false
785
786         # Before accepting an OIDC access token as an API token, first
787         # check that it is a JWT whose "scope" value includes this
788         # value. Example: "https://zzzzz.example.com/" (your Arvados
789         # API endpoint).
790         #
791         # If this value is empty and AcceptAccessToken is true, all
792         # access tokens will be accepted regardless of scope,
793         # including non-JWT tokens. This is not recommended.
794         AcceptAccessTokenScope: ""
795
796       PAM:
797         # Use PAM to authenticate users.
798         Enable: false
799
800         # PAM service name. PAM will apply the policy in the
801         # corresponding config file (e.g., /etc/pam.d/arvados) or, if
802         # there is none, the default "other" config.
803         Service: arvados
804
805         # Domain name (e.g., "example.com") to use to construct the
806         # user's email address if PAM authentication returns a
807         # username with no "@". If empty, use the PAM username as the
808         # user's email address, whether or not it contains "@".
809         #
810         # Note that the email address is used as the primary key for
811         # user records when logging in. Therefore, if you change
812         # PAMDefaultEmailDomain after the initial installation, you
813         # should also update existing user records to reflect the new
814         # domain. Otherwise, next time those users log in, they will
815         # be given new accounts instead of accessing their existing
816         # accounts.
817         DefaultEmailDomain: ""
818
819       LDAP:
820         # Use an LDAP service to authenticate users.
821         Enable: false
822
823         # Server URL, like "ldap://ldapserver.example.com:389" or
824         # "ldaps://ldapserver.example.com:636".
825         URL: "ldap://ldap:389"
826
827         # Use StartTLS upon connecting to the server.
828         StartTLS: true
829
830         # Skip TLS certificate name verification.
831         InsecureTLS: false
832
833         # Mininum TLS version to negotiate when connecting to server
834         # (ldaps://... or StartTLS). It may be necessary to set this
835         # to "1.1" for compatibility with older LDAP servers that fail
836         # with 'LDAP Result Code 200 "Network Error": TLS handshake
837         # failed (tls: server selected unsupported protocol version
838         # 301)'.
839         #
840         # If blank, use the recommended minimum version (1.2).
841         MinTLSVersion: ""
842
843         # Strip the @domain part if a user supplies an email-style
844         # username with this domain. If "*", strip any user-provided
845         # domain. If "", never strip the domain part. Example:
846         # "example.com"
847         StripDomain: ""
848
849         # If, after applying StripDomain, the username contains no "@"
850         # character, append this domain to form an email-style
851         # username. Example: "example.com"
852         AppendDomain: ""
853
854         # The LDAP attribute to filter on when looking up a username
855         # (after applying StripDomain and AppendDomain).
856         SearchAttribute: uid
857
858         # Bind with this username (DN or UPN) and password when
859         # looking up the user record.
860         #
861         # Example user: "cn=admin,dc=example,dc=com"
862         SearchBindUser: ""
863         SearchBindPassword: ""
864
865         # Directory base for username lookup. Example:
866         # "ou=Users,dc=example,dc=com"
867         SearchBase: ""
868
869         # Additional filters to apply when looking up users' LDAP
870         # entries. This can be used to restrict access to a subset of
871         # LDAP users, or to disambiguate users from other directory
872         # entries that have the SearchAttribute present.
873         #
874         # Special characters in assertion values must be escaped (see
875         # RFC4515).
876         #
877         # Example: "(objectClass=person)"
878         SearchFilters: ""
879
880         # LDAP attribute to use as the user's email address.
881         #
882         # Important: This must not be an attribute whose value can be
883         # edited in the directory by the users themselves. Otherwise,
884         # users can take over other users' Arvados accounts trivially
885         # (email address is the primary key for Arvados accounts.)
886         EmailAttribute: mail
887
888         # LDAP attribute to use as the preferred Arvados username. If
889         # no value is found (or this config is empty) the username
890         # originally supplied by the user will be used.
891         UsernameAttribute: uid
892
893       Test:
894         # Authenticate users listed here in the config file. This
895         # feature is intended to be used in test environments, and
896         # should not be used in production.
897         Enable: false
898         Users:
899           SAMPLE:
900             Email: alice@example.com
901             Password: xyzzy
902
903       # The cluster ID to delegate the user database.  When set,
904       # logins on this cluster will be redirected to the login cluster
905       # (login cluster must appear in RemoteClusters with Proxy: true)
906       LoginCluster: ""
907
908       # How long a cached token belonging to a remote cluster will
909       # remain valid before it needs to be revalidated.
910       RemoteTokenRefresh: 5m
911
912       # How long a client token created from a login flow will be valid without
913       # asking the user to re-login. Example values: 60m, 8h.
914       # Default value zero means tokens don't have expiration.
915       TokenLifetime: 0s
916
917       # If true (default) tokens issued through login are allowed to create
918       # new tokens.
919       # If false, tokens issued through login are not allowed to
920       # viewing/creating other tokens.  New tokens can only be created
921       # by going through login again.
922       IssueTrustedTokens: true
923
924       # Origins (scheme://host[:port]) of clients trusted to receive
925       # new tokens via login process.  The ExternalURLs of the local
926       # Workbench1 and Workbench2 are trusted implicitly and do not
927       # need to be listed here.  If this is a LoginCluster, you
928       # probably want to include the other Workbench instances in the
929       # federation in this list.
930       #
931       # A wildcard like "https://*.example" will match client URLs
932       # like "https://a.example" and "https://a.b.c.example".
933       #
934       # Example:
935       #
936       # TrustedClients:
937       #   "https://workbench.other-cluster.example": {}
938       #   "https://workbench2.other-cluster.example": {}
939       TrustedClients:
940         SAMPLE: {}
941
942       # Treat any origin whose host part is "localhost" or a private
943       # IP address (e.g., http://10.0.0.123:3000/) as if it were
944       # listed in TrustedClients.
945       #
946       # Intended only for test/development use. Not appropriate for
947       # production use.
948       TrustPrivateNetworks: false
949
950     Git:
951       # Path to git or gitolite-shell executable. Each authenticated
952       # request will execute this program with the single argument "http-backend"
953       GitCommand: /usr/bin/git
954
955       # Path to Gitolite's home directory. If a non-empty path is given,
956       # the CGI environment will be set up to support the use of
957       # gitolite-shell as a GitCommand: for example, if GitoliteHome is
958       # "/gh", then the CGI environment will have GITOLITE_HTTP_HOME=/gh,
959       # PATH=$PATH:/gh/bin, and GL_BYPASS_ACCESS_CHECKS=1.
960       GitoliteHome: ""
961
962       # Git repositories must be readable by api server, or you won't be
963       # able to submit crunch jobs. To pass the test suites, put a clone
964       # of the arvados tree in {git_repositories_dir}/arvados.git or
965       # {git_repositories_dir}/arvados/.git
966       Repositories: /var/lib/arvados/git/repositories
967
968     TLS:
969       # Use "file:///var/lib/acme/live/example.com/cert" and
970       # ".../privkey" to load externally managed certificates.
971       Certificate: ""
972       Key: ""
973
974       # Accept invalid certificates when connecting to servers. Never
975       # use this in production.
976       Insecure: false
977
978       ACME:
979         # Obtain certificates automatically for ExternalURL domains
980         # using an ACME server and http-01 validation.
981         #
982         # To use Let's Encrypt, specify "LE".  To use the Let's
983         # Encrypt staging environment, specify "LE-staging".  To use a
984         # different ACME server, specify the full directory URL
985         # ("https://...").
986         #
987         # Note: this feature is not yet implemented in released
988         # versions, only in the alpha/prerelease arvados-server-easy
989         # package.
990         #
991         # Implies agreement with the server's terms of service.
992         Server: ""
993
994     Containers:
995       # List of supported Docker Registry image formats that compute nodes
996       # are able to use. `arv keep docker` will error out if a user tries
997       # to store an image with an unsupported format. Use an empty array
998       # to skip the compatibility check (and display a warning message to
999       # that effect).
1000       #
1001       # Example for sites running docker < 1.10: {"v1": {}}
1002       # Example for sites running docker >= 1.10: {"v2": {}}
1003       # Example for disabling check: {}
1004       SupportedDockerImageFormats:
1005         "v2": {}
1006         SAMPLE: {}
1007
1008       # Include details about job reuse decisions in the server log. This
1009       # causes additional database queries to run, so it should not be
1010       # enabled unless you expect to examine the resulting logs for
1011       # troubleshooting purposes.
1012       LogReuseDecisions: false
1013
1014       # Default value for keep_cache_ram of a container's
1015       # runtime_constraints.  Note: this gets added to the RAM request
1016       # used to allocate a VM or submit an HPC job.
1017       #
1018       # If this is zero, container requests that don't specify RAM or
1019       # disk cache size will use a disk cache, sized to the
1020       # container's RAM requirement (but with minimum 2 GiB and
1021       # maximum 32 GiB).
1022       #
1023       # Note: If you change this value, containers that used the previous
1024       # default value will only be reused by container requests that
1025       # explicitly specify the previous value in their keep_cache_ram
1026       # runtime constraint.
1027       DefaultKeepCacheRAM: 0
1028
1029       # Number of times a container can be unlocked before being
1030       # automatically cancelled.
1031       MaxDispatchAttempts: 5
1032
1033       # Default value for container_count_max for container requests.  This is the
1034       # number of times Arvados will create a new container to satisfy a container
1035       # request.  If a container is cancelled it will retry a new container if
1036       # container_count < container_count_max on any container requests associated
1037       # with the cancelled container.
1038       MaxRetryAttempts: 3
1039
1040       # Schedule all child containers on preemptible instances (e.g. AWS
1041       # Spot Instances) even if not requested by the submitter.
1042       #
1043       # If false, containers are scheduled on preemptible instances
1044       # only when requested by the submitter.
1045       #
1046       # This flag is ignored if no preemptible instance types are
1047       # configured, and has no effect on top-level containers.
1048       AlwaysUsePreemptibleInstances: false
1049
1050       # Automatically add a preemptible variant for every
1051       # non-preemptible entry in InstanceTypes below. The maximum bid
1052       # price for the preemptible variant will be the non-preemptible
1053       # price multiplied by PreemptiblePriceFactor. If 0, preemptible
1054       # variants are not added automatically.
1055       #
1056       # A price factor of 1.0 is a reasonable starting point.
1057       PreemptiblePriceFactor: 0
1058
1059       # PEM encoded SSH key (RSA, DSA, or ECDSA) used by the
1060       # cloud dispatcher for executing containers on worker VMs.
1061       # Begins with "-----BEGIN RSA PRIVATE KEY-----\n"
1062       # and ends with "\n-----END RSA PRIVATE KEY-----\n".
1063       #
1064       # Use "file:///absolute/path/to/key" to load the key from a
1065       # separate file instead of embedding it in the configuration
1066       # file.
1067       DispatchPrivateKey: ""
1068
1069       # Maximum time to wait for workers to come up before abandoning
1070       # stale locks from a previous dispatch process.
1071       StaleLockTimeout: 1m
1072
1073       # The crunch-run command used to start a container on a worker node.
1074       #
1075       # When dispatching to cloud VMs, this is used only if
1076       # DeployRunnerBinary in the CloudVMs section is set to the empty
1077       # string.
1078       CrunchRunCommand: "crunch-run"
1079
1080       # Extra arguments to add to crunch-run invocation
1081       # Example: ["--cgroup-parent-subsystem=memory"]
1082       CrunchRunArgumentsList: []
1083
1084       # Extra RAM to reserve on the node, in addition to
1085       # the amount specified in the container's RuntimeConstraints
1086       ReserveExtraRAM: 550MiB
1087
1088       # Minimum time between two attempts to run the same container
1089       MinRetryPeriod: 0s
1090
1091       # Container runtime: "docker" (default) or "singularity"
1092       RuntimeEngine: docker
1093
1094       # When running a container, run a dedicated keepstore process,
1095       # using the specified number of 64 MiB memory buffers per
1096       # allocated CPU core (VCPUs in the container's runtime
1097       # constraints). The dedicated keepstore handles I/O for
1098       # collections mounted in the container, as well as saving
1099       # container logs.
1100       #
1101       # A zero value disables this feature.
1102       #
1103       # In order for this feature to be activated, no volume may use
1104       # AccessViaHosts, and no writable volume may have Replication
1105       # lower than Collections.DefaultReplication. If these
1106       # requirements are not satisfied, the feature is disabled
1107       # automatically regardless of the value given here.
1108       #
1109       # When an HPC dispatcher is in use (see SLURM and LSF sections),
1110       # this feature depends on the operator to ensure an up-to-date
1111       # cluster configuration file (/etc/arvados/config.yml) is
1112       # available on all compute nodes. If it is missing or not
1113       # readable by the crunch-run user, the feature will be disabled
1114       # automatically. To read it from a different location, add a
1115       # "-config=/path/to/config.yml" argument to
1116       # CrunchRunArgumentsList above.
1117       #
1118       # When the cloud dispatcher is in use (see CloudVMs section) and
1119       # this configuration is enabled, the entire cluster
1120       # configuration file, including the system root token, is copied
1121       # to the worker node and held in memory for the duration of the
1122       # container.
1123       LocalKeepBlobBuffersPerVCPU: 1
1124
1125       # When running a dedicated keepstore process for a container
1126       # (see LocalKeepBlobBuffersPerVCPU), write keepstore log
1127       # messages to keepstore.txt in the container's log collection.
1128       #
1129       # These log messages can reveal some volume configuration
1130       # details, error messages from the cloud storage provider, etc.,
1131       # which are not otherwise visible to users.
1132       #
1133       # Accepted values:
1134       # * "none" -- no keepstore.txt file
1135       # * "all" -- all logs, including request and response lines
1136       # * "errors" -- all logs except "response" logs with 2xx
1137       #   response codes and "request" logs
1138       LocalKeepLogsToContainerLog: none
1139
1140       Logging:
1141         # Periodically (see SweepInterval) Arvados will check for
1142         # containers that have been finished for at least this long,
1143         # and delete their stdout, stderr, arv-mount, crunch-run, and
1144         # crunchstat logs from the logs table.
1145         MaxAge: 720h
1146
1147         # How often to delete cached log entries for finished
1148         # containers (see MaxAge).
1149         SweepInterval: 12h
1150
1151         # These two settings control how frequently log events are flushed to the
1152         # database.  Log lines are buffered until either crunch_log_bytes_per_event
1153         # has been reached or crunch_log_seconds_between_events has elapsed since
1154         # the last flush.
1155         LogBytesPerEvent: 4096
1156         LogSecondsBetweenEvents: 5s
1157
1158         # The sample period for throttling logs.
1159         LogThrottlePeriod: 60s
1160
1161         # Maximum number of bytes that job can log over crunch_log_throttle_period
1162         # before being silenced until the end of the period.
1163         LogThrottleBytes: 65536
1164
1165         # Maximum number of lines that job can log over crunch_log_throttle_period
1166         # before being silenced until the end of the period.
1167         LogThrottleLines: 1024
1168
1169         # Maximum bytes that may be logged by a single job.  Log bytes that are
1170         # silenced by throttling are not counted against this total.
1171         # If you set this to zero, each container will only create a single
1172         # log on the API server, noting for users that logging is throttled.
1173         LimitLogBytesPerJob: 67108864
1174
1175         LogPartialLineThrottlePeriod: 5s
1176
1177         # Container logs are written to Keep and saved in a
1178         # collection, which is updated periodically while the
1179         # container runs.  This value sets the interval between
1180         # collection updates.
1181         LogUpdatePeriod: 30m
1182
1183         # The log collection is also updated when the specified amount of
1184         # log data (given in bytes) is produced in less than one update
1185         # period.
1186         LogUpdateSize: 32MiB
1187
1188       ShellAccess:
1189         # An admin user can use "arvados-client shell" to start an
1190         # interactive shell (with any user ID) in any running
1191         # container.
1192         Admin: false
1193
1194         # Any user can use "arvados-client shell" to start an
1195         # interactive shell (with any user ID) in any running
1196         # container that they started, provided it isn't also
1197         # associated with a different user's container request.
1198         #
1199         # Interactive sessions make it easy to alter the container's
1200         # runtime environment in ways that aren't recorded or
1201         # reproducible. Consider the implications for automatic
1202         # container reuse before enabling and using this feature. In
1203         # particular, note that starting an interactive session does
1204         # not disqualify a container from being reused by a different
1205         # user/workflow in the future.
1206         User: false
1207
1208       SLURM:
1209         PrioritySpread: 0
1210         SbatchArgumentsList: []
1211         SbatchEnvironmentVariables:
1212           SAMPLE: ""
1213         Managed:
1214           # Path to dns server configuration directory
1215           # (e.g. /etc/unbound.d/conf.d). If false, do not write any config
1216           # files or touch restart.txt (see below).
1217           DNSServerConfDir: ""
1218
1219           # Template file for the dns server host snippets. See
1220           # unbound.template in this directory for an example. If false, do
1221           # not write any config files.
1222           DNSServerConfTemplate: ""
1223
1224           # String to write to {dns_server_conf_dir}/restart.txt (with a
1225           # trailing newline) after updating local data. If false, do not
1226           # open or write the restart.txt file.
1227           DNSServerReloadCommand: ""
1228
1229           # Command to run after each DNS update. Template variables will be
1230           # substituted; see the "unbound" example below. If false, do not run
1231           # a command.
1232           DNSServerUpdateCommand: ""
1233
1234           ComputeNodeDomain: ""
1235           ComputeNodeNameservers:
1236             "192.168.1.1": {}
1237             SAMPLE: {}
1238
1239           # Hostname to assign to a compute node when it sends a "ping" and the
1240           # hostname in its Node record is nil.
1241           # During bootstrapping, the "ping" script is expected to notice the
1242           # hostname given in the ping response, and update its unix hostname
1243           # accordingly.
1244           # If false, leave the hostname alone (this is appropriate if your compute
1245           # nodes' hostnames are already assigned by some other mechanism).
1246           #
1247           # One way or another, the hostnames of your node records should agree
1248           # with your DNS records and your /etc/slurm-llnl/slurm.conf files.
1249           #
1250           # Example for compute0000, compute0001, ....:
1251           # assign_node_hostname: compute%<slot_number>04d
1252           # (See http://ruby-doc.org/core-2.2.2/Kernel.html#method-i-format for more.)
1253           AssignNodeHostname: "compute%<slot_number>d"
1254
1255       LSF:
1256         # Arguments to bsub when submitting Arvados containers as LSF jobs.
1257         #
1258         # Template variables starting with % will be substituted as follows:
1259         #
1260         # %U uuid
1261         # %C number of VCPUs
1262         # %M memory in MB
1263         # %T tmp in MB
1264         # %G number of GPU devices (runtime_constraints.cuda.device_count)
1265         #
1266         # Use %% to express a literal %. The %%J in the default will be changed
1267         # to %J, which is interpreted by bsub itself.
1268         #
1269         # Note that the default arguments cause LSF to write two files
1270         # in /tmp on the compute node each time an Arvados container
1271         # runs. Ensure you have something in place to delete old files
1272         # from /tmp, or adjust the "-o" and "-e" arguments accordingly.
1273         BsubArgumentsList: ["-o", "/tmp/crunch-run.%%J.out", "-e", "/tmp/crunch-run.%%J.err", "-J", "%U", "-n", "%C", "-D", "%MMB", "-R", "rusage[mem=%MMB:tmp=%TMB] span[hosts=1]", "-R", "select[mem>=%MMB]", "-R", "select[tmp>=%TMB]", "-R", "select[ncpus>=%C]"]
1274
1275         # Arguments that will be appended to the bsub command line
1276         # when submitting Arvados containers as LSF jobs with
1277         # runtime_constraints.cuda.device_count > 0
1278         BsubCUDAArguments: ["-gpu", "num=%G"]
1279
1280         # Use sudo to switch to this user account when submitting LSF
1281         # jobs.
1282         #
1283         # This account must exist on the hosts where LSF jobs run
1284         # ("execution hosts"), as well as on the host where the
1285         # Arvados LSF dispatcher runs ("submission host").
1286         BsubSudoUser: "crunch"
1287
1288       JobsAPI:
1289         # Enable the legacy 'jobs' API (crunch v1).  This value must be a string.
1290         #
1291         # Note: this only enables read-only access, creating new
1292         # legacy jobs and pipelines is not supported.
1293         #
1294         # 'auto' -- (default) enable the Jobs API only if it has been used before
1295         #         (i.e., there are job records in the database)
1296         # 'true' -- enable the Jobs API despite lack of existing records.
1297         # 'false' -- disable the Jobs API despite presence of existing records.
1298         Enable: 'auto'
1299
1300         # Git repositories must be readable by api server, or you won't be
1301         # able to submit crunch jobs. To pass the test suites, put a clone
1302         # of the arvados tree in {git_repositories_dir}/arvados.git or
1303         # {git_repositories_dir}/arvados/.git
1304         GitInternalDir: /var/lib/arvados/internal.git
1305
1306       CloudVMs:
1307         # Enable the cloud scheduler.
1308         Enable: false
1309
1310         # Name/number of port where workers' SSH services listen.
1311         SSHPort: "22"
1312
1313         # Interval between queue polls.
1314         PollInterval: 10s
1315
1316         # Shell command to execute on each worker to determine whether
1317         # the worker is booted and ready to run containers. It should
1318         # exit zero if the worker is ready.
1319         BootProbeCommand: "systemctl is-system-running"
1320
1321         # Minimum interval between consecutive probes to a single
1322         # worker.
1323         ProbeInterval: 10s
1324
1325         # Maximum probes per second, across all workers in a pool.
1326         MaxProbesPerSecond: 10
1327
1328         # Time before repeating SIGTERM when killing a container.
1329         TimeoutSignal: 5s
1330
1331         # Time to give up on a process (most likely arv-mount) that
1332         # still holds a container lockfile after its main supervisor
1333         # process has exited, and declare the instance broken.
1334         TimeoutStaleRunLock: 5s
1335
1336         # Time to give up on SIGTERM and write off the worker.
1337         TimeoutTERM: 2m
1338
1339         # Maximum create/destroy-instance operations per second (0 =
1340         # unlimited).
1341         MaxCloudOpsPerSecond: 10
1342
1343         # Maximum concurrent instance creation operations (0 = unlimited).
1344         #
1345         # MaxConcurrentInstanceCreateOps limits the number of instance creation
1346         # requests that can be in flight at any one time, whereas
1347         # MaxCloudOpsPerSecond limits the number of create/destroy operations
1348         # that can be started per second.
1349         #
1350         # Because the API for instance creation on Azure is synchronous, it is
1351         # recommended to increase MaxConcurrentInstanceCreateOps when running
1352         # on Azure. When using managed images, a value of 20 would be
1353         # appropriate. When using Azure Shared Image Galeries, it could be set
1354         # higher. For more information, see
1355         # https://docs.microsoft.com/en-us/azure/virtual-machines/linux/capture-image
1356         #
1357         # MaxConcurrentInstanceCreateOps can be increased for other cloud
1358         # providers too, if desired.
1359         MaxConcurrentInstanceCreateOps: 1
1360
1361         # The maximum number of instances to run at a time, or 0 for
1362         # unlimited.
1363         #
1364         # If more instances than this are already running and busy
1365         # when the dispatcher starts up, the running containers will
1366         # be allowed to finish before the excess instances are shut
1367         # down.
1368         MaxInstances: 64
1369
1370         # Maximum fraction of CloudVMs.MaxInstances allowed to run
1371         # "supervisor" containers at any given time. A supervisor is a
1372         # container whose purpose is mainly to submit and manage other
1373         # containers, such as arvados-cwl-runner workflow runner.
1374         #
1375         # If there is a hard limit on the amount of concurrent
1376         # containers that the cluster can run, it is important to
1377         # avoid crowding out the containers doing useful work with
1378         # containers who just create more work.
1379         #
1380         # For example, with the default MaxInstances of 64, it will
1381         # schedule at most floor(64*0.30) = 19 concurrent workflows,
1382         # ensuring 45 slots are available for work.
1383         SupervisorFraction: 0.30
1384
1385         # Interval between cloud provider syncs/updates ("list all
1386         # instances").
1387         SyncInterval: 1m
1388
1389         # Time to leave an idle worker running (in case new containers
1390         # appear in the queue that it can run) before shutting it
1391         # down.
1392         TimeoutIdle: 1m
1393
1394         # Time to wait for a new worker to boot (i.e., pass
1395         # BootProbeCommand) before giving up and shutting it down.
1396         TimeoutBooting: 10m
1397
1398         # Maximum time a worker can stay alive with no successful
1399         # probes before being automatically shut down.
1400         TimeoutProbe: 10m
1401
1402         # Time after shutting down a worker to retry the
1403         # shutdown/destroy operation.
1404         TimeoutShutdown: 10s
1405
1406         # Worker VM image ID.
1407         # (aws) AMI identifier
1408         # (azure) managed disks: the name of the managed disk image
1409         # (azure) shared image gallery: the name of the image definition. Also
1410         # see the SharedImageGalleryName and SharedImageGalleryImageVersion fields.
1411         # (azure) unmanaged disks (deprecated): the complete URI of the VHD, e.g.
1412         # https://xxxxx.blob.core.windows.net/system/Microsoft.Compute/Images/images/xxxxx.vhd
1413         ImageID: ""
1414
1415         # Shell script to run on new instances using the cloud
1416         # provider's UserData (EC2) or CustomData (Azure) feature.
1417         #
1418         # It is not necessary to include a #!/bin/sh line.
1419         InstanceInitCommand: ""
1420
1421         # An executable file (located on the dispatcher host) to be
1422         # copied to cloud instances at runtime and used as the
1423         # container runner/supervisor. The default value is the
1424         # dispatcher program itself.
1425         #
1426         # Use the empty string to disable this step: nothing will be
1427         # copied, and cloud instances are assumed to have a suitable
1428         # version of crunch-run installed; see CrunchRunCommand above.
1429         DeployRunnerBinary: "/proc/self/exe"
1430
1431         # Install the Dispatcher's SSH public key (derived from
1432         # DispatchPrivateKey) when creating new cloud
1433         # instances. Change this to false if you are using a different
1434         # mechanism to pre-install the public key on new instances.
1435         DeployPublicKey: true
1436
1437         # Tags to add on all resources (VMs, NICs, disks) created by
1438         # the container dispatcher. (Arvados's own tags --
1439         # InstanceType, IdleBehavior, and InstanceSecret -- will also
1440         # be added.)
1441         ResourceTags:
1442           SAMPLE: "tag value"
1443
1444         # Prefix for predefined tags used by Arvados (InstanceSetID,
1445         # InstanceType, InstanceSecret, IdleBehavior). With the
1446         # default value "Arvados", tags are "ArvadosInstanceSetID",
1447         # "ArvadosInstanceSecret", etc.
1448         #
1449         # This should only be changed while no cloud resources are in
1450         # use and the cloud dispatcher is not running. Otherwise,
1451         # VMs/resources that were added using the old tag prefix will
1452         # need to be detected and cleaned up manually.
1453         TagKeyPrefix: Arvados
1454
1455         # Cloud driver: "azure" (Microsoft Azure), "ec2" (Amazon AWS),
1456         # or "loopback" (run containers on dispatch host for testing
1457         # purposes).
1458         Driver: ec2
1459
1460         # Cloud-specific driver parameters.
1461         DriverParameters:
1462
1463           # (ec2) Credentials. Omit or leave blank if using IAM role.
1464           AccessKeyID: ""
1465           SecretAccessKey: ""
1466
1467           # (ec2) Instance configuration.
1468           SecurityGroupIDs:
1469             "SAMPLE": {}
1470           SubnetID: ""
1471           Region: ""
1472           EBSVolumeType: gp2
1473           AdminUsername: debian
1474           # (ec2) name of the IAMInstanceProfile for instances started by
1475           # the cloud dispatcher. Leave blank when not needed.
1476           IAMInstanceProfile: ""
1477
1478           # (ec2) how often to look up spot instance pricing data
1479           # (only while running spot instances) for the purpose of
1480           # calculating container cost estimates. A value of 0
1481           # disables spot price lookups entirely.
1482           SpotPriceUpdateInterval: 24h
1483
1484           # (ec2) per-GiB-month cost of EBS volumes. Matches
1485           # EBSVolumeType. Used to account for AddedScratch when
1486           # calculating container cost estimates. Note that
1487           # https://aws.amazon.com/ebs/pricing/ defines GB to mean
1488           # GiB, so an advertised price $0.10/GB indicates a real
1489           # price of $0.10/GiB and can be entered here as 0.10.
1490           EBSPrice: 0.10
1491
1492           # (azure) Credentials.
1493           SubscriptionID: ""
1494           ClientID: ""
1495           ClientSecret: ""
1496           TenantID: ""
1497
1498           # (azure) Instance configuration.
1499           CloudEnvironment: AzurePublicCloud
1500           Location: centralus
1501
1502           # (azure) The resource group where the VM and virtual NIC will be
1503           # created.
1504           ResourceGroup: ""
1505
1506           # (azure) The resource group of the Network to use for the virtual
1507           # NIC (if different from ResourceGroup)
1508           NetworkResourceGroup: ""
1509           Network: ""
1510           Subnet: ""
1511
1512           # (azure) managed disks: The resource group where the managed disk
1513           # image can be found (if different from ResourceGroup).
1514           ImageResourceGroup: ""
1515
1516           # (azure) shared image gallery: the name of the gallery
1517           SharedImageGalleryName: ""
1518           # (azure) shared image gallery: the version of the image definition
1519           SharedImageGalleryImageVersion: ""
1520
1521           # (azure) unmanaged disks (deprecated): Where to store the VM VHD blobs
1522           StorageAccount: ""
1523           BlobContainer: ""
1524
1525           # (azure) How long to wait before deleting VHD and NIC
1526           # objects that are no longer being used.
1527           DeleteDanglingResourcesAfter: 20s
1528
1529           # Account (that already exists in the VM image) that will be
1530           # set up with an ssh authorized key to allow the compute
1531           # dispatcher to connect.
1532           AdminUsername: arvados
1533
1534     InstanceTypes:
1535
1536       # Use the instance type name as the key (in place of "SAMPLE" in
1537       # this sample entry).
1538       SAMPLE:
1539         # Cloud provider's instance type. Defaults to the configured type name.
1540         ProviderType: ""
1541         VCPUs: 1
1542         RAM: 128MiB
1543         IncludedScratch: 16GB
1544         AddedScratch: 0
1545         # Hourly price ($), used to select node types for containers,
1546         # and to calculate estimated container costs. For spot
1547         # instances on EC2, this is also used as the maximum price
1548         # when launching spot instances, while the estimated container
1549         # cost is computed based on the current spot price according
1550         # to AWS. On Azure, and on-demand instances on EC2, the price
1551         # given here is used to compute container cost estimates.
1552         Price: 0.1
1553         Preemptible: false
1554         # Include this section if the node type includes GPU (CUDA) support
1555         CUDA:
1556           DriverVersion: "11.0"
1557           HardwareCapability: "9.0"
1558           DeviceCount: 1
1559
1560     StorageClasses:
1561
1562       # If you use multiple storage classes, specify them here, using
1563       # the storage class name as the key (in place of "SAMPLE" in
1564       # this sample entry).
1565       #
1566       # Further info/examples:
1567       # https://doc.arvados.org/admin/storage-classes.html
1568       SAMPLE:
1569
1570         # Priority determines the order volumes should be searched
1571         # when reading data, in cases where a keepstore server has
1572         # access to multiple volumes with different storage classes.
1573         Priority: 0
1574
1575         # Default determines which storage class(es) should be used
1576         # when a user/client writes data or saves a new collection
1577         # without specifying storage classes.
1578         #
1579         # If any StorageClasses are configured, at least one of them
1580         # must have Default: true.
1581         Default: true
1582
1583     Volumes:
1584       SAMPLE:
1585         # AccessViaHosts specifies which keepstore processes can read
1586         # and write data on the volume.
1587         #
1588         # For a local filesystem, AccessViaHosts has one entry,
1589         # indicating which server the filesystem is located on.
1590         #
1591         # For a network-attached backend accessible by all keepstore
1592         # servers, like a cloud storage bucket or an NFS mount,
1593         # AccessViaHosts can be empty/omitted.
1594         #
1595         # Further info/examples:
1596         # https://doc.arvados.org/install/configure-fs-storage.html
1597         # https://doc.arvados.org/install/configure-s3-object-storage.html
1598         # https://doc.arvados.org/install/configure-azure-blob-storage.html
1599         AccessViaHosts:
1600           SAMPLE:
1601             ReadOnly: false
1602           "http://host1.example:25107": {}
1603         ReadOnly: false
1604         Replication: 1
1605         StorageClasses:
1606           # If you have configured storage classes (see StorageClasses
1607           # section above), add an entry here for each storage class
1608           # satisfied by this volume.
1609           SAMPLE: true
1610         Driver: S3
1611         DriverParameters:
1612           # for s3 driver -- see
1613           # https://doc.arvados.org/install/configure-s3-object-storage.html
1614           IAMRole: aaaaa
1615           AccessKeyID: aaaaa
1616           SecretAccessKey: aaaaa
1617           Endpoint: ""
1618           Region: us-east-1
1619           Bucket: aaaaa
1620           LocationConstraint: false
1621           V2Signature: false
1622           IndexPageSize: 1000
1623           ConnectTimeout: 1m
1624           ReadTimeout: 10m
1625           RaceWindow: 24h
1626           PrefixLength: 0
1627
1628           # For S3 driver, potentially unsafe tuning parameter,
1629           # intentionally excluded from main documentation.
1630           #
1631           # Enable deletion (garbage collection) even when the
1632           # configured BlobTrashLifetime is zero.  WARNING: eventual
1633           # consistency may result in race conditions that can cause
1634           # data loss.  Do not enable this unless you understand and
1635           # accept the risk.
1636           UnsafeDelete: false
1637
1638           # for azure driver -- see
1639           # https://doc.arvados.org/install/configure-azure-blob-storage.html
1640           StorageAccountName: aaaaa
1641           StorageAccountKey: aaaaa
1642           StorageBaseURL: core.windows.net
1643           ContainerName: aaaaa
1644           RequestTimeout: 30s
1645           ListBlobsRetryDelay: 10s
1646           ListBlobsMaxAttempts: 10
1647           MaxGetBytes: 0
1648           WriteRaceInterval: 15s
1649           WriteRacePollTime: 1s
1650
1651           # for local directory driver -- see
1652           # https://doc.arvados.org/install/configure-fs-storage.html
1653           Root: /var/lib/arvados/keep-data
1654
1655           # For local directory driver, potentially confusing tuning
1656           # parameter, intentionally excluded from main documentation.
1657           #
1658           # When true, read and write operations (for whole 64MiB
1659           # blocks) on an individual volume will queued and issued
1660           # serially.  When false, read and write operations will be
1661           # issued concurrently.
1662           #
1663           # May possibly improve throughput if you have physical spinning disks
1664           # and experience contention when there are multiple requests
1665           # to the same volume.
1666           #
1667           # Otherwise, when using SSDs, RAID, or a shared network filesystem, you
1668           # should leave this alone.
1669           Serialize: false
1670
1671     Mail:
1672       MailchimpAPIKey: ""
1673       MailchimpListID: ""
1674       SendUserSetupNotificationEmail: true
1675
1676       # Bug/issue report notification to and from addresses
1677       IssueReporterEmailFrom: "arvados@example.com"
1678       IssueReporterEmailTo: "arvados@example.com"
1679       SupportEmailAddress: "arvados@example.com"
1680
1681       # Generic issue email from
1682       EmailFrom: "arvados@example.com"
1683     RemoteClusters:
1684       "*":
1685         Host: ""
1686         Proxy: false
1687         Scheme: https
1688         Insecure: false
1689         ActivateUsers: false
1690       SAMPLE:
1691         # API endpoint host or host:port; default is {id}.arvadosapi.com
1692         Host: sample.arvadosapi.com
1693
1694         # Perform a proxy request when a local client requests an
1695         # object belonging to this remote.
1696         Proxy: false
1697
1698         # Default "https". Can be set to "http" for testing.
1699         Scheme: https
1700
1701         # Disable TLS verify. Can be set to true for testing.
1702         Insecure: false
1703
1704         # When users present tokens issued by this remote cluster, and
1705         # their accounts are active on the remote cluster, activate
1706         # them on this cluster too.
1707         ActivateUsers: false
1708
1709     Workbench:
1710       # Workbench1 configs
1711       Theme: default
1712       ActivationContactLink: mailto:info@arvados.org
1713       ArvadosDocsite: https://doc.arvados.org
1714       ArvadosPublicDataDocURL: https://playground.arvados.org/projects/public
1715       ShowUserAgreementInline: false
1716       SecretKeyBase: ""
1717
1718       # Set this configuration to true to avoid providing an easy way for users
1719       # to share data with unauthenticated users; this may be necessary on
1720       # installations where strict data access controls are needed.
1721       DisableSharingURLsUI: false
1722
1723       # Scratch directory used by the remote repository browsing
1724       # feature. If it doesn't exist, it (and any missing parents) will be
1725       # created using mkdir_p.
1726       RepositoryCache: /var/www/arvados-workbench/current/tmp/git
1727
1728       # Below is a sample setting of user_profile_form_fields config parameter.
1729       # This configuration parameter should be set to either false (to disable) or
1730       # to a map as shown below.
1731       # Configure the map of input fields to be displayed in the profile page
1732       # using the attribute "key" for each of the input fields.
1733       # This sample shows configuration with one required and one optional form fields.
1734       # For each of these input fields:
1735       #   You can specify "Type" as "text" or "select".
1736       #   List the "Options" to be displayed for each of the "select" menu.
1737       #   Set "Required" as "true" for any of these fields to make them required.
1738       # If any of the required fields are missing in the user's profile, the user will be
1739       # redirected to the profile page before they can access any Workbench features.
1740       UserProfileFormFields:
1741         SAMPLE:
1742           Type: select
1743           FormFieldTitle: Best color
1744           FormFieldDescription: your favorite color
1745           Required: false
1746           Position: 1
1747           Options:
1748             red: {}
1749             blue: {}
1750             green: {}
1751             SAMPLE: {}
1752
1753         # exampleTextValue:  # key that will be set in properties
1754         #   Type: text  #
1755         #   FormFieldTitle: ""
1756         #   FormFieldDescription: ""
1757         #   Required: true
1758         #   Position: 1
1759         # exampleOptionsValue:
1760         #   Type: select
1761         #   FormFieldTitle: ""
1762         #   FormFieldDescription: ""
1763         #   Required: true
1764         #   Position: 1
1765         #   Options:
1766         #     red: {}
1767         #     blue: {}
1768         #     yellow: {}
1769
1770       # Use "UserProfileFormMessage to configure the message you want
1771       # to display on the profile page.
1772       UserProfileFormMessage: 'Welcome to Arvados. All <span style="color:red">required fields</span> must be completed before you can proceed.'
1773
1774       # Mimetypes of applications for which the view icon
1775       # would be enabled in a collection's show page.
1776       # It is sufficient to list only applications here.
1777       # No need to list text and image types.
1778       ApplicationMimetypesWithViewIcon:
1779         cwl: {}
1780         fasta: {}
1781         go: {}
1782         javascript: {}
1783         json: {}
1784         pdf: {}
1785         python: {}
1786         x-python: {}
1787         r: {}
1788         rtf: {}
1789         sam: {}
1790         x-sh: {}
1791         vnd.realvnc.bed: {}
1792         xml: {}
1793         xsl: {}
1794         SAMPLE: {}
1795
1796       # The maximum number of bytes to load in the log viewer
1797       LogViewerMaxBytes: 1M
1798
1799       # When anonymous_user_token is configured, show public projects page
1800       EnablePublicProjectsPage: true
1801
1802       # By default, disable the "Getting Started" popup which is specific to Arvados playground
1803       EnableGettingStartedPopup: false
1804
1805       # Ask Arvados API server to compress its response payloads.
1806       APIResponseCompression: true
1807
1808       # Timeouts for API requests.
1809       APIClientConnectTimeout: 2m
1810       APIClientReceiveTimeout: 5m
1811
1812       # Maximum number of historic log records of a running job to fetch
1813       # and display in the Log tab, while subscribing to web sockets.
1814       RunningJobLogRecordsToFetch: 2000
1815
1816       # In systems with many shared projects, loading of dashboard and topnav
1817       # can be slow due to collections indexing; use the following parameters
1818       # to suppress these properties
1819       ShowRecentCollectionsOnDashboard: true
1820       ShowUserNotifications: true
1821
1822       # Enable/disable "multi-site search" in top nav ("true"/"false"), or
1823       # a link to the multi-site search page on a "home" Workbench site.
1824       #
1825       # Example:
1826       #   https://workbench.zzzzz.arvadosapi.com/collections/multisite
1827       MultiSiteSearch: ""
1828
1829       # Should workbench allow management of local git repositories? Set to false if
1830       # the jobs api is disabled and there are no local git repositories.
1831       Repositories: true
1832
1833       SiteName: Arvados Workbench
1834       ProfilingEnabled: false
1835
1836       # This is related to obsolete Google OpenID 1.0 login
1837       # but some workbench stuff still expects it to be set.
1838       DefaultOpenIdPrefix: "https://www.google.com/accounts/o8/id"
1839
1840       # Workbench2 configs
1841       FileViewersConfigURL: ""
1842
1843       # Idle time after which the user's session will be auto closed.
1844       # This feature is disabled when set to zero.
1845       IdleTimeout: 0s
1846
1847       # UUID of a collection.  This collection should be shared with
1848       # all users.  Workbench will look for a file "banner.html" in
1849       # this collection and display its contents (should be
1850       # HTML-formatted text) when users first log in to Workbench.
1851       BannerUUID: ""
1852
1853       # Workbench welcome screen, this is HTML text that will be
1854       # incorporated directly onto the page.
1855       WelcomePageHTML: |
1856         <img src="/arvados-logo-big.png" style="width: 20%; float: right; padding: 1em;" />
1857         <h2>Please log in.</h2>
1858
1859         <p>If you have never used Arvados Workbench before, logging in
1860         for the first time will automatically create a new
1861         account.</p>
1862
1863         <i>Arvados Workbench uses your information only for
1864         identification, and does not retrieve any other personal
1865         information.</i>
1866
1867       # Workbench screen displayed to inactive users.  This is HTML
1868       # text that will be incorporated directly onto the page.
1869       InactivePageHTML: |
1870         <img src="/arvados-logo-big.png" style="width: 20%; float: right; padding: 1em;" />
1871         <h3>Hi! You're logged in, but...</h3>
1872         <p>Your account is inactive.</p>
1873         <p>An administrator must activate your account before you can get
1874         any further.</p>
1875
1876       # Connecting to Arvados shell VMs tends to be site-specific.
1877       # Put any special instructions here. This is HTML text that will
1878       # be incorporated directly onto the Workbench page.
1879       SSHHelpPageHTML: |
1880         <a href="https://doc.arvados.org/user/getting_started/ssh-access-unix.html">Accessing an Arvados VM with SSH</a> (generic instructions).
1881         Site configurations vary.  Contact your local cluster administrator if you have difficulty accessing an Arvados shell node.
1882
1883       # Sample text if you are using a "switchyard" ssh proxy.
1884       # Replace "zzzzz" with your Cluster ID.
1885       #SSHHelpPageHTML: |
1886       # <p>Add a section like this to your SSH configuration file ( <i>~/.ssh/config</i>):</p>
1887       # <pre>Host *.zzzzz
1888       #  TCPKeepAlive yes
1889       #  ServerAliveInterval 60
1890       #  ProxyCommand ssh -p2222 turnout@switchyard.zzzzz.arvadosapi.com -x -a $SSH_PROXY_FLAGS %h
1891       # </pre>
1892
1893       # If you are using a switchyard ssh proxy, shell node hostnames
1894       # may require a special hostname suffix.  In the sample ssh
1895       # configuration above, this would be ".zzzzz"
1896       # This is added to the hostname in the "command line" column
1897       # the Workbench "shell VMs" page.
1898       #
1899       # If your shell nodes are directly accessible by users without a
1900       # proxy and have fully qualified host names, you should leave
1901       # this blank.
1902       SSHHelpHostSuffix: ""
1903
1904 # (Experimental) Restart services automatically when config file
1905 # changes are detected. Only supported by `arvados-server boot` in
1906 # dev/test mode.
1907 AutoReloadConfig: false