3410: Add default_collection_replication to config and discovery doc.
authorTom Clegg <tom@curoverse.com>
Fri, 6 Feb 2015 23:49:59 +0000 (18:49 -0500)
committerTom Clegg <tom@curoverse.com>
Wed, 11 Feb 2015 23:47:06 +0000 (18:47 -0500)
services/api/app/controllers/arvados/v1/schema_controller.rb
services/api/config/application.default.yml

index bc5a20fb0db8f0a392558af563529904eeb86fd1..9e694fbc5fc8cec20cffec89f2a7c738fc75dc03 100644 (file)
@@ -20,6 +20,7 @@ class Arvados::V1::SchemaController < ApplicationController
         title: "Arvados API",
         description: "The API to interact with Arvados.",
         documentationLink: "http://doc.arvados.org/api/index.html",
+        defaultCollectionReplication: Rails.configuration.default_collection_replication,
         protocol: "rest",
         baseUrl: root_url + "arvados/v1/",
         basePath: "/arvados/v1/",
index 2d62e40f034a6bcbaca3697768d9ca7e48246ad4..f40508e8939d98a5a2847d9c8c0d77e32d5a12d2 100644 (file)
@@ -244,4 +244,8 @@ common:
   # 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.
-  sso_insecure: false
\ No newline at end of file
+  sso_insecure: false
+
+  # Set replication level for collections whose replication_desired
+  # attribute is nil.
+  default_collection_replication: 2