X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3c88abd3cb33cbe80bb81a7cca779fe668036c9e..711711827bb0c3564836707bb7d4453c60c6a98c:/services/api/config/application.default.yml diff --git a/services/api/config/application.default.yml b/services/api/config/application.default.yml index c709633d0b..f976a83ca9 100644 --- a/services/api/config/application.default.yml +++ b/services/api/config/application.default.yml @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + # Do not use this file for site configuration. Create application.yml # instead (see application.yml.example). # @@ -46,30 +50,28 @@ common: # to log in. workbench_address: false - # The ARVADOS_WEBSOCKETS environment variable determines whether to - # serve http, websockets, or both. - # - # If ARVADOS_WEBSOCKETS="true", http and websockets are both served - # from the same process. + # Client-facing URI for websocket service. Nginx should be + # configured to proxy this URI to arvados-ws; see + # http://doc.arvados.org/install/install-ws.html # - # If ARVADOS_WEBSOCKETS="ws-only", only websockets is served. + # If websocket_address is false (which is the default), no websocket + # server will be advertised to clients. This configuration is not + # supported. # - # If ARVADOS_WEBSOCKETS="false" or not set at all, only http is - # served. In this case, you should have a separate process serving - # websockets, and the address of that service should be given here - # as websocket_address. - # - # If websocket_address is false (which is the default), the - # discovery document will tell clients to use the current server as - # the websocket service, or (if the current server does not have - # websockets enabled) not to use websockets at all. - # - # Example: Clients will connect to the specified endpoint. - #websocket_address: wss://127.0.0.1:3333/websocket - # Default: Clients will connect to this server if it's running - # websockets, otherwise none at all. + # Example: + #websocket_address: wss://ws.zzzzz.arvadosapi.com/websocket websocket_address: false + # Maximum number of websocket connections allowed + websocket_max_connections: 500 + + # Maximum number of events a single connection can be backlogged + websocket_max_notify_backlog: 1000 + + # Maximum number of subscriptions a single websocket connection can have + # active. + websocket_max_filters: 10 + # Git repositories must be readable by api server, or you won't be # able to submit crunch jobs. To pass the test suites, put a clone # of the arvados tree in {git_repositories_dir}/arvados.git or @@ -115,7 +117,11 @@ common: ### New user and & email settings ### - # Config parameters to automatically setup new users. + # Config parameters to automatically setup new users. If enabled, + # this users will be able to self-activate. Enable this if you want + # to run an open instance where anyone can create an account and use + # the system without requiring manual approval. + # # The params auto_setup_new_users_with_* are meaningful only when auto_setup_new_users is turned on. # auto_setup_name_blacklist is a list of usernames to be blacklisted for auto setup. auto_setup_new_users: false @@ -123,7 +129,9 @@ common: auto_setup_new_users_with_repository: false auto_setup_name_blacklist: [arvados, git, gitolite, gitolite-admin, root, syslog] - # When new_users_are_active is set to true, the user agreement check is skipped. + # When new_users_are_active is set to true, new users will be active + # immediately. This skips the "self-activate" step which enforces + # user agreements. Should only be enabled for development. new_users_are_active: false # The e-mail address of the user you would like to become marked as an admin @@ -170,9 +178,21 @@ common: # The default is 2 weeks. blob_signature_ttl: 1209600 - # Default lifetime for ephemeral collections: 2 weeks. + # Default lifetime for ephemeral collections: 2 weeks. This must not + # be less than blob_signature_ttl. default_trash_lifetime: 1209600 + # Interval (seconds) between trash sweeps. During a trash sweep, + # collections are marked as trash if their trash_at time has + # arrived, and deleted if their delete_at time has arrived. + trash_sweep_interval: 60 + + # Maximum characters of (JSON-encoded) query parameters to include + # in each request log entry. When params exceed this size, they will + # be JSON-encoded, truncated to this size, and logged as + # params_truncated. + max_request_log_params_size: 2000 + # Maximum size (in bytes) allowed for a single API request. This # limit is published in the discovery document for use by clients. # Note: You must separately configure the upstream web server or @@ -185,12 +205,10 @@ common: # normally be returned in a single response). # Note 1: This setting never reduces the number of returned rows to # zero, no matter how big the first data row is. - # Note 2: Currently, this only limits the - # arvados.v1.collections.list API (GET /arvados/v1/collections), and - # only takes the size of manifest_text into account. Other fields - # (e.g., "properties" hashes) are not counted against this limit - # when returning collections, and the limit is not applied at all - # for other data types. + # Note 2: Currently, this is only checked against a specific set of + # columns that tend to get large (collections.manifest_text, + # containers.mounts, workflows.definition). Other fields (e.g., + # "properties" hashes) are not counted against this limit. max_index_database_read: 134217728 # Maximum number of items to return when responding to a APIs that @@ -204,6 +222,30 @@ common: # stderr logs from the logs table. clean_job_log_rows_after: <%= 30.days %> + # When you run the db:delete_old_container_logs task, it will find + # containers that have been finished for at least this many seconds, + # and delete their stdout, stderr, arv-mount, crunch-run, and + # crunchstat logs from the logs table. + clean_container_log_rows_after: <%= 30.days %> + + # Time to keep audit logs, in seconds. (An audit log is a row added + # to the "logs" table in the PostgreSQL database each time an + # Arvados object is created, modified, or deleted.) + # + # Currently, websocket event notifications rely on audit logs, so + # this should not be set lower than 600 (5 minutes). + max_audit_log_age: 1209600 + + # Maximum number of log rows to delete in a single SQL transaction. + # + # If max_audit_log_delete_batch is 0, log entries will never be + # deleted by Arvados. Cleanup can be done by an external process + # without affecting any Arvados system processes, as long as very + # recent (<5 minutes old) logs are not deleted. + # + # 100000 is a reasonable batch size for most sites. + max_audit_log_delete_batch: 0 + # The maximum number of compute nodes that can be in use simultaneously # If this limit is reduced, any existing nodes with slot number >= new limit # will not be counted against the new limit. In other words, the new limit @@ -233,14 +275,45 @@ common: # silenced by throttling are not counted against this total. crunch_limit_log_bytes_per_job: 67108864 + crunch_log_partial_line_throttle_period: 5 + + # Attributes to suppress in events and audit logs. Notably, + # specifying ["manifest_text"] here typically makes the database + # smaller and faster. + # + # Warning: Using any non-empty value here can have undesirable side + # effects for any client or component that relies on event logs. + # Use at your own risk. + unlogged_attributes: [] + + # API methods to disable. Disabled methods are not listed in the + # discovery document, and respond 404 to all requests. + # Example: ["jobs.create", "pipeline_instances.create"] + disable_api_methods: [] ### ### Crunch, DNS & compute node management ### + # Preemptible instance support (e.g. AWS Spot Instances) + # When true, child containers will get created with the preemptible + # scheduling parameter parameter set. + preemptible_instances: false + # Docker image to be used when none found in runtime_constraints of a job default_docker_image_for_jobs: false + # List of supported Docker Registry image formats that compute nodes + # are able to use. `arv keep docker` will error out if a user tries + # to store an image with an unsupported format. Use an empty array + # to skip the compatibility check (and display a warning message to + # that effect). + # + # Example for sites running docker < 1.10: ["v1"] + # Example for sites running docker >= 1.10: ["v2"] + # Example for disabling check: [] + docker_image_formats: ["v2"] + # :none or :slurm_immediate crunch_job_wrapper: :none @@ -299,15 +372,65 @@ common: assign_node_hostname: compute%d + ### + ### Job and container reuse logic. + ### + + # Include details about job reuse decisions in the server log. This + # causes additional database queries to run, so it should not be + # enabled unless you expect to examine the resulting logs for + # troubleshooting purposes. + log_reuse_decisions: false + + # Control job reuse behavior when two completed jobs match the + # search criteria and have different outputs. + # + # If true, in case of a conflict, reuse the earliest job (this is + # similar to container reuse behavior). + # + # If false, in case of a conflict, do not reuse any completed job, + # but do reuse an already-running job if available (this is the + # original job reuse behavior, and is still the default). + reuse_job_if_outputs_differ: false + + ### + ### Federation support. + ### + + # You can enable use of this cluster by users who are authenticated + # by a remote Arvados site. Control which remote hosts are trusted + # to authenticate which user IDs by configuring remote_hosts, + # remote_hosts_via_dns, or both. The default configuration disables + # remote authentication. + + # Map known prefixes to hosts. For example, if user IDs beginning + # with "zzzzz-" should be authenticated by the Arvados server at + # "zzzzz.example.com", use: + # + # remote_hosts: + # zzzzz: zzzzz.example.com + remote_hosts: {} + + # Use {prefix}.arvadosapi.com for any prefix not given in + # remote_hosts above. + remote_hosts_via_dns: false + + # List of cluster prefixes. These are "trusted" clusters, users + # from the clusters listed here will be automatically setup and + # activated. This is separate from the settings + # auto_setup_new_users and new_users_are_active. + auto_activate_users_from: [] + ### ### Remaining assorted configuration options. ### arvados_theme: default - # Permit insecure (OpenSSL::SSL::VERIFY_NONE) connections to the Single Sign - # On (sso) server. Should only be enabled during development when the SSO - # server is using a self-signed cert. + # Permit insecure (OpenSSL::SSL::VERIFY_NONE) connections to the + # Single Sign On (sso) server and remote Arvados sites. Should only + # be enabled during development when the SSO server is using a + # self-signed cert. sso_insecure: false ## Set Time.zone default to the specified zone and make Active @@ -343,7 +466,37 @@ common: # "git log". source_version: false - crunch_log_partial_line_throttle_period: 5 + # Override the automatic package version string. With the default version of + # false, the package version is read from package-build.version in Rails.root + # (included in vendor packages). + package_version: false + + # Enable asynchronous permission graph rebuild. Must run + # script/permission-updater.rb as a separate process. When the permission + # cache is invalidated, the background process will update the permission + # graph cache. This feature is experimental! + async_permissions_update: false + + # Default value for container_count_max for container requests. This is the + # number of times Arvados will create a new container to satisfy a container + # request. If a container is cancelled it will retry a new container if + # container_count < container_count_max on any container requests associated + # with the cancelled container. + container_count_max: 3 + + # Default value for keep_cache_ram of a container's runtime_constraints. + container_default_keep_cache_ram: 268435456 + + # Token to be included in all healthcheck requests. Disabled by default. + # Server expects request header of the format "Authorization: Bearer xxx" + ManagementToken: false + + # URL of keep-web service. Provides read/write access to collections via + # HTTP and WebDAV protocols. + # + # Example: + # keep_web_service_url: https://download.uuid_prefix.arvadosapi.com/ + keep_web_service_url: false development: force_ssl: false @@ -355,7 +508,6 @@ development: action_mailer.perform_deliveries: false active_support.deprecation: :log action_dispatch.best_standards_support: :builtin - active_record.mass_assignment_sanitizer: :strict active_record.auto_explain_threshold_in_seconds: 0.5 assets.compress: false assets.debug: true @@ -365,7 +517,7 @@ production: cache_classes: true consider_all_requests_local: false action_controller.perform_caching: true - serve_static_assets: false + serve_static_files: false assets.compress: true assets.compile: false assets.digest: true @@ -373,7 +525,7 @@ production: test: force_ssl: false cache_classes: true - serve_static_assets: true + serve_static_files: true static_cache_control: public, max-age=3600 whiny_nils: true consider_all_requests_local: true @@ -382,7 +534,6 @@ test: action_controller.allow_forgery_protection: false action_mailer.delivery_method: :test active_support.deprecation: :stderr - active_record.mass_assignment_sanitizer: :strict uuid_prefix: zzzzz sso_app_id: arvados-server sso_app_secret: <%= rand(2**512).to_s(36) %> @@ -393,3 +544,6 @@ test: workbench_address: https://localhost:3001/ git_repositories_dir: <%= Rails.root.join 'tmp', 'git', 'test' %> git_internal_dir: <%= Rails.root.join 'tmp', 'internal.git' %> + websocket_address: "wss://0.0.0.0:<%= ENV['ARVADOS_TEST_WSS_PORT'] %>/websocket" + trash_sweep_interval: -1 + docker_image_formats: ["v1"]