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