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