X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/37e995fb7423b2b353c599e2a1b00bda7c29ee6f..0eb72b526bf8bbb011551ecf019f604e17a534f1:/services/api/config/application.default.yml diff --git a/services/api/config/application.default.yml b/services/api/config/application.default.yml index fbecc964b5..8f5c21a40b 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,28 +50,16 @@ 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. - # - # If ARVADOS_WEBSOCKETS="ws-only", only websockets is served. - # - # 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. + # 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 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. + # If websocket_address is false (which is the default), no websocket + # server will be advertised to clients. This configuration is not + # supported. # - # 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 @@ -207,12 +199,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 @@ -232,10 +222,12 @@ common: # crunchstat logs from the logs table. clean_container_log_rows_after: <%= 30.days %> - # Time to keep audit logs (a row in the log table added each time an - # Arvados object is created, modified, or deleted) in the PostgreSQL - # database. Currently, websocket event notifications rely on audit - # logs, so this should not be set lower than 600 (5 minutes). + # 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. @@ -277,6 +269,8 @@ 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. @@ -367,6 +361,27 @@ 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 + ### ### Remaining assorted configuration options. ### @@ -411,8 +426,6 @@ common: # "git log". source_version: false - crunch_log_partial_line_throttle_period: 5 - # 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 @@ -439,7 +452,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 @@ -449,7 +461,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 @@ -457,7 +469,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 @@ -466,7 +478,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) %> @@ -477,7 +488,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: <% if ENV['ARVADOS_TEST_EXPERIMENTAL_WS'] %>"wss://0.0.0.0:<%= ENV['ARVADOS_TEST_WSS_PORT'] %>/websocket"<% else %>false<% end %> + websocket_address: "wss://0.0.0.0:<%= ENV['ARVADOS_TEST_WSS_PORT'] %>/websocket" trash_sweep_interval: -1 docker_image_formats: ["v1"] - max_audit_log_delete_batch: 0