summaryrefslogtreecommitdiffstats
path: root/configdefinitions
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@oath.com>2018-12-05 16:00:30 +0100
committerTor Brede Vekterli <vekterli@oath.com>2018-12-05 16:04:48 +0100
commitd29450ded189ee78657b0ae8778ae879df7a3b5f (patch)
treedc39c8ab36f2b3df5733e443dad0d7f10bcf27d3 /configdefinitions
parent200663867930d081a49644c42f6090a926a327c3 (diff)
Add and use cross-cluster bucket space config
Adds a new config `AllClustersBucketSpacesConfig` which includes all document type to bucket space mappings across all configured content clusters. Inject this config into `RestApi` to ensure all changes to the mapping is observed. This also removes the remaining per-request config fetching during Document V1 visit ops.
Diffstat (limited to 'configdefinitions')
-rw-r--r--configdefinitions/src/vespa/all-clusters-bucket-spaces.def9
1 files changed, 9 insertions, 0 deletions
diff --git a/configdefinitions/src/vespa/all-clusters-bucket-spaces.def b/configdefinitions/src/vespa/all-clusters-bucket-spaces.def
new file mode 100644
index 00000000000..e73dec65261
--- /dev/null
+++ b/configdefinitions/src/vespa/all-clusters-bucket-spaces.def
@@ -0,0 +1,9 @@
+# Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+namespace=vespa.config.content.core
+
+## This config contains the document types handled by all content clusters
+## and the bucket spaces they belong to.
+
+## The bucket space a document type in a particular cluster belongs to.
+cluster{}.documentType{}.bucketSpace string
+