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