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