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