13647: Use cluster config instead of custom keepstore 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     SystemRootToken: ""
16
17     # Token to be included in all healthcheck requests. Disabled by default.
18     # Server expects request header of the format "Authorization: Bearer xxx"
19     ManagementToken: ""
20
21     Services:
22
23       # In each of the service sections below, the keys under
24       # InternalURLs are the endpoints where the service should be
25       # listening, and reachable from other hosts in the cluster.
26       SAMPLE:
27         InternalURLs:
28           "http://example.host:12345": {}
29           SAMPLE: {}
30         ExternalURL: "-"
31
32       RailsAPI:
33         InternalURLs: {}
34         ExternalURL: "-"
35       Controller:
36         InternalURLs: {}
37         ExternalURL: ""
38       Websocket:
39         InternalURLs: {}
40         ExternalURL: ""
41       Keepbalance:
42         InternalURLs: {}
43         ExternalURL: "-"
44       GitHTTP:
45         InternalURLs: {}
46         ExternalURL: ""
47       GitSSH:
48         InternalURLs: {}
49         ExternalURL: ""
50       DispatchCloud:
51         InternalURLs: {}
52         ExternalURL: "-"
53       SSO:
54         InternalURLs: {}
55         ExternalURL: ""
56       Keepproxy:
57         InternalURLs: {}
58         ExternalURL: ""
59       WebDAV:
60         InternalURLs: {}
61         # Base URL for Workbench inline preview.  If blank, use
62         # WebDAVDownload instead, and disable inline preview.
63         # If both are empty, downloading collections from workbench
64         # will be impossible.
65         #
66         # It is important to properly configure the download service
67         # to migitate cross-site-scripting (XSS) attacks.  A HTML page
68         # can be stored in collection.  If an attacker causes a victim
69         # to visit that page through Workbench, it will be rendered by
70         # the browser.  If all collections are served at the same
71         # domain, the browser will consider collections as coming from
72         # the same origin and having access to the same browsing data,
73         # enabling malicious Javascript on that page to access Arvados
74         # on behalf of the victim.
75         #
76         # This is mitigating by having separate domains for each
77         # collection, or limiting preview to circumstances where the
78         # collection is not accessed with the user's regular
79         # full-access token.
80         #
81         # Serve preview links using uuid or pdh in subdomain
82         # (requires wildcard DNS and TLS certificate)
83         #   https://*.collections.uuid_prefix.arvadosapi.com
84         #
85         # Serve preview links using uuid or pdh in main domain
86         # (requires wildcard DNS and TLS certificate)
87         #   https://*--collections.uuid_prefix.arvadosapi.com
88         #
89         # Serve preview links by setting uuid or pdh in the path.
90         # This configuration only allows previews of public data or
91         # collection-sharing links, because these use the anonymous
92         # user token or the token is already embedded in the URL.
93         # Other data must be handled as downloads via WebDAVDownload:
94         #   https://collections.uuid_prefix.arvadosapi.com
95         #
96         ExternalURL: ""
97
98       WebDAVDownload:
99         InternalURLs: {}
100         # Base URL for download links. If blank, serve links to WebDAV
101         # with disposition=attachment query param.  Unlike preview links,
102         # browsers do not render attachments, so there is no risk of XSS.
103         #
104         # If WebDAVDownload is blank, and WebDAV uses a
105         # single-origin form, then Workbench will show an error page
106         #
107         # Serve download links by setting uuid or pdh in the path:
108         #   https://download.uuid_prefix.arvadosapi.com
109         #
110         ExternalURL: ""
111
112       Keepstore:
113         InternalURLs: {}
114         ExternalURL: "-"
115       Composer:
116         InternalURLs: {}
117         ExternalURL: ""
118       WebShell:
119         InternalURLs: {}
120         # ShellInABox service endpoint URL for a given VM.  If empty, do not
121         # offer web shell logins.
122         #
123         # E.g., using a path-based proxy server to forward connections to shell hosts:
124         # https://webshell.uuid_prefix.arvadosapi.com
125         #
126         # E.g., using a name-based proxy server to forward connections to shell hosts:
127         # https://*.webshell.uuid_prefix.arvadosapi.com
128         ExternalURL: ""
129       Workbench1:
130         InternalURLs: {}
131         ExternalURL: ""
132       Workbench2:
133         InternalURLs: {}
134         ExternalURL: ""
135       Nodemanager:
136         InternalURLs: {}
137         ExternalURL: "-"
138       Health:
139         InternalURLs: {}
140         ExternalURL: "-"
141
142     PostgreSQL:
143       # max concurrent connections per arvados server daemon
144       ConnectionPool: 32
145       Connection:
146         # All parameters here are passed to the PG client library in a connection string;
147         # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
148         host: ""
149         port: ""
150         user: ""
151         password: ""
152         dbname: ""
153         SAMPLE: ""
154     API:
155       # Maximum size (in bytes) allowed for a single API request.  This
156       # limit is published in the discovery document for use by clients.
157       # Note: You must separately configure the upstream web server or
158       # proxy to actually enforce the desired maximum request size on the
159       # server side.
160       MaxRequestSize: 134217728
161
162       # Limit the number of bytes read from the database during an index
163       # request (by retrieving and returning fewer rows than would
164       # normally be returned in a single response).
165       # Note 1: This setting never reduces the number of returned rows to
166       # zero, no matter how big the first data row is.
167       # Note 2: Currently, this is only checked against a specific set of
168       # columns that tend to get large (collections.manifest_text,
169       # containers.mounts, workflows.definition). Other fields (e.g.,
170       # "properties" hashes) are not counted against this limit.
171       MaxIndexDatabaseRead: 134217728
172
173       # Maximum number of items to return when responding to a APIs that
174       # can return partial result sets using limit and offset parameters
175       # (e.g., *.index, groups.contents). If a request specifies a "limit"
176       # parameter higher than this value, this value is used instead.
177       MaxItemsPerResponse: 1000
178
179       # Maximum number of concurrent requests to accept in a single
180       # service process, or 0 for no limit. Currently supported only
181       # by keepstore.
182       MaxConcurrentRequests: 0
183
184       # Maximum number of 64MiB memory buffers per keepstore server
185       # process, or 0 for no limit.
186       MaxKeepBlockBuffers: 128
187
188       # API methods to disable. Disabled methods are not listed in the
189       # discovery document, and respond 404 to all requests.
190       # Example: {"jobs.create":{}, "pipeline_instances.create": {}}
191       DisabledAPIs: {}
192
193       # Interval (seconds) between asynchronous permission view updates. Any
194       # permission-updating API called with the 'async' parameter schedules a an
195       # update on the permission view in the future, if not already scheduled.
196       AsyncPermissionsUpdateInterval: 20s
197
198       # Maximum number of concurrent outgoing requests to make while
199       # serving a single incoming multi-cluster (federated) request.
200       MaxRequestAmplification: 4
201
202       # RailsSessionSecretToken is a string of alphanumeric characters
203       # used by Rails to sign session tokens. IMPORTANT: This is a
204       # site secret. It should be at least 50 characters.
205       RailsSessionSecretToken: ""
206
207       # Maximum wall clock time to spend handling an incoming request.
208       RequestTimeout: 5m
209
210       # Websocket will send a periodic empty event after 'SendTimeout'
211       # if there is no other activity to maintain the connection /
212       # detect dropped connections.
213       SendTimeout: 60s
214
215       WebsocketClientEventQueue: 64
216       WebsocketServerEventQueue: 4
217
218       # Timeout on requests to internal Keep services.
219       KeepServiceRequestTimeout: 15s
220
221     Users:
222       # Config parameters to automatically setup new users.  If enabled,
223       # this users will be able to self-activate.  Enable this if you want
224       # to run an open instance where anyone can create an account and use
225       # the system without requiring manual approval.
226       #
227       # The params AutoSetupNewUsersWith* are meaningful only when AutoSetupNewUsers is turned on.
228       # AutoSetupUsernameBlacklist is a list of usernames to be blacklisted for auto setup.
229       AutoSetupNewUsers: false
230       AutoSetupNewUsersWithVmUUID: ""
231       AutoSetupNewUsersWithRepository: false
232       AutoSetupUsernameBlacklist:
233         arvados: {}
234         git: {}
235         gitolite: {}
236         gitolite-admin: {}
237         root: {}
238         syslog: {}
239         SAMPLE: {}
240
241       # When NewUsersAreActive is set to true, new users will be active
242       # immediately.  This skips the "self-activate" step which enforces
243       # user agreements.  Should only be enabled for development.
244       NewUsersAreActive: false
245
246       # The e-mail address of the user you would like to become marked as an admin
247       # user on their first login.
248       # In the default configuration, authentication happens through the Arvados SSO
249       # server, which uses OAuth2 against Google's servers, so in that case this
250       # should be an address associated with a Google account.
251       AutoAdminUserWithEmail: ""
252
253       # If AutoAdminFirstUser is set to true, the first user to log in when no
254       # other admin users exist will automatically become an admin user.
255       AutoAdminFirstUser: false
256
257       # Email address to notify whenever a user creates a profile for the
258       # first time
259       UserProfileNotificationAddress: ""
260       AdminNotifierEmailFrom: arvados@example.com
261       EmailSubjectPrefix: "[ARVADOS] "
262       UserNotifierEmailFrom: arvados@example.com
263       NewUserNotificationRecipients: {}
264       NewInactiveUserNotificationRecipients: {}
265
266       # Set AnonymousUserToken to enable anonymous user access. You can get
267       # the token by running "bundle exec ./script/get_anonymous_user_token.rb"
268       # in the directory where your API server is running.
269       AnonymousUserToken: ""
270
271     AuditLogs:
272       # Time to keep audit logs, in seconds. (An audit log is a row added
273       # to the "logs" table in the PostgreSQL database each time an
274       # Arvados object is created, modified, or deleted.)
275       #
276       # Currently, websocket event notifications rely on audit logs, so
277       # this should not be set lower than 300 (5 minutes).
278       MaxAge: 336h
279
280       # Maximum number of log rows to delete in a single SQL transaction.
281       #
282       # If MaxDeleteBatch is 0, log entries will never be
283       # deleted by Arvados. Cleanup can be done by an external process
284       # without affecting any Arvados system processes, as long as very
285       # recent (<5 minutes old) logs are not deleted.
286       #
287       # 100000 is a reasonable batch size for most sites.
288       MaxDeleteBatch: 0
289
290       # Attributes to suppress in events and audit logs.  Notably,
291       # specifying {"manifest_text": {}} here typically makes the database
292       # smaller and faster.
293       #
294       # Warning: Using any non-empty value here can have undesirable side
295       # effects for any client or component that relies on event logs.
296       # Use at your own risk.
297       UnloggedAttributes: {}
298
299     SystemLogs:
300
301       # Logging threshold: panic, fatal, error, warn, info, debug, or
302       # trace
303       LogLevel: info
304
305       # Logging format: json or text
306       Format: json
307
308       # Maximum characters of (JSON-encoded) query parameters to include
309       # in each request log entry. When params exceed this size, they will
310       # be JSON-encoded, truncated to this size, and logged as
311       # params_truncated.
312       MaxRequestLogParamsSize: 2000
313
314     Collections:
315       # Allow clients to create collections by providing a manifest with
316       # unsigned data blob locators. IMPORTANT: This effectively disables
317       # access controls for data stored in Keep: a client who knows a hash
318       # can write a manifest that references the hash, pass it to
319       # collections.create (which will create a permission link), use
320       # collections.get to obtain a signature for that data locator, and
321       # use that signed locator to retrieve the data from Keep. Therefore,
322       # do not turn this on if your users expect to keep data private from
323       # one another!
324       BlobSigning: true
325
326       # BlobSigningKey is a string of alphanumeric characters used to
327       # generate permission signatures for Keep locators. It must be
328       # identical to the permission key given to Keep. IMPORTANT: This
329       # is a site secret. It should be at least 50 characters.
330       #
331       # Modifying BlobSigningKey will invalidate all existing
332       # signatures, which can cause programs to fail (e.g., arv-put,
333       # arv-get, and Crunch jobs).  To avoid errors, rotate keys only
334       # when no such processes are running.
335       BlobSigningKey: ""
336
337       # Enable garbage collection of unreferenced blobs in Keep.
338       BlobTrash: true
339
340       # Time to leave unreferenced blobs in "trashed" state before
341       # deleting them, or 0 to skip the "trashed" state entirely and
342       # delete unreferenced blobs.
343       #
344       # If you use any Amazon S3 buckets as storage volumes, this
345       # must be at least 24h to avoid occasional data loss.
346       BlobTrashLifetime: 336h
347
348       # How often to check for (and delete) trashed blocks whose
349       # BlobTrashLifetime has expired.
350       BlobTrashCheckInterval: 24h
351
352       # Maximum number of concurrent "trash blob" and "delete trashed
353       # blob" operations conducted by a single keepstore process. Each
354       # of these can be set to 0 to disable the respective operation.
355       #
356       # If BlobTrashLifetime is zero, "trash" and "delete trash"
357       # happen at once, so only the lower of these two values is used.
358       BlobTrashConcurrency: 4
359       BlobDeleteConcurrency: 4
360
361       # Maximum number of concurrent "create additional replica of
362       # existing blob" operations conducted by a single keepstore
363       # process.
364       BlobReplicateConcurrency: 4
365
366       # Default replication level for collections. This is used when a
367       # collection's replication_desired attribute is nil.
368       DefaultReplication: 2
369
370       # Lifetime (in seconds) of blob permission signatures generated by
371       # the API server. This determines how long a client can take (after
372       # retrieving a collection record) to retrieve the collection data
373       # from Keep. If the client needs more time than that (assuming the
374       # collection still has the same content and the relevant user/token
375       # still has permission) the client can retrieve the collection again
376       # to get fresh signatures.
377       #
378       # This must be exactly equal to the -blob-signature-ttl flag used by
379       # keepstore servers.  Otherwise, reading data blocks and saving
380       # collections will fail with HTTP 403 permission errors.
381       #
382       # Modifying BlobSigningTTL invalidates existing signatures; see
383       # BlobSigningKey note above.
384       #
385       # The default is 2 weeks.
386       BlobSigningTTL: 336h
387
388       # Default lifetime for ephemeral collections: 2 weeks. This must not
389       # be less than BlobSigningTTL.
390       DefaultTrashLifetime: 336h
391
392       # Interval (seconds) between trash sweeps. During a trash sweep,
393       # collections are marked as trash if their trash_at time has
394       # arrived, and deleted if their delete_at time has arrived.
395       TrashSweepInterval: 60s
396
397       # If true, enable collection versioning.
398       # When a collection's preserve_version field is true or the current version
399       # is older than the amount of seconds defined on PreserveVersionIfIdle,
400       # a snapshot of the collection's previous state is created and linked to
401       # the current collection.
402       CollectionVersioning: false
403
404       #   0s = auto-create a new version on every update.
405       #  -1s = never auto-create new versions.
406       # > 0s = auto-create a new version when older than the specified number of seconds.
407       PreserveVersionIfIdle: -1s
408
409       # Managed collection properties. At creation time, if the client didn't
410       # provide the listed keys, they will be automatically populated following
411       # one of the following behaviors:
412       #
413       # * UUID of the user who owns the containing project.
414       #   responsible_person_uuid: {Function: original_owner, Protected: true}
415       #
416       # * Default concrete value.
417       #   foo_bar: {Value: baz, Protected: false}
418       #
419       # If Protected is true, only an admin user can modify its value.
420       ManagedProperties:
421         SAMPLE: {Function: original_owner, Protected: true}
422
423       # In "trust all content" mode, Workbench will redirect download
424       # requests to WebDAV preview link, even in the cases when
425       # WebDAV would have to expose XSS vulnerabilities in order to
426       # handle the redirect (see discussion on Services.WebDAV).
427       #
428       # This setting has no effect in the recommended configuration,
429       # where the WebDAV is configured to have a separate domain for
430       # every collection; in this case XSS protection is provided by
431       # browsers' same-origin policy.
432       #
433       # The default setting (false) is appropriate for a multi-user site.
434       TrustAllContent: false
435
436       # Cache parameters for WebDAV content serving:
437       # * TTL: Maximum time to cache manifests and permission checks.
438       # * UUIDTTL: Maximum time to cache collection state.
439       # * MaxBlockEntries: Maximum number of block cache entries.
440       # * MaxCollectionEntries: Maximum number of collection cache entries.
441       # * MaxCollectionBytes: Approximate memory limit for collection cache.
442       # * MaxPermissionEntries: Maximum number of permission cache entries.
443       # * MaxUUIDEntries: Maximum number of UUID cache entries.
444       WebDAVCache:
445         TTL: 300s
446         UUIDTTL: 5s
447         MaxBlockEntries:      4
448         MaxCollectionEntries: 1000
449         MaxCollectionBytes:   100000000
450         MaxPermissionEntries: 1000
451         MaxUUIDEntries:       1000
452
453     Login:
454       # These settings are provided by your OAuth2 provider (e.g.,
455       # sso-provider).
456       ProviderAppSecret: ""
457       ProviderAppID: ""
458
459     Git:
460       # Path to git or gitolite-shell executable. Each authenticated
461       # request will execute this program with the single argument "http-backend"
462       GitCommand: /usr/bin/git
463
464       # Path to Gitolite's home directory. If a non-empty path is given,
465       # the CGI environment will be set up to support the use of
466       # gitolite-shell as a GitCommand: for example, if GitoliteHome is
467       # "/gh", then the CGI environment will have GITOLITE_HTTP_HOME=/gh,
468       # PATH=$PATH:/gh/bin, and GL_BYPASS_ACCESS_CHECKS=1.
469       GitoliteHome: ""
470
471       # Git repositories must be readable by api server, or you won't be
472       # able to submit crunch jobs. To pass the test suites, put a clone
473       # of the arvados tree in {git_repositories_dir}/arvados.git or
474       # {git_repositories_dir}/arvados/.git
475       Repositories: /var/lib/arvados/git/repositories
476
477     TLS:
478       Certificate: ""
479       Key: ""
480       Insecure: false
481
482     Containers:
483       # List of supported Docker Registry image formats that compute nodes
484       # are able to use. `arv keep docker` will error out if a user tries
485       # to store an image with an unsupported format. Use an empty array
486       # to skip the compatibility check (and display a warning message to
487       # that effect).
488       #
489       # Example for sites running docker < 1.10: {"v1": {}}
490       # Example for sites running docker >= 1.10: {"v2": {}}
491       # Example for disabling check: {}
492       SupportedDockerImageFormats:
493         "v2": {}
494         SAMPLE: {}
495
496       # Include details about job reuse decisions in the server log. This
497       # causes additional database queries to run, so it should not be
498       # enabled unless you expect to examine the resulting logs for
499       # troubleshooting purposes.
500       LogReuseDecisions: false
501
502       # Default value for keep_cache_ram of a container's runtime_constraints.
503       DefaultKeepCacheRAM: 268435456
504
505       # Number of times a container can be unlocked before being
506       # automatically cancelled.
507       MaxDispatchAttempts: 5
508
509       # Default value for container_count_max for container requests.  This is the
510       # number of times Arvados will create a new container to satisfy a container
511       # request.  If a container is cancelled it will retry a new container if
512       # container_count < container_count_max on any container requests associated
513       # with the cancelled container.
514       MaxRetryAttempts: 3
515
516       # The maximum number of compute nodes that can be in use simultaneously
517       # If this limit is reduced, any existing nodes with slot number >= new limit
518       # will not be counted against the new limit. In other words, the new limit
519       # won't be strictly enforced until those nodes with higher slot numbers
520       # go down.
521       MaxComputeVMs: 64
522
523       # Preemptible instance support (e.g. AWS Spot Instances)
524       # When true, child containers will get created with the preemptible
525       # scheduling parameter parameter set.
526       UsePreemptibleInstances: false
527
528       # PEM encoded SSH key (RSA, DSA, or ECDSA) used by the
529       # (experimental) cloud dispatcher for executing containers on
530       # worker VMs. Begins with "-----BEGIN RSA PRIVATE KEY-----\n"
531       # and ends with "\n-----END RSA PRIVATE KEY-----\n".
532       DispatchPrivateKey: none
533
534       # Maximum time to wait for workers to come up before abandoning
535       # stale locks from a previous dispatch process.
536       StaleLockTimeout: 1m
537
538       # The crunch-run command to manage the container on a node
539       CrunchRunCommand: "crunch-run"
540
541       # Extra arguments to add to crunch-run invocation
542       # Example: ["--cgroup-parent-subsystem=memory"]
543       CrunchRunArgumentsList: []
544
545       # Extra RAM to reserve on the node, in addition to
546       # the amount specified in the container's RuntimeConstraints
547       ReserveExtraRAM: 256MiB
548
549       # Minimum time between two attempts to run the same container
550       MinRetryPeriod: 0s
551
552       Logging:
553         # When you run the db:delete_old_container_logs task, it will find
554         # containers that have been finished for at least this many seconds,
555         # and delete their stdout, stderr, arv-mount, crunch-run, and
556         # crunchstat logs from the logs table.
557         MaxAge: 720h
558
559         # These two settings control how frequently log events are flushed to the
560         # database.  Log lines are buffered until either crunch_log_bytes_per_event
561         # has been reached or crunch_log_seconds_between_events has elapsed since
562         # the last flush.
563         LogBytesPerEvent: 4096
564         LogSecondsBetweenEvents: 1
565
566         # The sample period for throttling logs.
567         LogThrottlePeriod: 60s
568
569         # Maximum number of bytes that job can log over crunch_log_throttle_period
570         # before being silenced until the end of the period.
571         LogThrottleBytes: 65536
572
573         # Maximum number of lines that job can log over crunch_log_throttle_period
574         # before being silenced until the end of the period.
575         LogThrottleLines: 1024
576
577         # Maximum bytes that may be logged by a single job.  Log bytes that are
578         # silenced by throttling are not counted against this total.
579         LimitLogBytesPerJob: 67108864
580
581         LogPartialLineThrottlePeriod: 5s
582
583         # Container logs are written to Keep and saved in a
584         # collection, which is updated periodically while the
585         # container runs.  This value sets the interval between
586         # collection updates.
587         LogUpdatePeriod: 30m
588
589         # The log collection is also updated when the specified amount of
590         # log data (given in bytes) is produced in less than one update
591         # period.
592         LogUpdateSize: 32MiB
593
594       SLURM:
595         PrioritySpread: 0
596         SbatchArgumentsList: []
597         SbatchEnvironmentVariables:
598           SAMPLE: ""
599         Managed:
600           # Path to dns server configuration directory
601           # (e.g. /etc/unbound.d/conf.d). If false, do not write any config
602           # files or touch restart.txt (see below).
603           DNSServerConfDir: ""
604
605           # Template file for the dns server host snippets. See
606           # unbound.template in this directory for an example. If false, do
607           # not write any config files.
608           DNSServerConfTemplate: ""
609
610           # String to write to {dns_server_conf_dir}/restart.txt (with a
611           # trailing newline) after updating local data. If false, do not
612           # open or write the restart.txt file.
613           DNSServerReloadCommand: ""
614
615           # Command to run after each DNS update. Template variables will be
616           # substituted; see the "unbound" example below. If false, do not run
617           # a command.
618           DNSServerUpdateCommand: ""
619
620           ComputeNodeDomain: ""
621           ComputeNodeNameservers:
622             "192.168.1.1": {}
623             SAMPLE: {}
624
625           # Hostname to assign to a compute node when it sends a "ping" and the
626           # hostname in its Node record is nil.
627           # During bootstrapping, the "ping" script is expected to notice the
628           # hostname given in the ping response, and update its unix hostname
629           # accordingly.
630           # If false, leave the hostname alone (this is appropriate if your compute
631           # nodes' hostnames are already assigned by some other mechanism).
632           #
633           # One way or another, the hostnames of your node records should agree
634           # with your DNS records and your /etc/slurm-llnl/slurm.conf files.
635           #
636           # Example for compute0000, compute0001, ....:
637           # assign_node_hostname: compute%<slot_number>04d
638           # (See http://ruby-doc.org/core-2.2.2/Kernel.html#method-i-format for more.)
639           AssignNodeHostname: "compute%<slot_number>d"
640
641       JobsAPI:
642         # Enable the legacy 'jobs' API (crunch v1).  This value must be a string.
643         #
644         # Note: this only enables read-only access, creating new
645         # legacy jobs and pipelines is not supported.
646         #
647         # 'auto' -- (default) enable the Jobs API only if it has been used before
648         #         (i.e., there are job records in the database)
649         # 'true' -- enable the Jobs API despite lack of existing records.
650         # 'false' -- disable the Jobs API despite presence of existing records.
651         Enable: 'auto'
652
653         # Git repositories must be readable by api server, or you won't be
654         # able to submit crunch jobs. To pass the test suites, put a clone
655         # of the arvados tree in {git_repositories_dir}/arvados.git or
656         # {git_repositories_dir}/arvados/.git
657         GitInternalDir: /var/lib/arvados/internal.git
658
659       CloudVMs:
660         # Enable the cloud scheduler (experimental).
661         Enable: false
662
663         # Name/number of port where workers' SSH services listen.
664         SSHPort: "22"
665
666         # Interval between queue polls.
667         PollInterval: 10s
668
669         # Shell command to execute on each worker to determine whether
670         # the worker is booted and ready to run containers. It should
671         # exit zero if the worker is ready.
672         BootProbeCommand: "docker ps -q"
673
674         # Minimum interval between consecutive probes to a single
675         # worker.
676         ProbeInterval: 10s
677
678         # Maximum probes per second, across all workers in a pool.
679         MaxProbesPerSecond: 10
680
681         # Time before repeating SIGTERM when killing a container.
682         TimeoutSignal: 5s
683
684         # Time to give up on SIGTERM and write off the worker.
685         TimeoutTERM: 2m
686
687         # Maximum create/destroy-instance operations per second (0 =
688         # unlimited).
689         MaxCloudOpsPerSecond: 0
690
691         # Interval between cloud provider syncs/updates ("list all
692         # instances").
693         SyncInterval: 1m
694
695         # Time to leave an idle worker running (in case new containers
696         # appear in the queue that it can run) before shutting it
697         # down.
698         TimeoutIdle: 1m
699
700         # Time to wait for a new worker to boot (i.e., pass
701         # BootProbeCommand) before giving up and shutting it down.
702         TimeoutBooting: 10m
703
704         # Maximum time a worker can stay alive with no successful
705         # probes before being automatically shut down.
706         TimeoutProbe: 10m
707
708         # Time after shutting down a worker to retry the
709         # shutdown/destroy operation.
710         TimeoutShutdown: 10s
711
712         # Worker VM image ID.
713         ImageID: ""
714
715         # Tags to add on all resources (VMs, NICs, disks) created by
716         # the container dispatcher. (Arvados's own tags --
717         # InstanceType, IdleBehavior, and InstanceSecret -- will also
718         # be added.)
719         ResourceTags:
720           SAMPLE: "tag value"
721
722         # Prefix for predefined tags used by Arvados (InstanceSetID,
723         # InstanceType, InstanceSecret, IdleBehavior). With the
724         # default value "Arvados", tags are "ArvadosInstanceSetID",
725         # "ArvadosInstanceSecret", etc.
726         #
727         # This should only be changed while no cloud resources are in
728         # use and the cloud dispatcher is not running. Otherwise,
729         # VMs/resources that were added using the old tag prefix will
730         # need to be detected and cleaned up manually.
731         TagKeyPrefix: Arvados
732
733         # Cloud driver: "azure" (Microsoft Azure) or "ec2" (Amazon AWS).
734         Driver: ec2
735
736         # Cloud-specific driver parameters.
737         DriverParameters:
738
739           # (ec2) Credentials.
740           AccessKeyID: ""
741           SecretAccessKey: ""
742
743           # (ec2) Instance configuration.
744           SecurityGroupIDs:
745             "SAMPLE": {}
746           SubnetID: ""
747           Region: ""
748           EBSVolumeType: gp2
749           AdminUsername: debian
750
751           # (azure) Credentials.
752           SubscriptionID: ""
753           ClientID: ""
754           ClientSecret: ""
755           TenantID: ""
756
757           # (azure) Instance configuration.
758           CloudEnvironment: AzurePublicCloud
759           ResourceGroup: ""
760           Location: centralus
761           Network: ""
762           Subnet: ""
763           StorageAccount: ""
764           BlobContainer: ""
765           DeleteDanglingResourcesAfter: 20s
766           AdminUsername: arvados
767
768     InstanceTypes:
769
770       # Use the instance type name as the key (in place of "SAMPLE" in
771       # this sample entry).
772       SAMPLE:
773         # Cloud provider's instance type. Defaults to the configured type name.
774         ProviderType: ""
775         VCPUs: 1
776         RAM: 128MiB
777         IncludedScratch: 16GB
778         AddedScratch: 0
779         Price: 0.1
780         Preemptible: false
781
782     Volumes:
783       SAMPLE:
784         AccessViaHosts:
785           SAMPLE:
786             ReadOnly: false
787         ReadOnly: false
788         Replication: 1
789         StorageClasses:
790           default: true
791           SAMPLE: true
792         Driver: s3
793         DriverParameters:
794
795           # for s3 driver
796           AccessKey: aaaaa
797           SecretKey: aaaaa
798           Endpoint: ""
799           Region: us-east-1a
800           Bucket: aaaaa
801           LocationConstraint: false
802           IndexPageSize: 1000
803           ConnectTimeout: 1m
804           ReadTimeout: 10m
805           RaceWindow: 24h
806           UnsafeDelete: false
807
808           # for azure driver
809           StorageAccountName: aaaaa
810           StorageAccountKey: aaaaa
811           StorageBaseURL: core.windows.net
812           ContainerName: aaaaa
813           RequestTimeout: 30s
814           ListBlobsRetryDelay: 10s
815           ListBlobsMaxAttempts: 10
816           MaxGetBytes: 0
817           WriteRaceInterval: 15s
818           WriteRacePollTime: 1s
819
820           # for local directory driver
821           Root: /var/lib/arvados/keep-data
822           Serialize: false
823
824     Mail:
825       MailchimpAPIKey: ""
826       MailchimpListID: ""
827       SendUserSetupNotificationEmail: true
828
829       # Bug/issue report notification to and from addresses
830       IssueReporterEmailFrom: "arvados@example.com"
831       IssueReporterEmailTo: "arvados@example.com"
832       SupportEmailAddress: "arvados@example.com"
833
834       # Generic issue email from
835       EmailFrom: "arvados@example.com"
836     RemoteClusters:
837       "*":
838         Host: ""
839         Proxy: false
840         Scheme: https
841         Insecure: false
842         ActivateUsers: false
843       SAMPLE:
844         # API endpoint host or host:port; default is {id}.arvadosapi.com
845         Host: sample.arvadosapi.com
846
847         # Perform a proxy request when a local client requests an
848         # object belonging to this remote.
849         Proxy: false
850
851         # Default "https". Can be set to "http" for testing.
852         Scheme: https
853
854         # Disable TLS verify. Can be set to true for testing.
855         Insecure: false
856
857         # When users present tokens issued by this remote cluster, and
858         # their accounts are active on the remote cluster, activate
859         # them on this cluster too.
860         ActivateUsers: false
861
862     Workbench:
863       # Workbench1 configs
864       Theme: default
865       ActivationContactLink: mailto:info@arvados.org
866       ArvadosDocsite: https://doc.arvados.org
867       ArvadosPublicDataDocURL: https://playground.arvados.org/projects/public
868       ShowUserAgreementInline: false
869       SecretKeyBase: ""
870
871       # Scratch directory used by the remote repository browsing
872       # feature. If it doesn't exist, it (and any missing parents) will be
873       # created using mkdir_p.
874       RepositoryCache: /var/www/arvados-workbench/current/tmp/git
875
876       # Below is a sample setting of user_profile_form_fields config parameter.
877       # This configuration parameter should be set to either false (to disable) or
878       # to a map as shown below.
879       # Configure the map of input fields to be displayed in the profile page
880       # using the attribute "key" for each of the input fields.
881       # This sample shows configuration with one required and one optional form fields.
882       # For each of these input fields:
883       #   You can specify "Type" as "text" or "select".
884       #   List the "Options" to be displayed for each of the "select" menu.
885       #   Set "Required" as "true" for any of these fields to make them required.
886       # If any of the required fields are missing in the user's profile, the user will be
887       # redirected to the profile page before they can access any Workbench features.
888       UserProfileFormFields:
889         SAMPLE:
890           Type: select
891           FormFieldTitle: Best color
892           FormFieldDescription: your favorite color
893           Required: false
894           Position: 1
895           Options:
896             red: {}
897             blue: {}
898             green: {}
899             SAMPLE: {}
900
901         # exampleTextValue:  # key that will be set in properties
902         #   Type: text  #
903         #   FormFieldTitle: ""
904         #   FormFieldDescription: ""
905         #   Required: true
906         #   Position: 1
907         # exampleOptionsValue:
908         #   Type: select
909         #   FormFieldTitle: ""
910         #   FormFieldDescription: ""
911         #   Required: true
912         #   Position: 1
913         #   Options:
914         #     red: {}
915         #     blue: {}
916         #     yellow: {}
917
918       # Use "UserProfileFormMessage to configure the message you want
919       # to display on the profile page.
920       UserProfileFormMessage: 'Welcome to Arvados. All <span style="color:red">required fields</span> must be completed before you can proceed.'
921
922       # Mimetypes of applications for which the view icon
923       # would be enabled in a collection's show page.
924       # It is sufficient to list only applications here.
925       # No need to list text and image types.
926       ApplicationMimetypesWithViewIcon:
927         cwl: {}
928         fasta: {}
929         go: {}
930         javascript: {}
931         json: {}
932         pdf: {}
933         python: {}
934         x-python: {}
935         r: {}
936         rtf: {}
937         sam: {}
938         x-sh: {}
939         vnd.realvnc.bed: {}
940         xml: {}
941         xsl: {}
942         SAMPLE: {}
943
944       # The maximum number of bytes to load in the log viewer
945       LogViewerMaxBytes: 1M
946
947       # When anonymous_user_token is configured, show public projects page
948       EnablePublicProjectsPage: true
949
950       # By default, disable the "Getting Started" popup which is specific to Arvados playground
951       EnableGettingStartedPopup: false
952
953       # Ask Arvados API server to compress its response payloads.
954       APIResponseCompression: true
955
956       # Timeouts for API requests.
957       APIClientConnectTimeout: 2m
958       APIClientReceiveTimeout: 5m
959
960       # Maximum number of historic log records of a running job to fetch
961       # and display in the Log tab, while subscribing to web sockets.
962       RunningJobLogRecordsToFetch: 2000
963
964       # In systems with many shared projects, loading of dashboard and topnav
965       # cab be slow due to collections indexing; use the following parameters
966       # to suppress these properties
967       ShowRecentCollectionsOnDashboard: true
968       ShowUserNotifications: true
969
970       # Enable/disable "multi-site search" in top nav ("true"/"false"), or
971       # a link to the multi-site search page on a "home" Workbench site.
972       #
973       # Example:
974       #   https://workbench.qr1hi.arvadosapi.com/collections/multisite
975       MultiSiteSearch: ""
976
977       # Should workbench allow management of local git repositories? Set to false if
978       # the jobs api is disabled and there are no local git repositories.
979       Repositories: true
980
981       SiteName: Arvados Workbench
982       ProfilingEnabled: false
983
984       # This is related to obsolete Google OpenID 1.0 login
985       # but some workbench stuff still expects it to be set.
986       DefaultOpenIdPrefix: "https://www.google.com/accounts/o8/id"
987
988       # Workbench2 configs
989       VocabularyURL: ""
990       FileViewersConfigURL: ""
991
992     # Use experimental controller code (see https://dev.arvados.org/issues/14287)
993     EnableBetaController14287: false