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