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