15003: Add dispatch-cloud configs to default/template file.
[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       RailsAPI:
29         InternalURLs: {}
30         ExternalURL: "-"
31       Controller:
32         InternalURLs: {}
33         ExternalURL: ""
34       Websocket:
35         InternalURLs: {}
36         ExternalURL: ""
37       Keepbalance:
38         InternalURLs: {}
39         ExternalURL: "-"
40       GitHTTP:
41         InternalURLs: {}
42         ExternalURL: ""
43       GitSSH:
44         ExternalURL: ""
45       DispatchCloud:
46         InternalURLs: {}
47         ExternalURL: "-"
48       SSO:
49         ExternalURL: ""
50       Keepproxy:
51         InternalURLs: {}
52         ExternalURL: ""
53       WebDAV:
54         InternalURLs: {}
55         ExternalURL: ""
56       WebDAVDownload:
57         InternalURLs: {}
58         ExternalURL: ""
59       Keepstore:
60         InternalURLs: {}
61         ExternalURL: "-"
62       Composer:
63         ExternalURL: ""
64       WebShell:
65         ExternalURL: ""
66       Workbench1:
67         InternalURLs: {}
68         ExternalURL: ""
69       Workbench2:
70         ExternalURL: ""
71       Nodemanager:
72         InternalURLs: {}
73         ExternalURL: "-"
74       Health:
75         InternalURLs: {}
76         ExternalURL: "-"
77
78     PostgreSQL:
79       # max concurrent connections per arvados server daemon
80       ConnectionPool: 32
81       Connection:
82         # All parameters here are passed to the PG client library in a connection string;
83         # see https://www.postgresql.org/docs/current/static/libpq-connect.html#LIBPQ-PARAMKEYWORDS
84         Host: ""
85         Port: ""
86         User: ""
87         Password: ""
88         DBName: ""
89     API:
90       # Maximum size (in bytes) allowed for a single API request.  This
91       # limit is published in the discovery document for use by clients.
92       # Note: You must separately configure the upstream web server or
93       # proxy to actually enforce the desired maximum request size on the
94       # server side.
95       MaxRequestSize: 134217728
96
97       # Limit the number of bytes read from the database during an index
98       # request (by retrieving and returning fewer rows than would
99       # normally be returned in a single response).
100       # Note 1: This setting never reduces the number of returned rows to
101       # zero, no matter how big the first data row is.
102       # Note 2: Currently, this is only checked against a specific set of
103       # columns that tend to get large (collections.manifest_text,
104       # containers.mounts, workflows.definition). Other fields (e.g.,
105       # "properties" hashes) are not counted against this limit.
106       MaxIndexDatabaseRead: 134217728
107
108       # Maximum number of items to return when responding to a APIs that
109       # can return partial result sets using limit and offset parameters
110       # (e.g., *.index, groups.contents). If a request specifies a "limit"
111       # parameter higher than this value, this value is used instead.
112       MaxItemsPerResponse: 1000
113
114       # API methods to disable. Disabled methods are not listed in the
115       # discovery document, and respond 404 to all requests.
116       # Example: ["jobs.create", "pipeline_instances.create"]
117       DisabledAPIs: []
118
119       # Interval (seconds) between asynchronous permission view updates. Any
120       # permission-updating API called with the 'async' parameter schedules a an
121       # update on the permission view in the future, if not already scheduled.
122       AsyncPermissionsUpdateInterval: 20
123
124       # Maximum number of concurrent outgoing requests to make while
125       # serving a single incoming multi-cluster (federated) request.
126       MaxRequestAmplification: 4
127
128       # RailsSessionSecretToken is a string of alphanumeric characters
129       # used by Rails to sign session tokens. IMPORTANT: This is a
130       # site secret. It should be at least 50 characters.
131       RailsSessionSecretToken: ""
132
133       # Maximum wall clock time to spend handling an incoming request.
134       RequestTimeout: 5m
135
136     Users:
137       # Config parameters to automatically setup new users.  If enabled,
138       # this users will be able to self-activate.  Enable this if you want
139       # to run an open instance where anyone can create an account and use
140       # the system without requiring manual approval.
141       #
142       # The params auto_setup_new_users_with_* are meaningful only when auto_setup_new_users is turned on.
143       # auto_setup_name_blacklist is a list of usernames to be blacklisted for auto setup.
144       AutoSetupNewUsers: false
145       AutoSetupNewUsersWithVmUUID: ""
146       AutoSetupNewUsersWithRepository: false
147       AutoSetupUsernameBlacklist: [arvados, git, gitolite, gitolite-admin, root, syslog]
148
149       # When new_users_are_active is set to true, new users will be active
150       # immediately.  This skips the "self-activate" step which enforces
151       # user agreements.  Should only be enabled for development.
152       NewUsersAreActive: false
153
154       # The e-mail address of the user you would like to become marked as an admin
155       # user on their first login.
156       # In the default configuration, authentication happens through the Arvados SSO
157       # server, which uses OAuth2 against Google's servers, so in that case this
158       # should be an address associated with a Google account.
159       AutoAdminUserWithEmail: ""
160
161       # If auto_admin_first_user is set to true, the first user to log in when no
162       # other admin users exist will automatically become an admin user.
163       AutoAdminFirstUser: false
164
165       # Email address to notify whenever a user creates a profile for the
166       # first time
167       UserProfileNotificationAddress: ""
168       AdminNotifierEmailFrom: arvados@example.com
169       EmailSubjectPrefix: "[ARVADOS] "
170       UserNotifierEmailFrom: arvados@example.com
171       NewUserNotificationRecipients: []
172       NewInactiveUserNotificationRecipients: []
173
174     AuditLogs:
175       # Time to keep audit logs, in seconds. (An audit log is a row added
176       # to the "logs" table in the PostgreSQL database each time an
177       # Arvados object is created, modified, or deleted.)
178       #
179       # Currently, websocket event notifications rely on audit logs, so
180       # this should not be set lower than 300 (5 minutes).
181       MaxAge: 336h
182
183       # Maximum number of log rows to delete in a single SQL transaction.
184       #
185       # If max_audit_log_delete_batch is 0, log entries will never be
186       # deleted by Arvados. Cleanup can be done by an external process
187       # without affecting any Arvados system processes, as long as very
188       # recent (<5 minutes old) logs are not deleted.
189       #
190       # 100000 is a reasonable batch size for most sites.
191       MaxDeleteBatch: 0
192
193       # Attributes to suppress in events and audit logs.  Notably,
194       # specifying ["manifest_text"] here typically makes the database
195       # smaller and faster.
196       #
197       # Warning: Using any non-empty value here can have undesirable side
198       # effects for any client or component that relies on event logs.
199       # Use at your own risk.
200       UnloggedAttributes: []
201
202     SystemLogs:
203
204       # Logging threshold: panic, fatal, error, warn, info, debug, or
205       # trace
206       LogLevel: info
207
208       # Logging format: json or text
209       Format: json
210
211       # Maximum characters of (JSON-encoded) query parameters to include
212       # in each request log entry. When params exceed this size, they will
213       # be JSON-encoded, truncated to this size, and logged as
214       # params_truncated.
215       MaxRequestLogParamsSize: 2000
216
217     Collections:
218       # Allow clients to create collections by providing a manifest with
219       # unsigned data blob locators. IMPORTANT: This effectively disables
220       # access controls for data stored in Keep: a client who knows a hash
221       # can write a manifest that references the hash, pass it to
222       # collections.create (which will create a permission link), use
223       # collections.get to obtain a signature for that data locator, and
224       # use that signed locator to retrieve the data from Keep. Therefore,
225       # do not turn this on if your users expect to keep data private from
226       # one another!
227       BlobSigning: true
228
229       # blob_signing_key is a string of alphanumeric characters used to
230       # generate permission signatures for Keep locators. It must be
231       # identical to the permission key given to Keep. IMPORTANT: This is
232       # a site secret. It should be at least 50 characters.
233       #
234       # Modifying blob_signing_key will invalidate all existing
235       # signatures, which can cause programs to fail (e.g., arv-put,
236       # arv-get, and Crunch jobs).  To avoid errors, rotate keys only when
237       # no such processes are running.
238       BlobSigningKey: ""
239
240       # Default replication level for collections. This is used when a
241       # collection's replication_desired attribute is nil.
242       DefaultReplication: 2
243
244       # Lifetime (in seconds) of blob permission signatures generated by
245       # the API server. This determines how long a client can take (after
246       # retrieving a collection record) to retrieve the collection data
247       # from Keep. If the client needs more time than that (assuming the
248       # collection still has the same content and the relevant user/token
249       # still has permission) the client can retrieve the collection again
250       # to get fresh signatures.
251       #
252       # This must be exactly equal to the -blob-signature-ttl flag used by
253       # keepstore servers.  Otherwise, reading data blocks and saving
254       # collections will fail with HTTP 403 permission errors.
255       #
256       # Modifying blob_signature_ttl invalidates existing signatures; see
257       # blob_signing_key note above.
258       #
259       # The default is 2 weeks.
260       BlobSigningTTL: 336h
261
262       # Default lifetime for ephemeral collections: 2 weeks. This must not
263       # be less than blob_signature_ttl.
264       DefaultTrashLifetime: 336h
265
266       # Interval (seconds) between trash sweeps. During a trash sweep,
267       # collections are marked as trash if their trash_at time has
268       # arrived, and deleted if their delete_at time has arrived.
269       TrashSweepInterval: 60
270
271       # If true, enable collection versioning.
272       # When a collection's preserve_version field is true or the current version
273       # is older than the amount of seconds defined on preserve_version_if_idle,
274       # a snapshot of the collection's previous state is created and linked to
275       # the current collection.
276       CollectionVersioning: false
277
278       #   0 = auto-create a new version on every update.
279       #  -1 = never auto-create new versions.
280       # > 0 = auto-create a new version when older than the specified number of seconds.
281       PreserveVersionIfIdle: -1
282
283     Login:
284       # These settings are provided by your OAuth2 provider (e.g.,
285       # sso-provider).
286       ProviderAppSecret: ""
287       ProviderAppID: ""
288
289     Git:
290       # Git repositories must be readable by api server, or you won't be
291       # able to submit crunch jobs. To pass the test suites, put a clone
292       # of the arvados tree in {git_repositories_dir}/arvados.git or
293       # {git_repositories_dir}/arvados/.git
294       Repositories: /var/lib/arvados/git/repositories
295
296     TLS:
297       Certificate: ""
298       Key: ""
299       Insecure: false
300
301     Containers:
302       # List of supported Docker Registry image formats that compute nodes
303       # are able to use. ` + "`" + `arv keep docker` + "`" + ` will error out if a user tries
304       # to store an image with an unsupported format. Use an empty array
305       # to skip the compatibility check (and display a warning message to
306       # that effect).
307       #
308       # Example for sites running docker < 1.10: ["v1"]
309       # Example for sites running docker >= 1.10: ["v2"]
310       # Example for disabling check: []
311       SupportedDockerImageFormats: ["v2"]
312
313       # Include details about job reuse decisions in the server log. This
314       # causes additional database queries to run, so it should not be
315       # enabled unless you expect to examine the resulting logs for
316       # troubleshooting purposes.
317       LogReuseDecisions: false
318
319       # Default value for keep_cache_ram of a container's runtime_constraints.
320       DefaultKeepCacheRAM: 268435456
321
322       # Number of times a container can be unlocked before being
323       # automatically cancelled.
324       MaxDispatchAttempts: 5
325
326       # Default value for container_count_max for container requests.  This is the
327       # number of times Arvados will create a new container to satisfy a container
328       # request.  If a container is cancelled it will retry a new container if
329       # container_count < container_count_max on any container requests associated
330       # with the cancelled container.
331       MaxRetryAttempts: 3
332
333       # The maximum number of compute nodes that can be in use simultaneously
334       # If this limit is reduced, any existing nodes with slot number >= new limit
335       # will not be counted against the new limit. In other words, the new limit
336       # won't be strictly enforced until those nodes with higher slot numbers
337       # go down.
338       MaxComputeVMs: 64
339
340       # Preemptible instance support (e.g. AWS Spot Instances)
341       # When true, child containers will get created with the preemptible
342       # scheduling parameter parameter set.
343       UsePreemptibleInstances: false
344
345       # Include details about job reuse decisions in the server log. This
346       # causes additional database queries to run, so it should not be
347       # enabled unless you expect to examine the resulting logs for
348       # troubleshooting purposes.
349       LogReuseDecisions: false
350
351       # PEM encoded SSH key (RSA, DSA, or ECDSA) used by the
352       # (experimental) cloud dispatcher for executing containers on
353       # worker VMs. Begins with "-----BEGIN RSA PRIVATE KEY-----\n"
354       # and ends with "\n-----END RSA PRIVATE KEY-----\n".
355       DispatchPrivateKey: none
356
357       # Maximum time to wait for workers to come up before abandoning
358       # stale locks from a previous dispatch process.
359       StaleLockTimeout: 1m
360
361       Logging:
362         # When you run the db:delete_old_container_logs task, it will find
363         # containers that have been finished for at least this many seconds,
364         # and delete their stdout, stderr, arv-mount, crunch-run, and
365         # crunchstat logs from the logs table.
366         MaxAge: 720h
367
368         # These two settings control how frequently log events are flushed to the
369         # database.  Log lines are buffered until either crunch_log_bytes_per_event
370         # has been reached or crunch_log_seconds_between_events has elapsed since
371         # the last flush.
372         LogBytesPerEvent: 4096
373         LogSecondsBetweenEvents: 1
374
375         # The sample period for throttling logs, in seconds.
376         LogThrottlePeriod: 60
377
378         # Maximum number of bytes that job can log over crunch_log_throttle_period
379         # before being silenced until the end of the period.
380         LogThrottleBytes: 65536
381
382         # Maximum number of lines that job can log over crunch_log_throttle_period
383         # before being silenced until the end of the period.
384         LogThrottleLines: 1024
385
386         # Maximum bytes that may be logged by a single job.  Log bytes that are
387         # silenced by throttling are not counted against this total.
388         LimitLogBytesPerJob: 67108864
389
390         LogPartialLineThrottlePeriod: 5
391
392         # Container logs are written to Keep and saved in a collection,
393         # which is updated periodically while the container runs.  This
394         # value sets the interval (given in seconds) between collection
395         # updates.
396         LogUpdatePeriod: 1800
397
398         # The log collection is also updated when the specified amount of
399         # log data (given in bytes) is produced in less than one update
400         # period.
401         LogUpdateSize: 33554432
402
403       SLURM:
404         Managed:
405           # Path to dns server configuration directory
406           # (e.g. /etc/unbound.d/conf.d). If false, do not write any config
407           # files or touch restart.txt (see below).
408           DNSServerConfDir: ""
409
410           # Template file for the dns server host snippets. See
411           # unbound.template in this directory for an example. If false, do
412           # not write any config files.
413           DNSServerConfTemplate: ""
414
415           # String to write to {dns_server_conf_dir}/restart.txt (with a
416           # trailing newline) after updating local data. If false, do not
417           # open or write the restart.txt file.
418           DNSServerReloadCommand: ""
419
420           # Command to run after each DNS update. Template variables will be
421           # substituted; see the "unbound" example below. If false, do not run
422           # a command.
423           DNSServerUpdateCommand: ""
424
425           ComputeNodeDomain: ""
426           ComputeNodeNameservers:
427             - 192.168.1.1
428
429           # Hostname to assign to a compute node when it sends a "ping" and the
430           # hostname in its Node record is nil.
431           # During bootstrapping, the "ping" script is expected to notice the
432           # hostname given in the ping response, and update its unix hostname
433           # accordingly.
434           # If false, leave the hostname alone (this is appropriate if your compute
435           # nodes' hostnames are already assigned by some other mechanism).
436           #
437           # One way or another, the hostnames of your node records should agree
438           # with your DNS records and your /etc/slurm-llnl/slurm.conf files.
439           #
440           # Example for compute0000, compute0001, ....:
441           # assign_node_hostname: compute%<slot_number>04d
442           # (See http://ruby-doc.org/core-2.2.2/Kernel.html#method-i-format for more.)
443           AssignNodeHostname: "compute%<slot_number>d"
444
445       JobsAPI:
446         # Enable the legacy Jobs API.  This value must be a string.
447         # 'auto' -- (default) enable the Jobs API only if it has been used before
448         #         (i.e., there are job records in the database)
449         # 'true' -- enable the Jobs API despite lack of existing records.
450         # 'false' -- disable the Jobs API despite presence of existing records.
451         Enable: 'auto'
452
453         # Git repositories must be readable by api server, or you won't be
454         # able to submit crunch jobs. To pass the test suites, put a clone
455         # of the arvados tree in {git_repositories_dir}/arvados.git or
456         # {git_repositories_dir}/arvados/.git
457         GitInternalDir: /var/lib/arvados/internal.git
458
459         # Docker image to be used when none found in runtime_constraints of a job
460         DefaultDockerImage: ""
461
462         # none or slurm_immediate
463         CrunchJobWrapper: none
464
465         # username, or false = do not set uid when running jobs.
466         CrunchJobUser: crunch
467
468         # The web service must be able to create/write this file, and
469         # crunch-job must be able to stat() it.
470         CrunchRefreshTrigger: /tmp/crunch_refresh_trigger
471
472         # Control job reuse behavior when two completed jobs match the
473         # search criteria and have different outputs.
474         #
475         # If true, in case of a conflict, reuse the earliest job (this is
476         # similar to container reuse behavior).
477         #
478         # If false, in case of a conflict, do not reuse any completed job,
479         # but do reuse an already-running job if available (this is the
480         # original job reuse behavior, and is still the default).
481         ReuseJobIfOutputsDiffer: false
482
483       CloudVMs:
484         # Enable the cloud scheduler (experimental).
485         Enable: false
486
487         # Name/number of port where workers' SSH services listen.
488         SSHPort: "22"
489
490         # Interval between queue polls.
491         PollInterval: 10s
492
493         # Shell command to execute on each worker to determine whether
494         # the worker is booted and ready to run containers. It should
495         # exit zero if the worker is ready.
496         BootProbeCommand: "docker ps"
497
498         # Minimum interval between consecutive probes to a single
499         # worker.
500         ProbeInterval: 10s
501
502         # Maximum probes per second, across all workers in a pool.
503         MaxProbesPerSecond: 10
504
505         # Time before repeating SIGTERM when killing a container.
506         TimeoutSignal: 5s
507
508         # Time to give up on SIGTERM and write off the worker.
509         TimeoutTERM: 2m
510
511         # Maximum create/destroy-instance operations per second (0 =
512         # unlimited).
513         MaxCloudOpsPerSecond: 0
514
515         # Interval between cloud provider syncs/updates ("list all
516         # instances").
517         SyncInterval: 1m
518
519         # Time to leave an idle worker running (in case new containers
520         # appear in the queue that it can run) before shutting it
521         # down.
522         TimeoutIdle: 1m
523
524         # Time to wait for a new worker to boot (i.e., pass
525         # BootProbeCommand) before giving up and shutting it down.
526         TimeoutBooting: 10m
527
528         # Maximum time a worker can stay alive with no successful
529         # probes before being automatically shut down.
530         TimeoutProbe: 10m
531
532         # Time after shutting down a worker to retry the
533         # shutdown/destroy operation.
534         TimeoutShutdown: 10s
535
536         # Worker VM image ID.
537         ImageID: ami-01234567890abcdef
538
539         # Cloud driver: "azure" (Microsoft Azure) or "ec2" (Amazon AWS).
540         Driver: ec2
541
542         # Cloud-specific driver parameters.
543         DriverParameters:
544
545           # (ec2) Credentials.
546           AccessKeyID: ""
547           SecretAccessKey: ""
548
549           # (ec2) Instance configuration.
550           SecurityGroupIDs:
551             - ""
552           SubnetID: ""
553           Region: ""
554           EBSVolumeType: gp2
555           AdminUsername: debian
556
557           # (azure) Credentials.
558           SubscriptionID: ""
559           ClientID: ""
560           ClientSecret: ""
561           TenantID: ""
562
563           # (azure) Instance configuration.
564           CloudEnvironment: AzurePublicCloud
565           ResourceGroup: ""
566           Location: centralus
567           Network: ""
568           Subnet: ""
569           StorageAccount: ""
570           BlobContainer: ""
571           DeleteDanglingResourcesAfter: 20s
572           AdminUsername: arvados
573
574     InstanceTypes:
575
576       # Use the instance type name as the key (in place of "SAMPLE" in
577       # this sample entry).
578       SAMPLE:
579         # Cloud provider's instance type. Defaults to the configured type name.
580         ProviderType: ""
581         VCPUs: 1
582         RAM: 128MiB
583         IncludedScratch: 16GB
584         AddedScratch: 0
585         Price: 0.1
586         Preemptible: false
587
588     Mail:
589       MailchimpAPIKey: ""
590       MailchimpListID: ""
591       SendUserSetupNotificationEmail: ""
592       IssueReporterEmailFrom: ""
593       IssueReporterEmailTo: ""
594       SupportEmailAddress: ""
595       EmailFrom: ""
596     RemoteClusters:
597       "*":
598         Host: ""
599         Proxy: false
600         Scheme: https
601         Insecure: false
602         ActivateUsers: false
603       SAMPLE:
604         Host: sample.arvadosapi.com
605         Proxy: false
606         Scheme: https
607         Insecure: false
608         ActivateUsers: false
609 `)