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