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