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