From d29450ded189ee78657b0ae8778ae879df7a3b5f Mon Sep 17 00:00:00 2001 From: Tor Brede Vekterli Date: Wed, 5 Dec 2018 16:00:30 +0100 Subject: 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. --- configdefinitions/src/vespa/all-clusters-bucket-spaces.def | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 configdefinitions/src/vespa/all-clusters-bucket-spaces.def (limited to 'configdefinitions') 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 + -- cgit v1.2.3